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/node.c | |
parent | 3e7b5bbbef7f5eb8a19aa61b611c704bf8230937 (diff) | |
download | linux-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/node.c')
-rw-r--r-- | fs/f2fs/node.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 74125b13d1af..38cc07d49ff3 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -2098,7 +2098,6 @@ int restore_node_summary(struct f2fs_sb_info *sbi, struct f2fs_node *rn; struct f2fs_summary *sum_entry; block_t addr; - int bio_blocks = MAX_BIO_BLOCKS(sbi); int i, idx, last_offset, nrpages; /* scan the node segment */ @@ -2107,7 +2106,7 @@ int restore_node_summary(struct f2fs_sb_info *sbi, sum_entry = &sum->entries[0]; for (i = 0; i < last_offset; i += nrpages, addr += nrpages) { - nrpages = min(last_offset - i, bio_blocks); + nrpages = min(last_offset - i, BIO_MAX_PAGES); /* readahead node pages */ ra_meta_pages(sbi, addr, nrpages, META_POR, true); |