]> www.infradead.org Git - users/jedix/linux-maple.git/commit
erofs: simplify tail inline pcluster handling
authorGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 25 Feb 2025 11:40:38 +0000 (19:40 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 16 Mar 2025 17:22:18 +0000 (01:22 +0800)
commitb7710262d743aca112877d12abed61ce8a5d0d98
tree093f78475b8b0841c2c201c469793d03ea52f3b9
parent579450277780159b8ba94a08b2f1d1da2002aec5
erofs: simplify tail inline pcluster handling

Use `z_idata_size != 0` to indicate that ztailpacking is enabled.
`Z_EROFS_ADVISE_INLINE_PCLUSTER` cannot be ignored, as `h_idata_size`
could be non-zero prior to erofs-utils 1.6 [1].

Additionally, merge `z_idataoff` and `z_fragmentoff` since these two
features are mutually exclusive for a given inode.

[1] https://git.kernel.org/xiang/erofs-utils/c/547bea3cb71a
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250225114038.3259726-1-hsiangkao@linux.alibaba.com
fs/erofs/internal.h
fs/erofs/zmap.c