ext4: check ext2/3 compatibility outside handle_mount_opt()
authorLukas Czerner <lczerner@redhat.com>
Wed, 27 Oct 2021 14:18:51 +0000 (16:18 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 9 Dec 2021 19:11:07 +0000 (14:11 -0500)
commitb6bd243500b6024d92eaaacf592ed8588c2c75ea
tree9ac06a8ba185ec6b662682bc2df1a750bdbe31f4
parente6e268cb682290da29e3c8408493a4474307b8cc
ext4: check ext2/3 compatibility outside handle_mount_opt()

At the parsing phase of mount in the new mount api sb will not be
available so move ext2/3 compatibility check outside handle_mount_opt().
Unfortunately we will lose the ability to show exactly which option is
not compatible.

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