aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/segment.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-10-08 13:40:07 -0400
committerJaegeuk Kim <jaegeuk@kernel.org>2015-10-12 16:38:02 -0400
commita125702326d9c3b753fe9c9b9727d3b3dd1cba4a (patch)
tree7c6407982fb0db047c1a5233eed3c24b4df192f9 /fs/f2fs/segment.h
parentc912a8298c16ef15aa2b7203022c935f439f488b (diff)
Revert "f2fs: do not skip dentry block writes"
The periodic checkpoint can resolve the previous issue. So, now we can use this again to improve the reported performance regression: https://lkml.org/lkml/2015/10/8/20 This reverts commit 15bec0ff5a9ba6d203178fa8772259df6207942a.
Diffstat (limited to 'fs/f2fs/segment.h')
-rw-r--r--fs/f2fs/segment.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h
index e9afb5884312..ee44d346ea44 100644
--- a/fs/f2fs/segment.h
+++ b/fs/f2fs/segment.h
@@ -699,7 +699,9 @@ static inline int nr_pages_to_skip(struct f2fs_sb_info *sbi, int type)
699 if (sbi->sb->s_bdi->wb.dirty_exceeded) 699 if (sbi->sb->s_bdi->wb.dirty_exceeded)
700 return 0; 700 return 0;
701 701
702 if (type == NODE) 702 if (type == DATA)
703 return sbi->blocks_per_seg;
704 else if (type == NODE)
703 return 3 * sbi->blocks_per_seg; 705 return 3 * sbi->blocks_per_seg;
704 else if (type == META) 706 else if (type == META)
705 return MAX_BIO_BLOCKS(sbi); 707 return MAX_BIO_BLOCKS(sbi);