Re: [PATCH] f2fs: use BIO_MAX_PAGES for bio allocation

2016-10-27 Thread Jaegeuk Kim
On Thu, Oct 27, 2016 at 06:28:04PM +0800, Chao Yu wrote: > On 2016/10/19 2:48, Jaegeuk Kim wrote: > > We don't need to allocate bio partially in order to maximize sequential > > writes. > > We are going to allocate bio with max size supposing that there will be more > opportunity to merge small

Re: [PATCH] f2fs: use BIO_MAX_PAGES for bio allocation

2016-10-27 Thread Jaegeuk Kim
On Thu, Oct 27, 2016 at 06:28:04PM +0800, Chao Yu wrote: > On 2016/10/19 2:48, Jaegeuk Kim wrote: > > We don't need to allocate bio partially in order to maximize sequential > > writes. > > We are going to allocate bio with max size supposing that there will be more > opportunity to merge small

Re: [PATCH] f2fs: use BIO_MAX_PAGES for bio allocation

2016-10-27 Thread Chao Yu
On 2016/10/19 2:48, Jaegeuk Kim wrote: > We don't need to allocate bio partially in order to maximize sequential > writes. We are going to allocate bio with max size supposing that there will be more opportunity to merge small IOs into one bio. Otherwise, if MAX_BIO_BLOCKS is smaller than

Re: [PATCH] f2fs: use BIO_MAX_PAGES for bio allocation

2016-10-27 Thread Chao Yu
On 2016/10/19 2:48, Jaegeuk Kim wrote: > We don't need to allocate bio partially in order to maximize sequential > writes. We are going to allocate bio with max size supposing that there will be more opportunity to merge small IOs into one bio. Otherwise, if MAX_BIO_BLOCKS is smaller than

[PATCH] f2fs: use BIO_MAX_PAGES for bio allocation

2016-10-18 Thread Jaegeuk Kim
We don't need to allocate bio partially in order to maximize sequential writes. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 2 +- fs/f2fs/data.c | 4 +--- fs/f2fs/node.c | 3 +-- fs/f2fs/segment.c| 4 ++-- fs/f2fs/segment.h| 17

[PATCH] f2fs: use BIO_MAX_PAGES for bio allocation

2016-10-18 Thread Jaegeuk Kim
We don't need to allocate bio partially in order to maximize sequential writes. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 2 +- fs/f2fs/data.c | 4 +--- fs/f2fs/node.c | 3 +-- fs/f2fs/segment.c| 4 ++-- fs/f2fs/segment.h| 17 +++-- 5 files