erofs: fix ztailpacking for subpage compressed blocks
authorGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 14 Dec 2023 16:13:37 +0000 (00:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Feb 2024 20:14:16 +0000 (20:14 +0000)
commitd48760461aebba91fa608d65123ceac784c1e34e
tree21d48da58a24506455fc4c5916d9d29fb0540639
parent8b18d5f5454e044228f5093ae932333753f00e67
erofs: fix ztailpacking for subpage compressed blocks

[ Upstream commit e5aba911dee5e20fa82efbe13e0af8f38ea459e7 ]

`pageofs_in` should be the compressed data offset of the page rather
than of the block.

Acked-by: Chao Yu <chao@kernel.org>
Reviewed-by: Yue Hu <huyue2@coolpad.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20231214161337.753049-1-hsiangkao@linux.alibaba.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/erofs/zdata.c