commit | cc7b1bb173676621b092b61d22d8d12b05efb5e8 | [log] [tgz] |
---|---|---|
author | Chao Yu <chao2.yu@samsung.com> | Sun Sep 22 15:50:50 2013 +0800 |
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | Tue Sep 24 17:45:48 2013 +0900 |
tree | 440612ad80fa325aa3a5b316b5f25d87ff6a0f81 | |
parent | a57e564d14d9d123b2dd4ff1c933da0d900e0b1d [diff] |
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 <chao2.yu@samsung.com> Reviewed-by: Gu Zheng <guz.fnst@cn.fujitsu.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>