diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-10-18 11:07:45 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-23 12:11:07 -0800 |
commit | 664ba972df9b96942191db3068274cc1db899774 (patch) | |
tree | ba7009de03069fd659fa1557d775caa7c9e5bd8f /fs/f2fs/checkpoint.c | |
parent | 3e7b5bbbef7f5eb8a19aa61b611c704bf8230937 (diff) | |
download | lwn-664ba972df9b96942191db3068274cc1db899774.tar.gz lwn-664ba972df9b96942191db3068274cc1db899774.zip |
f2fs: use BIO_MAX_PAGES for bio allocation
We don't need to allocate bio partially in order to maximize sequential writes.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r-- | fs/f2fs/checkpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 654f5d7f9288..157b7fdc2c67 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -228,7 +228,7 @@ void ra_meta_pages_cond(struct f2fs_sb_info *sbi, pgoff_t index) f2fs_put_page(page, 0); if (readahead) - ra_meta_pages(sbi, index, MAX_BIO_BLOCKS(sbi), META_POR, true); + ra_meta_pages(sbi, index, BIO_MAX_PAGES, META_POR, true); } static int f2fs_write_meta_page(struct page *page, |