aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/super.c
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-07-05 01:40:27 -0400
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-07-22 21:02:12 -0400
commitc6b4d57ddf12f3fd4d41d7b3b9181de46748418d (patch)
tree66e748018b5f5bd0c343381f88b946a777fd8c13 /fs/nilfs2/super.c
parent802d31775404ee335ca1e97a82e1e706a4c843be (diff)
nilfs2: use seq_puts to print mount options without argument
This replaces seq_printf() with seq_puts() in nilfs_show_options for mount options which have no argument. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/super.c')
-rw-r--r--fs/nilfs2/super.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c
index 9da12211aac1..6a11243ebc51 100644
--- a/fs/nilfs2/super.c
+++ b/fs/nilfs2/super.c
@@ -521,20 +521,20 @@ static int nilfs_show_options(struct seq_file *seq, struct vfsmount *vfs)
521 struct nilfs_sb_info *sbi = NILFS_SB(sb); 521 struct nilfs_sb_info *sbi = NILFS_SB(sb);
522 522
523 if (!nilfs_test_opt(sbi, BARRIER)) 523 if (!nilfs_test_opt(sbi, BARRIER))
524 seq_printf(seq, ",nobarrier"); 524 seq_puts(seq, ",nobarrier");
525 if (nilfs_test_opt(sbi, SNAPSHOT)) 525 if (nilfs_test_opt(sbi, SNAPSHOT))
526 seq_printf(seq, ",cp=%llu", 526 seq_printf(seq, ",cp=%llu",
527 (unsigned long long int)sbi->s_snapshot_cno); 527 (unsigned long long int)sbi->s_snapshot_cno);
528 if (nilfs_test_opt(sbi, ERRORS_PANIC)) 528 if (nilfs_test_opt(sbi, ERRORS_PANIC))
529 seq_printf(seq, ",errors=panic"); 529 seq_puts(seq, ",errors=panic");
530 if (nilfs_test_opt(sbi, ERRORS_CONT)) 530 if (nilfs_test_opt(sbi, ERRORS_CONT))
531 seq_printf(seq, ",errors=continue"); 531 seq_puts(seq, ",errors=continue");
532 if (nilfs_test_opt(sbi, STRICT_ORDER)) 532 if (nilfs_test_opt(sbi, STRICT_ORDER))
533 seq_printf(seq, ",order=strict"); 533 seq_puts(seq, ",order=strict");
534 if (nilfs_test_opt(sbi, NORECOVERY)) 534 if (nilfs_test_opt(sbi, NORECOVERY))
535 seq_printf(seq, ",norecovery"); 535 seq_puts(seq, ",norecovery");
536 if (nilfs_test_opt(sbi, DISCARD)) 536 if (nilfs_test_opt(sbi, DISCARD))
537 seq_printf(seq, ",discard"); 537 seq_puts(seq, ",discard");
538 538
539 return 0; 539 return 0;
540} 540}