Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

f2fs: enable inline data by default

Enable inline_data feature by default since it brings us better
performance and space utilization and now has already stable.
Add another option noinline_data to disable it during mount.

Suggested-by: Jaegeuk Kim <jaegeuk@kernel.org>
Suggested-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Wanpeng Li <wanpeng.li@linux.intel.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

authored by

Wanpeng Li and committed by
Jaegeuk Kim
75342797 0bdee482

+10
+2
Documentation/filesystems/f2fs.txt
··· 144 144 as many as extent which map between contiguous logical 145 145 address and physical address per inode, resulting in 146 146 increasing the cache hit ratio. 147 + noinline_data Disable the inline data feature, inline data feature is 148 + enabled by default. 147 149 148 150 ================================================================================ 149 151 DEBUGFS ENTRIES
+8
fs/f2fs/super.c
··· 58 58 Opt_nobarrier, 59 59 Opt_fastboot, 60 60 Opt_extent_cache, 61 + Opt_noinline_data, 61 62 Opt_err, 62 63 }; 63 64 ··· 81 80 {Opt_nobarrier, "nobarrier"}, 82 81 {Opt_fastboot, "fastboot"}, 83 82 {Opt_extent_cache, "extent_cache"}, 83 + {Opt_noinline_data, "noinline_data"}, 84 84 {Opt_err, NULL}, 85 85 }; 86 86 ··· 374 372 case Opt_extent_cache: 375 373 set_opt(sbi, EXTENT_CACHE); 376 374 break; 375 + case Opt_noinline_data: 376 + clear_opt(sbi, INLINE_DATA); 377 + break; 377 378 default: 378 379 f2fs_msg(sb, KERN_ERR, 379 380 "Unrecognized mount option \"%s\" or missing value", ··· 601 596 seq_puts(seq, ",disable_ext_identify"); 602 597 if (test_opt(sbi, INLINE_DATA)) 603 598 seq_puts(seq, ",inline_data"); 599 + else 600 + seq_puts(seq, ",noinline_data"); 604 601 if (test_opt(sbi, INLINE_DENTRY)) 605 602 seq_puts(seq, ",inline_dentry"); 606 603 if (!f2fs_readonly(sbi->sb) && test_opt(sbi, FLUSH_MERGE)) ··· 998 991 sbi->active_logs = NR_CURSEG_TYPE; 999 992 1000 993 set_opt(sbi, BG_GC); 994 + set_opt(sbi, INLINE_DATA); 1001 995 1002 996 #ifdef CONFIG_F2FS_FS_XATTR 1003 997 set_opt(sbi, XATTR_USER);