]> 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)
commit556c39413ad5c7a444c11c1b1991e6c7cfc4cda5
tree60e646dbf77ce3a953f71159b0a6422325775600
parentffd249dc606f30246cd99b2e502de2ec12359c34
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