f2fs: avoid writing node/metapages during writes
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 16 Jun 2016 23:44:11 +0000 (16:44 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 6 Jul 2016 17:44:09 +0000 (10:44 -0700)
Let's keep more node/meta pages in run time.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.h

index d74cc330ae13742eaba0edde0bc2a289ac5009d5..57d450fb4643a709401757c2393920ad3dbca333 100644 (file)
@@ -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);