f2fs: set readdir_ra by default
authorJaegeuk Kim <jaegeuk@kernel.org>
Sun, 25 Feb 2018 09:04:57 +0000 (01:04 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 8 Apr 2018 11:11:31 +0000 (04:11 -0700)
It gives general readdir improvement.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c

index 789b0729cc2a22b695d5502749bd512f4a235eb5..6edb3bab2734faa846f4e19565f768f40a377f58 100644 (file)
@@ -1297,6 +1297,7 @@ static void default_options(struct f2fs_sb_info *sbi)
        sbi->inline_xattr_size = DEFAULT_INLINE_XATTR_ADDRS;
        sbi->whint_mode = WHINT_MODE_OFF;
        sbi->alloc_mode = ALLOC_MODE_DEFAULT;
+       sbi->readdir_ra = 1;
 
        set_opt(sbi, BG_GC);
        set_opt(sbi, INLINE_XATTR);