]> git.dujemihanovic.xyz Git - linux.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)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 28 Apr 2024 12:36:51 +0000 (20:36 +0800)
commit07abe43a28b2c660f726d66f5470f7f114f9643a
tree7a2ab5c07cba1459d3241fd778582439aaec3496
parent17597b1e18d2fafef2230c987479eccaeddb4628
erofs: get rid of erofs_fs_context

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
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/internal.h
fs/erofs/super.c