]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ext4: fix mount failure with quota configured as module
authorJan Kara <jack@suse.cz>
Tue, 24 Mar 2020 09:19:00 +0000 (10:19 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 24 Mar 2020 14:37:44 +0000 (15:37 +0100)
commitb58ad7f88d43085331b41cbc0096cf867cc2f12c
tree9ce2d1c6def3ef05368768447ad377728aac3522
parent957181d4406d115ade6ef9cbb1e3af875d56f510
ext4: fix mount failure with quota configured as module

BugLink: https://bugs.launchpad.net/bugs/1868665
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: d65d87a07476 ("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
(cherry picked from commit 9db176bceb5c5df4990486709da386edadc6bd1d)
Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Acked-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
Acked-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
fs/ext4/super.c