summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2018-02-25 12:04:57 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2018-03-13 02:05:52 +0300
commit782911f491e72857d67e93661580cf32e67df7b5 (patch)
treef3a3e3e40a9e2626f840f26441a9775bcebf199a /fs/f2fs
parent84b89e5d943d8d6b997fcebb4609373e1b3e4b03 (diff)
downloadlinux-782911f491e72857d67e93661580cf32e67df7b5.tar.xz
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')
-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);