f2fs: Allow sbi to be NULL in f2fs_printk
authorHongbo Li <lihongbo22@huawei.com>
Thu, 10 Jul 2025 12:14:11 +0000 (12:14 +0000)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 22 Jul 2025 15:58:14 +0000 (15:58 +0000)
commit19c4b380f23e5a445cfc9e922c996784990d218c
tree3a4ccf728412bfbc593116836fc4e1ff5ac3dded
parent02eb5fe42a8c6cfcf063126df7e41ec2036b083c
f2fs: Allow sbi to be NULL in f2fs_printk

At the parsing phase of the new mount api, sbi will not be
available. So here allows sbi to be NULL in f2fs log helpers
and use that in handle_mount_opt().

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
[sandeen: forward port]
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c