Skip to content

Commit

Permalink
ufs: fix sun state
Browse files Browse the repository at this point in the history
Different types of ufs hold state in different places, to hide complexity
of this, there is ufs_get_fs_state, it returns state according to
"UFS_SB(sb)->s_flags", but during mount ufs_get_fs_state is called, before
setting s_flags, this cause message for ufs types like sun ufs: "fs need
fsck", and remount in readonly state.

Signed-off-by: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Evgeniy Dushistov authored and Linus Torvalds committed Sep 25, 2007
1 parent 4942de4 commit f9b7cba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/ufs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
goto again;
}


sbi->s_flags = flags;/*after that line some functions use s_flags*/
ufs_print_super_stuff(sb, usb1, usb2, usb3);

/*
Expand Down Expand Up @@ -1025,8 +1025,6 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
UFS_MOUNT_UFSTYPE_44BSD)
uspi->s_maxsymlinklen =
fs32_to_cpu(sb, usb3->fs_un2.fs_44.fs_maxsymlinklen);

sbi->s_flags = flags;

inode = iget(sb, UFS_ROOTINO);
if (!inode || is_bad_inode(inode))
Expand Down

0 comments on commit f9b7cba

Please sign in to comment.