diff options
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index f8325a2bc897..5f927f6a1289 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -2670,13 +2670,13 @@ static int ext4_da_writepages(struct address_space *mapping, | |||
2670 | * If the filesystem has aborted, it is read-only, so return | 2670 | * If the filesystem has aborted, it is read-only, so return |
2671 | * right away instead of dumping stack traces later on that | 2671 | * right away instead of dumping stack traces later on that |
2672 | * will obscure the real source of the problem. We test | 2672 | * will obscure the real source of the problem. We test |
2673 | * EXT4_MOUNT_ABORT instead of sb->s_flag's MS_RDONLY because | 2673 | * EXT4_MF_FS_ABORTED instead of sb->s_flag's MS_RDONLY because |
2674 | * the latter could be true if the filesystem is mounted | 2674 | * the latter could be true if the filesystem is mounted |
2675 | * read-only, and in that case, ext4_da_writepages should | 2675 | * read-only, and in that case, ext4_da_writepages should |
2676 | * *never* be called, so if that ever happens, we would want | 2676 | * *never* be called, so if that ever happens, we would want |
2677 | * the stack trace. | 2677 | * the stack trace. |
2678 | */ | 2678 | */ |
2679 | if (unlikely(sbi->s_mount_opt & EXT4_MOUNT_ABORT)) | 2679 | if (unlikely(sbi->s_mount_flags & EXT4_MF_FS_ABORTED)) |
2680 | return -EROFS; | 2680 | return -EROFS; |
2681 | 2681 | ||
2682 | /* | 2682 | /* |