diff options
author | Peter Osterlund <petero2@telia.com> | 2005-10-28 14:23:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-28 16:57:57 -0400 |
commit | 6cd37cda7ed117d5a13d9b69aeded57b4fd6de14 (patch) | |
tree | 2b74bb4c3d7da82abe39ec2992ac951d3effa1b2 /fs | |
parent | 030ee39c0fef49d7dcd32e71b1ca98fcc23e2a72 (diff) |
[PATCH] Fix ext3 warning for unused var
Fix compile warning in ext3 quota code.
Signed-off-by: Peter Osterlund <petero2@telia.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-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 | } |