]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
f2fs: enable inline_xattr by default
authorChao Yu <yuchao0@huawei.com>
Wed, 8 Feb 2017 09:39:44 +0000 (17:39 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 23 Feb 2017 18:21:49 +0000 (10:21 -0800)
In android, since SElinux is enable, security policy will be appliedd for
each file, it stores in inode as an xattr entry, so it will take one 4k
size node block additionally for each file.

Let's enable inline_xattr by default in order to save storage space.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c

index 1dd0ed17a79059c789283adf9b78f81bca2f22bc..751e1068db1799949afc161ba9f24750824397b6 100644 (file)
@@ -1039,6 +1039,7 @@ static void default_options(struct f2fs_sb_info *sbi)
        sbi->active_logs = NR_CURSEG_TYPE;
 
        set_opt(sbi, BG_GC);
+       set_opt(sbi, INLINE_XATTR);
        set_opt(sbi, INLINE_DATA);
        set_opt(sbi, INLINE_DENTRY);
        set_opt(sbi, EXTENT_CACHE);