Skip to content

Commit 9db176b

Browse files
jankaratytso
authored andcommitted
ext4: fix mount failure with quota configured as module
When CONFIG_QFMT_V2 is configured as a module, the test in ext4_feature_set_ok() fails and so mount of filesystems with quota or project features fails. Fix the test to use IS_ENABLED macro which works properly even for modules. Link: https://lore.kernel.org/r/20200221100835.9332-1-jack@suse.cz Fixes: d65d87a ("ext4: improve explanation of a mount failure caused by a misconfigured kernel") Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Cc: stable@kernel.org
1 parent 8eedabf commit 9db176b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/ext4/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3034,7 +3034,7 @@ static int ext4_feature_set_ok(struct super_block *sb, int readonly)
30343034
return 0;
30353035
}
30363036

3037-
#if !defined(CONFIG_QUOTA) || !defined(CONFIG_QFMT_V2)
3037+
#if !IS_ENABLED(CONFIG_QUOTA) || !IS_ENABLED(CONFIG_QFMT_V2)
30383038
if (!readonly && (ext4_has_feature_quota(sb) ||
30393039
ext4_has_feature_project(sb))) {
30403040
ext4_msg(sb, KERN_ERR,

0 commit comments

Comments
 (0)