Re: [f2fs-dev] [PATCH] f2fs: avoid allocating failure in bio_alloc

2013-09-22 Thread Gu Zheng
On 09/22/2013 03:50 PM, Chao Yu wrote: > 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 > --- > fs/f2fs/segment.c

[f2fs-dev] [PATCH] f2fs: avoid allocating failure in bio_alloc

2013-09-22 Thread Chao Yu
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 --- fs/f2fs/segment.c |4 +++- fs/f2fs/segment.h |2 ++ 2 files changed, 5 insertions(+), 1 d