summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2018-02-25 10:04:57 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2018-03-13 00:05:52 +0100
commit782911f491e72857d67e93661580cf32e67df7b5 (patch)
treef3a3e3e40a9e2626f840f26441a9775bcebf199a /fs/f2fs/super.c
parentf2fs: add auto tuning for small devices (diff)
downloadlinux-782911f491e72857d67e93661580cf32e67df7b5.tar.xz
linux-782911f491e72857d67e93661580cf32e67df7b5.zip
f2fs: set readdir_ra by default
It gives general readdir improvement. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r--fs/f2fs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 9b6c53b69535..30b93ad44b9d 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -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);