f2fs: Change default mount options
authorDongwoo Lee <dwoo08.lee@samsung.com>
Wed, 14 Apr 2021 02:52:25 +0000 (11:52 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Thu, 3 Aug 2023 08:46:14 +0000 (17:46 +0900)
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 <dwoo08.lee@samsung.com>
fs/f2fs/super.c

index f4e8de1..13cd05f 100644 (file)
@@ -2027,7 +2027,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;
@@ -2043,6 +2043,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);
        set_opt(sbi, MERGE_CHECKPOINT);
        F2FS_OPTION(sbi).unusable_cap = 0;