]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8ce9fa6a3f28d679fa8ce3bb45285d64ab4c4600
tree4d2cac2dd98935b0e7a88c3c1649078c5a6e6723
parent14248f540c2a63979cc0b6d26ba6756218d81baf
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: 37a300fae7b6 ("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