aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2014-09-24 06:16:13 -0400
committerJaegeuk Kim <jaegeuk@kernel.org>2014-11-03 19:07:31 -0500
commit5efd3c6f1be9cfbc621c9445cedd159998ed3ea6 (patch)
tree8207fd41caf041ef0712eb074292f16a848c3388 /fs/f2fs
parent34d67debe02b3b2b035b5bdce0fab75800f9a344 (diff)
f2fs: add a new mount option for inline dir
Adds a new mount option 'inline_dentry' for inline dir. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/super.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 76b14c8c7e16..73993a9e86be 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -51,6 +51,7 @@ enum {
51 Opt_disable_ext_identify, 51 Opt_disable_ext_identify,
52 Opt_inline_xattr, 52 Opt_inline_xattr,
53 Opt_inline_data, 53 Opt_inline_data,
54 Opt_inline_dentry,
54 Opt_flush_merge, 55 Opt_flush_merge,
55 Opt_nobarrier, 56 Opt_nobarrier,
56 Opt_err, 57 Opt_err,
@@ -69,6 +70,7 @@ static match_table_t f2fs_tokens = {
69 {Opt_disable_ext_identify, "disable_ext_identify"}, 70 {Opt_disable_ext_identify, "disable_ext_identify"},
70 {Opt_inline_xattr, "inline_xattr"}, 71 {Opt_inline_xattr, "inline_xattr"},
71 {Opt_inline_data, "inline_data"}, 72 {Opt_inline_data, "inline_data"},
73 {Opt_inline_dentry, "inline_dentry"},
72 {Opt_flush_merge, "flush_merge"}, 74 {Opt_flush_merge, "flush_merge"},
73 {Opt_nobarrier, "nobarrier"}, 75 {Opt_nobarrier, "nobarrier"},
74 {Opt_err, NULL}, 76 {Opt_err, NULL},
@@ -340,6 +342,9 @@ static int parse_options(struct super_block *sb, char *options)
340 case Opt_inline_data: 342 case Opt_inline_data:
341 set_opt(sbi, INLINE_DATA); 343 set_opt(sbi, INLINE_DATA);
342 break; 344 break;
345 case Opt_inline_dentry:
346 set_opt(sbi, INLINE_DENTRY);
347 break;
343 case Opt_flush_merge: 348 case Opt_flush_merge:
344 set_opt(sbi, FLUSH_MERGE); 349 set_opt(sbi, FLUSH_MERGE);
345 break; 350 break;
@@ -563,6 +568,8 @@ static int f2fs_show_options(struct seq_file *seq, struct dentry *root)
563 seq_puts(seq, ",disable_ext_identify"); 568 seq_puts(seq, ",disable_ext_identify");
564 if (test_opt(sbi, INLINE_DATA)) 569 if (test_opt(sbi, INLINE_DATA))
565 seq_puts(seq, ",inline_data"); 570 seq_puts(seq, ",inline_data");
571 if (test_opt(sbi, INLINE_DENTRY))
572 seq_puts(seq, ",inline_dentry");
566 if (!f2fs_readonly(sbi->sb) && test_opt(sbi, FLUSH_MERGE)) 573 if (!f2fs_readonly(sbi->sb) && test_opt(sbi, FLUSH_MERGE))
567 seq_puts(seq, ",flush_merge"); 574 seq_puts(seq, ",flush_merge");
568 if (test_opt(sbi, NOBARRIER)) 575 if (test_opt(sbi, NOBARRIER))