]> www.infradead.org Git - users/jedix/linux-maple.git/commit
erofs: reference `struct erofs_device_info` for erofs_map_dev
authorGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 12 Dec 2024 23:54:01 +0000 (07:54 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 16 Dec 2024 13:02:06 +0000 (21:02 +0800)
commitf8d920a402aec3482931cb5f1539ed438740fc49
treeecb4e1540705d133db25feb774587b74553e60f7
parent7b00af2c5414dc01e0718deef7ead81102867636
erofs: reference `struct erofs_device_info` for erofs_map_dev

Record `m_sb` and `m_dif` to replace `m_fscache`, `m_daxdev`, `m_fp`
and `m_dax_part_off` in order to simplify the codebase.

Note that `m_bdev` is still left since it can be assigned from
`sb->s_bdev` directly.

Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20241212235401.2857246-1-hsiangkao@linux.alibaba.com
fs/erofs/data.c
fs/erofs/fileio.c
fs/erofs/fscache.c
fs/erofs/internal.h