ext4: Allow sb to be NULL in ext4_msg()
authorLukas Czerner <lczerner@redhat.com>
Wed, 27 Oct 2021 14:18:49 +0000 (16:18 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 9 Dec 2021 19:11:07 +0000 (14:11 -0500)
commitda812f611934bef16fe02d667a76df77ae9cf99a
tree60e646dbf77ce3a953f71159b0a6422325775600
parent461c3af045d3ab949360fedbfb3ea1dcd9d8b22b
ext4: Allow sb to be NULL in ext4_msg()

At the parsing phase of mount in the new mount api sb will not be
available so allow sb to be NULL in ext4_msg and use that in
handle_mount_opt().

Also change return value to appropriate -EINVAL where needed.

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