]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit55dd05680afb543beda562dce5062dbfa4273bdd
tree60e646dbf77ce3a953f71159b0a6422325775600
parentfebfe2351a81693798ff547d6cdcb0c4adda4f8b
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