]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
erofs: get rid of erofs_fs_context
authorBaokun Li <libaokun1@huawei.com>
Fri, 19 Apr 2024 12:36:10 +0000 (20:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 May 2024 14:28:38 +0000 (16:28 +0200)
commit2d1d3eb59a1752423d6b891034033bbd8b9ad8d7
tree92b988214cd56e00bd901636afacd0385e979ab4
parent189c768932d435045b1fae12bf63e53866f06a28
erofs: get rid of erofs_fs_context

commit 07abe43a28b2c660f726d66f5470f7f114f9643a upstream.

Instead of allocating the erofs_sb_info in fill_super() allocate it during
erofs_init_fs_context() and ensure that erofs can always have the info
available during erofs_kill_sb(). After this erofs_fs_context is no longer
needed, replace ctx with sbi, no functional changes.

Suggested-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20240419123611.947084-2-libaokun1@huawei.com
[ Gao Xiang: trivial conflict due to a warning message. ]
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/erofs/internal.h
fs/erofs/super.c