aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/super.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 7c46693a14d7..18873ea89e08 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3710,11 +3710,14 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
3710 if (ext4_has_feature_inline_data(sb)) { 3710 if (ext4_has_feature_inline_data(sb)) {
3711 ext4_msg(sb, KERN_ERR, "Cannot use DAX on a filesystem" 3711 ext4_msg(sb, KERN_ERR, "Cannot use DAX on a filesystem"
3712 " that may contain inline data"); 3712 " that may contain inline data");
3713 goto failed_mount; 3713 sbi->s_mount_opt &= ~EXT4_MOUNT_DAX;
3714 } 3714 }
3715 err = bdev_dax_supported(sb, blocksize); 3715 err = bdev_dax_supported(sb, blocksize);
3716 if (err) 3716 if (err) {
3717 goto failed_mount; 3717 ext4_msg(sb, KERN_ERR,
3718 "DAX unsupported by block device. Turning off DAX.");
3719 sbi->s_mount_opt &= ~EXT4_MOUNT_DAX;
3720 }
3718 } 3721 }
3719 3722
3720 if (ext4_has_feature_encrypt(sb) && es->s_encryption_level) { 3723 if (ext4_has_feature_encrypt(sb) && es->s_encryption_level) {