ext4: switch to the new mount api
authorLukas Czerner <lczerner@redhat.com>
Wed, 27 Oct 2021 14:18:56 +0000 (16:18 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 9 Dec 2021 19:11:08 +0000 (14:11 -0500)
commitcebe85d570cf84804e848332d6721bc9e5300e07
treeae2909ecb4036e754e3a9532eef5b0a3a3c0dbce
parent97d8a670b4531437d5b842cf68dafa6d1a932ddf
ext4: switch to the new mount api

Add the necessary functions for the fs_context_operations. Convert and
rename ext4_remount() and ext4_fill_super() to ext4_get_tree() and
ext4_reconfigure() respectively and switch the ext4 to use the new api.

One user facing change is the fact that we no longer have access to the
entire string of mount options provided by mount(2) since the mount api
does not store it anywhere. As a result we can't print the options to
the log as we did in the past after the successful mount.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Link: https://lore.kernel.org/r/20211027141857.33657-13-lczerner@redhat.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c