|
@@ -1664,8 +1664,12 @@ static int handle_mount_opt(struct super_block *sb, char *opt, int token,
|
|
}
|
|
}
|
|
sbi->s_jquota_fmt = m->mount_opt;
|
|
sbi->s_jquota_fmt = m->mount_opt;
|
|
#endif
|
|
#endif
|
|
-#ifndef CONFIG_FS_DAX
|
|
|
|
} else if (token == Opt_dax) {
|
|
} else if (token == Opt_dax) {
|
|
|
|
+#ifdef CONFIG_FS_DAX
|
|
|
|
+ ext4_msg(sb, KERN_WARNING,
|
|
|
|
+ "DAX enabled. Warning: EXPERIMENTAL, use at your own risk");
|
|
|
|
+ sbi->s_mount_opt |= m->mount_opt;
|
|
|
|
+#else
|
|
ext4_msg(sb, KERN_INFO, "dax option not supported");
|
|
ext4_msg(sb, KERN_INFO, "dax option not supported");
|
|
return -1;
|
|
return -1;
|
|
#endif
|
|
#endif
|