]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Dec 2024 13:02:00 +0000 (14:02 +0100)
commitf067d3f69d19629df29050ef0dd9d282aa800d32
treea2a6a8d0aa248a4530e238e48650d0e4c581c122
parent3e0d81efcb45d53466135c0c93dce62df27b6d6a
erofs: reference `struct erofs_device_info` for erofs_map_dev

[ Upstream commit f8d920a402aec3482931cb5f1539ed438740fc49 ]

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
Stable-dep-of: 6422cde1b0d5 ("erofs: use buffered I/O for file-backed mounts by default")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/erofs/data.c
fs/erofs/fileio.c
fs/erofs/fscache.c
fs/erofs/internal.h