diff options
Diffstat (limited to 'fs/ext4/file.c')
-rw-r--r-- | fs/ext4/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/file.c b/fs/ext4/file.c index 57dcaea762c3..da9c6948ad25 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c | |||
@@ -371,7 +371,7 @@ static int ext4_file_open(struct inode * inode, struct file * filp) | |||
371 | return -EIO; | 371 | return -EIO; |
372 | 372 | ||
373 | if (unlikely(!(sbi->s_mount_flags & EXT4_MF_MNTDIR_SAMPLED) && | 373 | if (unlikely(!(sbi->s_mount_flags & EXT4_MF_MNTDIR_SAMPLED) && |
374 | !(sb->s_flags & MS_RDONLY))) { | 374 | !sb_rdonly(sb))) { |
375 | sbi->s_mount_flags |= EXT4_MF_MNTDIR_SAMPLED; | 375 | sbi->s_mount_flags |= EXT4_MF_MNTDIR_SAMPLED; |
376 | /* | 376 | /* |
377 | * Sample where the filesystem has been mounted and | 377 | * Sample where the filesystem has been mounted and |