]> 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)
commitc0586dbdf1a583657377ebc2fe07d8b7ec24e849
tree4d2cac2dd98935b0e7a88c3c1649078c5a6e6723
parenta8d85584c49c3d169d5011cf97389666b965dcb7
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: 01ece651ef0c ("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