RE: [f2fs-dev][PATCH] f2fs: limit nr_iovecs in bio_alloc

2013-09-13 Thread Chao Yu
> -Original Message- > From: Jin Xu [mailto:linuxclim...@gmail.com] > Sent: Friday, September 13, 2013 7:49 PM > To: Chao Yu > Cc: ???; linux-f2fs-de...@lists.sourceforge.net; linux-fsde...@vger.kernel.org; > linux-kernel@vger.kernel.org; 谭姝 > Subject: Re: [f2fs-de

Re: [f2fs-dev][PATCH] f2fs: limit nr_iovecs in bio_alloc

2013-09-13 Thread Jin Xu
Did this patch pass the basic build? There seems have a typo regarding MAX_BIO_BLOCK. -- Jin On 13/09/2013 18:07, Chao Yu wrote: > This patch add macro MAX_BIO_BLOCKS to limit value of npages in > f2fs_bio_alloc, > it can avoid to return NULL in bio_alloc caused by npages is larger than >

[f2fs-dev][PATCH] f2fs: limit nr_iovecs in bio_alloc

2013-09-13 Thread Chao Yu
This patch add macro MAX_BIO_BLOCKS to limit value of npages in f2fs_bio_alloc, it can avoid to return NULL in bio_alloc caused by npages is larger than UIO_MAXIOV. Signed-off-by: Yu Chao --- fs/f2fs/segment.c |4 +++- fs/f2fs/segment.h |3 +++ 2 files changed, 6 insertions(+), 1

[f2fs-dev][PATCH] f2fs: limit nr_iovecs in bio_alloc

2013-09-13 Thread Chao Yu
This patch add macro MAX_BIO_BLOCKS to limit value of npages in f2fs_bio_alloc, it can avoid to return NULL in bio_alloc caused by npages is larger than UIO_MAXIOV. Signed-off-by: Yu Chao chao2...@samsung.com --- fs/f2fs/segment.c |4 +++- fs/f2fs/segment.h |3 +++ 2 files changed, 6

Re: [f2fs-dev][PATCH] f2fs: limit nr_iovecs in bio_alloc

2013-09-13 Thread Jin Xu
Did this patch pass the basic build? There seems have a typo regarding MAX_BIO_BLOCK. -- Jin On 13/09/2013 18:07, Chao Yu wrote: This patch add macro MAX_BIO_BLOCKS to limit value of npages in f2fs_bio_alloc, it can avoid to return NULL in bio_alloc caused by npages is larger than

RE: [f2fs-dev][PATCH] f2fs: limit nr_iovecs in bio_alloc

2013-09-13 Thread Chao Yu
-Original Message- From: Jin Xu [mailto:linuxclim...@gmail.com] Sent: Friday, September 13, 2013 7:49 PM To: Chao Yu Cc: ???; linux-f2fs-de...@lists.sourceforge.net; linux-fsde...@vger.kernel.org; linux-kernel@vger.kernel.org; 谭姝 Subject: Re: [f2fs-dev][PATCH] f2fs: limit nr_iovecs