]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit96ebefa0f7ecce95c59d5fdd9110de230aa99e2d
tree58fee8b2065a6b6a67410cd29be095c9496e6736
parent96e9a68d175d4ba5d086a376a94c3107252bce07
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: 75f79933b808 ("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