Skip to content

Commit f9b7cba

Browse files
DushistovLinus Torvalds
authored andcommitted
ufs: fix sun state
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>
1 parent 4942de4 commit f9b7cba

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎fs/ufs/super.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
894894
goto again;
895895
}
896896

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

900900
/*
@@ -1025,8 +1025,6 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
10251025
UFS_MOUNT_UFSTYPE_44BSD)
10261026
uspi->s_maxsymlinklen =
10271027
fs32_to_cpu(sb, usb3->fs_un2.fs_44.fs_maxsymlinklen);
1028-
1029-
sbi->s_flags = flags;
10301028

10311029
inode = iget(sb, UFS_ROOTINO);
10321030
if (!inode || is_bad_inode(inode))

0 commit comments

Comments
 (0)