linux/fs/erofs
Zhan Xusheng 803d09a554 erofs: handle 48-bit blocks_hi for compressed inodes
Combine i_nb.blocks_hi with i_u.blocks_lo when computing
inode->i_blocks for compressed inodes, mirroring the startblk_hi
handling for unencoded inodes a few lines above.  Also evaluate
the shift in u64 to avoid truncation.

Fixes: efb2aef569 ("erofs: add encoded extent on-disk definition")
Fixes: 1d191b4ca5 ("erofs: implement encoded extent metadata")
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
2026-06-22 18:50:36 +08:00
..
compress.h erofs: enable error reporting for z_erofs_fixup_insize() 2025-11-30 23:49:32 +08:00
data.c erofs: remove fscache backend entirely 2026-06-22 11:00:06 +08:00
decompressor_crypto.c erofs: make z_erofs_crypto[] static 2026-01-23 00:00:18 +08:00
decompressor_deflate.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
decompressor_lzma.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
decompressor_zstd.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
decompressor.c erofs: error out obviously illegal extents in advance 2026-04-10 16:53:39 +08:00
dir.c erofs: fix the out-of-bounds nameoff handling for trailing dirents 2026-04-21 16:56:04 +08:00
erofs_fs.h erofs: add sparse support to pcluster layout 2026-06-22 06:48:59 +08:00
fileio.c erofs: set fileio bio failed in short read case 2026-03-17 10:27:31 +08:00
inode.c erofs: handle 48-bit blocks_hi for compressed inodes 2026-06-22 18:50:36 +08:00
internal.h erofs: remove fscache backend entirely 2026-06-22 11:00:06 +08:00
ishare.c erofs: remove fscache backend entirely 2026-06-22 11:00:06 +08:00
Kconfig erofs: remove fscache backend entirely 2026-06-22 11:00:06 +08:00
Makefile erofs: remove fscache backend entirely 2026-06-22 11:00:06 +08:00
namei.c erofs: get rid of erofs_kmap_type 2025-03-17 01:21:24 +08:00
super.c erofs: remove fscache backend entirely 2026-06-22 11:00:06 +08:00
sysfs.c erofs: avoid some unnecessary #ifdefs 2026-02-03 11:25:55 +08:00
xattr.c erofs: fix metabuf leak in inode xattr initialization 2026-05-20 14:53:14 +08:00
xattr.h erofs: mark inodes without acls in erofs_read_inode() 2026-01-28 15:38:37 +08:00
zdata.c erofs: remove fscache backend entirely 2026-06-22 11:00:06 +08:00
zmap.c erofs: add sparse support to pcluster layout 2026-06-22 06:48:59 +08:00
zutil.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00