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 58294c9a7e1d..b33ec8a23678 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c | |||
@@ -388,7 +388,7 @@ static int ext4_file_open(struct inode * inode, struct file * filp) | |||
388 | return -EIO; | 388 | return -EIO; |
389 | 389 | ||
390 | if (unlikely(!(sbi->s_mount_flags & EXT4_MF_MNTDIR_SAMPLED) && | 390 | if (unlikely(!(sbi->s_mount_flags & EXT4_MF_MNTDIR_SAMPLED) && |
391 | !(sb->s_flags & MS_RDONLY))) { | 391 | !sb_rdonly(sb))) { |
392 | sbi->s_mount_flags |= EXT4_MF_MNTDIR_SAMPLED; | 392 | sbi->s_mount_flags |= EXT4_MF_MNTDIR_SAMPLED; |
393 | /* | 393 | /* |
394 | * Sample where the filesystem has been mounted and | 394 | * Sample where the filesystem has been mounted and |