From 03224374f5751da8d5de655cc85bf9f715c5df76 Mon Sep 17 00:00:00 2001 From: Dongwoo Lee Date: Wed, 14 Apr 2021 11:52:25 +0900 Subject: [PATCH] f2fs: Change default mount options As adjusting mount options for increasing performance and reducing data move due to bggc, this changes default mount options about fsync mode and bggc algorithm as below: fsync_mode: from 'posix' to 'nobarrier' bggc_algorithm: from 'default' to 'atgc' Change-Id: I124ced2ef824832df280de74120612dc72167b36 Signed-off-by: Dongwoo Lee --- fs/f2fs/super.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index af98abb..2b87a41 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1706,7 +1706,7 @@ static void default_options(struct f2fs_sb_info *sbi) F2FS_OPTION(sbi).inline_xattr_size = DEFAULT_INLINE_XATTR_ADDRS; F2FS_OPTION(sbi).whint_mode = WHINT_MODE_OFF; F2FS_OPTION(sbi).alloc_mode = ALLOC_MODE_DEFAULT; - F2FS_OPTION(sbi).fsync_mode = FSYNC_MODE_POSIX; + F2FS_OPTION(sbi).fsync_mode = FSYNC_MODE_NOBARRIER; F2FS_OPTION(sbi).s_resuid = make_kuid(&init_user_ns, F2FS_DEF_RESUID); F2FS_OPTION(sbi).s_resgid = make_kgid(&init_user_ns, F2FS_DEF_RESGID); F2FS_OPTION(sbi).compress_algorithm = COMPRESS_LZ4; @@ -1721,6 +1721,7 @@ static void default_options(struct f2fs_sb_info *sbi) set_opt(sbi, INLINE_DENTRY); set_opt(sbi, EXTENT_CACHE); set_opt(sbi, NOHEAP); + set_opt(sbi, ATGC); clear_opt(sbi, DISABLE_CHECKPOINT); F2FS_OPTION(sbi).unusable_cap = 0; sbi->sb->s_flags |= SB_LAZYTIME; -- 2.7.4