ext4: fix i_version handling on remount
authorLukas Czerner <lczerner@redhat.com>
Wed, 22 Dec 2021 10:45:17 +0000 (11:45 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 23 Dec 2021 15:34:03 +0000 (10:34 -0500)
commit960e0ab63b2e5d8476bc873743f812e9e90cd047
tree58fee8b2065a6b6a67410cd29be095c9496e6736
parent4437992be7ca3ac5dd0a62cad10357112d4fb43e
ext4: fix i_version handling on remount

i_version mount option is getting lost on remount. This is because the
'i_version' mount option differs from the util-linux mount option
'iversion', but it has exactly the same functionality. We have to
specifically notify the vfs that this is what we want by setting
appropriate flag in fc->sb_flags. Fix it and as a result we can remove
*flags argument from __ext4_remount(); do the same for
__ext4_fill_super().

In addition set out to deprecate ext4 specific 'i_version' mount option
in favor or 'iversion' by kernel version 5.20.

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