Skip to content

Commit

Permalink
[PATCH] ext3: ext3_show_options fix
Browse files Browse the repository at this point in the history
EXT3_MOUNT_DATA_FLAGS is not a boolean. This fixes it.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
OGAWA Hirofumi authored and Linus Torvalds committed Sep 23, 2005
1 parent ff69416 commit 275abf5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions fs/ext3/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,15 +512,14 @@ static void ext3_clear_inode(struct inode *inode)

static int ext3_show_options(struct seq_file *seq, struct vfsmount *vfs)
{
struct ext3_sb_info *sbi = EXT3_SB(vfs->mnt_sb);
struct super_block *sb = vfs->mnt_sb;
struct ext3_sb_info *sbi = EXT3_SB(sb);

if (sbi->s_mount_opt & EXT3_MOUNT_JOURNAL_DATA)
if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_JOURNAL_DATA)
seq_puts(seq, ",data=journal");

if (sbi->s_mount_opt & EXT3_MOUNT_ORDERED_DATA)
else if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_ORDERED_DATA)
seq_puts(seq, ",data=ordered");

if (sbi->s_mount_opt & EXT3_MOUNT_WRITEBACK_DATA)
else if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_WRITEBACK_DATA)
seq_puts(seq, ",data=writeback");

#if defined(CONFIG_QUOTA)
Expand Down

0 comments on commit 275abf5

Please sign in to comment.