diff options
author | Baokun Li <libaokun1@huawei.com> | 2024-04-19 20:36:10 +0800 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2024-04-28 20:36:51 +0800 |
commit | 07abe43a28b2c660f726d66f5470f7f114f9643a (patch) | |
tree | 7a2ab5c07cba1459d3241fd778582439aaec3496 /block/bsg.c | |
parent | 17597b1e18d2fafef2230c987479eccaeddb4628 (diff) |
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>
Diffstat (limited to 'block/bsg.c')
0 files changed, 0 insertions, 0 deletions