aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorGravatar Jaegeuk Kim <jaegeuk@kernel.org> 2016-10-18 11:07:45 -0700
committerGravatar Jaegeuk Kim <jaegeuk@kernel.org> 2016-11-23 12:11:07 -0800
commit664ba972df9b96942191db3068274cc1db899774 (patch)
treeba7009de03069fd659fa1557d775caa7c9e5bd8f /fs/f2fs/data.c
parentf2fs: declare static function for __build_free_nids (diff)
downloadlinux-664ba972df9b96942191db3068274cc1db899774.tar.gz
linux-664ba972df9b96942191db3068274cc1db899774.tar.bz2
linux-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/data.c')
-rw-r--r--fs/f2fs/data.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index b544e0b2e7e5..68edb47f5f71 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -277,10 +277,8 @@ void f2fs_submit_page_mbio(struct f2fs_io_info *fio)
__submit_merged_bio(io);
alloc_new:
if (io->bio == NULL) {
- int bio_blocks = MAX_BIO_BLOCKS(sbi);
-
io->bio = __bio_alloc(sbi, fio->new_blkaddr,
- bio_blocks, is_read);
+ BIO_MAX_PAGES, is_read);
io->fio = *fio;
}