summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-06-16 16:44:11 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2016-07-06 10:44:09 -0700
commit2c237ebaa440b8c641c61cf66802521a917fc30c (patch)
treece3053a54cfe796efaca736a6f83ab065bb267cf /fs/f2fs
parentad4edb83143fdeef9e6fdd9daaa735b59476565b (diff)
downloadlinux-2c237ebaa440b8c641c61cf66802521a917fc30c.tar.bz2
f2fs: avoid writing node/metapages during writes
Let's keep more node/meta pages in run time. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/segment.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h
index d74cc330ae13..57d450fb4643 100644
--- a/fs/f2fs/segment.h
+++ b/fs/f2fs/segment.h
@@ -715,9 +715,9 @@ static inline int nr_pages_to_skip(struct f2fs_sb_info *sbi, int type)
if (type == DATA)
return sbi->blocks_per_seg;
else if (type == NODE)
- return 3 * sbi->blocks_per_seg;
+ return 8 * sbi->blocks_per_seg;
else if (type == META)
- return MAX_BIO_BLOCKS(sbi);
+ return 8 * MAX_BIO_BLOCKS(sbi);
else
return 0;
}
@@ -736,7 +736,7 @@ static inline long nr_pages_to_write(struct f2fs_sb_info *sbi, int type,
nr_to_write = wbc->nr_to_write;
if (type == NODE)
- desired = 3 * max_hw_blocks(sbi);
+ desired = 2 * max_hw_blocks(sbi);
else
desired = MAX_BIO_BLOCKS(sbi);