]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfaa33bea300c9dc7a5b665e2e8c5184b3cf1a675
treeee1947b767e2ee4f09053fa5474d61c7827ab7bb
parent891c31a78a1f9d26c1e255db000f10eef765d7e4
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: 75f79933b808 ("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