aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/super.c
diff options
context:
space:
mode:
authorJiro SEKIBA <jir@unicus.jp>2009-11-12 00:07:26 -0500
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2009-11-19 20:05:47 -0500
commit91f1953bf3243a4215b57d8e2f317a7035924de7 (patch)
tree78bec48dc558ebd130c67a6144e2e981286a603c /fs/nilfs2/super.c
parent6600b9dd8e0d4a60c610f216b78d992a598bc52a (diff)
nilfs2: Using nobarrier option instead of barrier=off
Since most of fs using nofoobar style option, modified barrier=off option as nobarrier. Signed-off-by: Jiro SEKIBA <jir@unicus.jp> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/super.c')
-rw-r--r--fs/nilfs2/super.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c
index 644e66727dd0..02dcbb008673 100644
--- a/fs/nilfs2/super.c
+++ b/fs/nilfs2/super.c
@@ -490,7 +490,7 @@ static int nilfs_show_options(struct seq_file *seq, struct vfsmount *vfs)
490 struct nilfs_sb_info *sbi = NILFS_SB(sb); 490 struct nilfs_sb_info *sbi = NILFS_SB(sb);
491 491
492 if (!nilfs_test_opt(sbi, BARRIER)) 492 if (!nilfs_test_opt(sbi, BARRIER))
493 seq_printf(seq, ",barrier=off"); 493 seq_printf(seq, ",nobarrier");
494 if (nilfs_test_opt(sbi, SNAPSHOT)) 494 if (nilfs_test_opt(sbi, SNAPSHOT))
495 seq_printf(seq, ",cp=%llu", 495 seq_printf(seq, ",cp=%llu",
496 (unsigned long long int)sbi->s_snapshot_cno); 496 (unsigned long long int)sbi->s_snapshot_cno);
@@ -568,7 +568,7 @@ static const struct export_operations nilfs_export_ops = {
568 568
569enum { 569enum {
570 Opt_err_cont, Opt_err_panic, Opt_err_ro, 570 Opt_err_cont, Opt_err_panic, Opt_err_ro,
571 Opt_barrier, Opt_snapshot, Opt_order, 571 Opt_nobarrier, Opt_snapshot, Opt_order,
572 Opt_err, 572 Opt_err,
573}; 573};
574 574
@@ -576,7 +576,7 @@ static match_table_t tokens = {
576 {Opt_err_cont, "errors=continue"}, 576 {Opt_err_cont, "errors=continue"},
577 {Opt_err_panic, "errors=panic"}, 577 {Opt_err_panic, "errors=panic"},
578 {Opt_err_ro, "errors=remount-ro"}, 578 {Opt_err_ro, "errors=remount-ro"},
579 {Opt_barrier, "barrier=%s"}, 579 {Opt_nobarrier, "nobarrier"},
580 {Opt_snapshot, "cp=%u"}, 580 {Opt_snapshot, "cp=%u"},
581 {Opt_order, "order=%s"}, 581 {Opt_order, "order=%s"},
582 {Opt_err, NULL} 582 {Opt_err, NULL}
@@ -612,13 +612,8 @@ static int parse_options(char *options, struct super_block *sb)
612 612
613 token = match_token(p, tokens, args); 613 token = match_token(p, tokens, args);
614 switch (token) { 614 switch (token) {
615 case Opt_barrier: 615 case Opt_nobarrier:
616 if (match_bool(&args[0], &option)) 616 nilfs_clear_opt(sbi, BARRIER);
617 return 0;
618 if (option)
619 nilfs_set_opt(sbi, BARRIER);
620 else
621 nilfs_clear_opt(sbi, BARRIER);
622 break; 617 break;
623 case Opt_order: 618 case Opt_order:
624 if (strcmp(args[0].from, "relaxed") == 0) 619 if (strcmp(args[0].from, "relaxed") == 0)