]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
erofs: remove need_kmap in erofs_read_metabuf()
authorGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 14 Jul 2025 09:09:06 +0000 (17:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:37:38 +0000 (16:37 +0200)
commit1d5a938cdf97bd58b3ad76b46f9d9bdf4adff20f
tree18c909cf59e15f0dc65e96accc10433d3fb2a880
parent30fb1a3d22685ac7b15186e72c664999bcef7d58
erofs: remove need_kmap in erofs_read_metabuf()

[ Upstream commit 5e744cb61536bb4e37caca9c5e84feef638782be ]

 - need_kmap is always true except for a ztailpacking case; thus, just
   open-code that one;

 - The upcoming metadata compression will add a new boolean, so simplify
   this first.

Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20250714090907.4095645-1-hsiangkao@linux.alibaba.com
Stable-dep-of: 131897c65e2b ("erofs: fix invalid algorithm for encoded extents")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/erofs/data.c
fs/erofs/fileio.c
fs/erofs/fscache.c
fs/erofs/inode.c
fs/erofs/internal.h
fs/erofs/super.c
fs/erofs/zdata.c
fs/erofs/zmap.c