--- a/fs/ufs/super.c +++ b/fs/ufs/super.c @@ -897,6 +897,8 @@ ufs_print_super_stuff(sb, usb1, usb2, usb3); + sbi->s_flags = flags; + /* * Check, if file system was correctly unmounted. * If not, make it read only. @@ -1026,8 +1028,6 @@ 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)) goto failed;