diff options
Diffstat (limited to 'fs/ext2')
-rw-r--r-- | fs/ext2/super.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 7646818ab266..38f9222606ee 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c | |||
@@ -959,8 +959,11 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent) | |||
959 | 959 | ||
960 | if (sbi->s_mount_opt & EXT2_MOUNT_DAX) { | 960 | if (sbi->s_mount_opt & EXT2_MOUNT_DAX) { |
961 | err = bdev_dax_supported(sb, blocksize); | 961 | err = bdev_dax_supported(sb, blocksize); |
962 | if (err) | 962 | if (err) { |
963 | goto failed_mount; | 963 | ext2_msg(sb, KERN_ERR, |
964 | "DAX unsupported by block device. Turning off DAX."); | ||
965 | sbi->s_mount_opt &= ~EXT2_MOUNT_DAX; | ||
966 | } | ||
964 | } | 967 | } |
965 | 968 | ||
966 | /* If the blocksize doesn't match, re-read the thing.. */ | 969 | /* If the blocksize doesn't match, re-read the thing.. */ |