aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fat/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fat/inode.c')
-rw-r--r--fs/fat/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c
index a2c05f2ada6d..30c52394a7ad 100644
--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -657,7 +657,7 @@ static void fat_set_state(struct super_block *sb,
657 struct msdos_sb_info *sbi = MSDOS_SB(sb); 657 struct msdos_sb_info *sbi = MSDOS_SB(sb);
658 658
659 /* do not change any thing if mounted read only */ 659 /* do not change any thing if mounted read only */
660 if ((sb->s_flags & MS_RDONLY) && !force) 660 if (sb_rdonly(sb) && !force)
661 return; 661 return;
662 662
663 /* do not change state if fs was dirty */ 663 /* do not change state if fs was dirty */
@@ -787,7 +787,7 @@ static int fat_remount(struct super_block *sb, int *flags, char *data)
787 787
788 /* make sure we update state on remount. */ 788 /* make sure we update state on remount. */
789 new_rdonly = *flags & MS_RDONLY; 789 new_rdonly = *flags & MS_RDONLY;
790 if (new_rdonly != (sb->s_flags & MS_RDONLY)) { 790 if (new_rdonly != sb_rdonly(sb)) {
791 if (new_rdonly) 791 if (new_rdonly)
792 fat_set_state(sb, 0, 0); 792 fat_set_state(sb, 0, 0);
793 else 793 else