|
@@ -52,6 +52,7 @@ enum {
|
|
|
Opt_inline_xattr,
|
|
|
Opt_inline_data,
|
|
|
Opt_flush_merge,
|
|
|
+ Opt_nobarrier,
|
|
|
Opt_err,
|
|
|
};
|
|
|
|
|
@@ -69,6 +70,7 @@ static match_table_t f2fs_tokens = {
|
|
|
{Opt_inline_xattr, "inline_xattr"},
|
|
|
{Opt_inline_data, "inline_data"},
|
|
|
{Opt_flush_merge, "flush_merge"},
|
|
|
+ {Opt_nobarrier, "nobarrier"},
|
|
|
{Opt_err, NULL},
|
|
|
};
|
|
|
|
|
@@ -339,6 +341,9 @@ static int parse_options(struct super_block *sb, char *options)
|
|
|
case Opt_flush_merge:
|
|
|
set_opt(sbi, FLUSH_MERGE);
|
|
|
break;
|
|
|
+ case Opt_nobarrier:
|
|
|
+ set_opt(sbi, NOBARRIER);
|
|
|
+ break;
|
|
|
default:
|
|
|
f2fs_msg(sb, KERN_ERR,
|
|
|
"Unrecognized mount option \"%s\" or missing value",
|
|
@@ -544,6 +549,8 @@ static int f2fs_show_options(struct seq_file *seq, struct dentry *root)
|
|
|
seq_puts(seq, ",inline_data");
|
|
|
if (!f2fs_readonly(sbi->sb) && test_opt(sbi, FLUSH_MERGE))
|
|
|
seq_puts(seq, ",flush_merge");
|
|
|
+ if (test_opt(sbi, NOBARRIER))
|
|
|
+ seq_puts(seq, ",nobarrier");
|
|
|
seq_printf(seq, ",active_logs=%u", sbi->active_logs);
|
|
|
|
|
|
return 0;
|