diff options
-rw-r--r-- | fs/ext3/super.c | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c index 9e24ceb019fe..097383c11154 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c | |||
@@ -510,19 +510,11 @@ static void ext3_clear_inode(struct inode *inode) | |||
510 | kfree(rsv); | 510 | kfree(rsv); |
511 | } | 511 | } |
512 | 512 | ||
513 | static int ext3_show_options(struct seq_file *seq, struct vfsmount *vfs) | 513 | static inline void ext3_show_quota_options(struct seq_file *seq, struct super_block *sb) |
514 | { | 514 | { |
515 | struct super_block *sb = vfs->mnt_sb; | 515 | #if defined(CONFIG_QUOTA) |
516 | struct ext3_sb_info *sbi = EXT3_SB(sb); | 516 | struct ext3_sb_info *sbi = EXT3_SB(sb); |
517 | 517 | ||
518 | if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_JOURNAL_DATA) | ||
519 | seq_puts(seq, ",data=journal"); | ||
520 | else if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_ORDERED_DATA) | ||
521 | seq_puts(seq, ",data=ordered"); | ||
522 | else if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_WRITEBACK_DATA) | ||
523 | seq_puts(seq, ",data=writeback"); | ||
524 | |||
525 | #if defined(CONFIG_QUOTA) | ||
526 | if (sbi->s_jquota_fmt) | 518 | if (sbi->s_jquota_fmt) |
527 | seq_printf(seq, ",jqfmt=%s", | 519 | seq_printf(seq, ",jqfmt=%s", |
528 | (sbi->s_jquota_fmt == QFMT_VFS_OLD) ? "vfsold": "vfsv0"); | 520 | (sbi->s_jquota_fmt == QFMT_VFS_OLD) ? "vfsold": "vfsv0"); |
@@ -539,6 +531,20 @@ static int ext3_show_options(struct seq_file *seq, struct vfsmount *vfs) | |||
539 | if (sbi->s_mount_opt & EXT3_MOUNT_GRPQUOTA) | 531 | if (sbi->s_mount_opt & EXT3_MOUNT_GRPQUOTA) |
540 | seq_puts(seq, ",grpquota"); | 532 | seq_puts(seq, ",grpquota"); |
541 | #endif | 533 | #endif |
534 | } | ||
535 | |||
536 | static int ext3_show_options(struct seq_file *seq, struct vfsmount *vfs) | ||
537 | { | ||
538 | struct super_block *sb = vfs->mnt_sb; | ||
539 | |||
540 | if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_JOURNAL_DATA) | ||
541 | seq_puts(seq, ",data=journal"); | ||
542 | else if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_ORDERED_DATA) | ||
543 | seq_puts(seq, ",data=ordered"); | ||
544 | else if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_WRITEBACK_DATA) | ||
545 | seq_puts(seq, ",data=writeback"); | ||
546 | |||
547 | ext3_show_quota_options(seq, sb); | ||
542 | 548 | ||
543 | return 0; | 549 | return 0; |
544 | } | 550 | } |