ext4: don't fail remount if journalling mode didn't change
authorLukas Czerner <lczerner@redhat.com>
Mon, 20 Dec 2021 15:26:57 +0000 (16:26 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 23 Dec 2021 15:28:13 +0000 (10:28 -0500)
commit4c2467287779f744cdd70c8ec70903034d6584f0
treeee1947b767e2ee4f09053fa5474d61c7827ab7bb
parentba2e524d918ab72c0e5edc02354bd6cb43d005f8
ext4: don't fail remount if journalling mode didn't change

Switching to the new mount api introduced inconsistency in how the
journalling mode mount option (data=) is handled during a remount.

Ext4 always prevented changing the journalling mode during the remount,
however the new code always fails the remount when the journalling mode
is specified, even if it remains unchanged. Fix it.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reported-by: Heiner Kallweit <hkallweit1@gmail.com>
Fixes: cebe85d570cf ("ext4: switch to the new mount api")
Link: https://lore.kernel.org/r/20211220152657.101599-1-lczerner@redhat.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c