erofs: fix ztailpacking on > 4GiB filesystems
authorGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 22 Feb 2022 03:31:18 +0000 (11:31 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 2 Mar 2022 13:58:45 +0000 (21:58 +0800)
commit22ba5e99b96f1c0dbdfa4f4e1d9751b4c8348541
tree4d2cac2dd98935b0e7a88c3c1649078c5a6e6723
parentcfb92440ee71adcc2105b0890bb01ac3cddb8507
erofs: fix ztailpacking on > 4GiB filesystems

z_idataoff here is an absolute physical offset, so it should use
erofs_off_t (64 bits at least). Otherwise, it'll get trimmed and
cause the decompresion failure.

Link: https://lore.kernel.org/r/20220222033118.20540-1-hsiangkao@linux.alibaba.com
Fixes: ab92184ff8f1 ("erofs: add on-disk compressed tail-packing inline support")
Reviewed-by: Yue Hu <huyue2@yulong.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/internal.h