]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
erofs: clean up z_erofs_pcluster_readmore()
authorYue Hu <huyue2@coolpad.com>
Thu, 25 May 2023 07:26:05 +0000 (15:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:32:12 +0000 (18:32 +0200)
commit241d3c6f99c640abe76c7bb678317adff119c504
tree7bec0855e2d96bf7f2a557371f7bfd65c15731d8
parentc34a8b0083f9776183d3448e2757335609a9e068
erofs: clean up z_erofs_pcluster_readmore()

[ Upstream commit 796e9149a2fcdba5543e247abd8d911a399bb9a6 ]

`end` parameter is no needed since it's pointless for !backmost, we can
handle it with backmost internally.  And we only expand the trailing
edge, so the newstart can be replaced with ->headoffset.

Also, remove linux/prefetch.h inclusion since that is not used anymore
after commit 386292919c25 ("erofs: introduce readmore decompression
strategy").

Signed-off-by: Yue Hu <huyue2@coolpad.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230525072605.17857-1-zbestahu@gmail.com
[ Gao Xiang: update commit description. ]
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Stable-dep-of: 99f7619a77a0 ("erofs: fix to add missing tracepoint in erofs_read_folio()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/erofs/zdata.c