ext4: only set EXT4_MOUNT_QUOTA when journalled quota file is specified
authorLukas Czerner <lczerner@redhat.com>
Tue, 4 Jan 2022 14:35:18 +0000 (15:35 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 10 Jan 2022 18:25:55 +0000 (13:25 -0500)
commit4c1bd5a90c4e716e5bde33f01a40bb66dc4a9903
treecaf6e0fb49eb9a6e47b32c60574b5ba93e69c725
parent13b215a9e657808414a2159b0dec90f1c31ebe05
ext4: only set EXT4_MOUNT_QUOTA when journalled quota file is specified

Only set EXT4_MOUNT_QUOTA when journalled quota file is specified,
otherwise simply disabling specific quota type (usrjquota=) will also
set the EXT4_MOUNT_QUOTA super block option.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Fixes: e6e268cb6822 ("ext4: move quota configuration out of handle_mount_opt()")
Link: https://lore.kernel.org/r/20220104143518.134465-2-lczerner@redhat.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c