aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4_jbd2.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/ext4_jbd2.c')
-rw-r--r--fs/ext4/ext4_jbd2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4_jbd2.c b/fs/ext4/ext4_jbd2.c
index dd106b1d5d89..5b342ac67d2e 100644
--- a/fs/ext4/ext4_jbd2.c
+++ b/fs/ext4/ext4_jbd2.c
@@ -47,7 +47,7 @@ static int ext4_journal_check_start(struct super_block *sb)
47 if (unlikely(ext4_forced_shutdown(EXT4_SB(sb)))) 47 if (unlikely(ext4_forced_shutdown(EXT4_SB(sb))))
48 return -EIO; 48 return -EIO;
49 49
50 if (sb->s_flags & MS_RDONLY) 50 if (sb_rdonly(sb))
51 return -EROFS; 51 return -EROFS;
52 WARN_ON(sb->s_writers.frozen == SB_FREEZE_COMPLETE); 52 WARN_ON(sb->s_writers.frozen == SB_FREEZE_COMPLETE);
53 journal = EXT4_SB(sb)->s_journal; 53 journal = EXT4_SB(sb)->s_journal;