diff options
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 753f4e68b820..c9ab67da6e5a 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -1664,8 +1664,12 @@ static int handle_mount_opt(struct super_block *sb, char *opt, int token, | |||
1664 | } | 1664 | } |
1665 | sbi->s_jquota_fmt = m->mount_opt; | 1665 | sbi->s_jquota_fmt = m->mount_opt; |
1666 | #endif | 1666 | #endif |
1667 | #ifndef CONFIG_FS_DAX | ||
1668 | } else if (token == Opt_dax) { | 1667 | } else if (token == Opt_dax) { |
1668 | #ifdef CONFIG_FS_DAX | ||
1669 | ext4_msg(sb, KERN_WARNING, | ||
1670 | "DAX enabled. Warning: EXPERIMENTAL, use at your own risk"); | ||
1671 | sbi->s_mount_opt |= m->mount_opt; | ||
1672 | #else | ||
1669 | ext4_msg(sb, KERN_INFO, "dax option not supported"); | 1673 | ext4_msg(sb, KERN_INFO, "dax option not supported"); |
1670 | return -1; | 1674 | return -1; |
1671 | #endif | 1675 | #endif |