From: Chao Yu Date: Sun, 22 Sep 2013 07:50:50 +0000 (+0800) Subject: f2fs: avoid allocating failure in bio_alloc X-Git-Tag: v3.13-rc1~113^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc7b1bb173676621b092b61d22d8d12b05efb5e8;p=pandora-kernel.git f2fs: avoid allocating failure in bio_alloc This patch add macro MAX_BIO_BLOCKS to limit value of npages in f2fs_bio_alloc, it can avoid allocating failure in bio_alloc caused by npages is larger than BIO_MAX_PAGES. Signed-off-by: Yu Chao Reviewed-by: Gu Zheng Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed