]> www.infradead.org Git - users/jedix/linux-maple.git/commit
erofs: clean up header parsing for ztailpacking and fragments
authorGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 24 Feb 2025 12:37:47 +0000 (20:37 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 16 Mar 2025 17:22:27 +0000 (01:22 +0800)
commit540787d38b10dbc16a7d2bc2845752ab1605403a
treea8b1d722e430d1715657a07f59632ac364768792
parentb7710262d743aca112877d12abed61ce8a5d0d98
erofs: clean up header parsing for ztailpacking and fragments

Simplify the logic in z_erofs_fill_inode_lazy() by combining the
handling of ztailpacking and fragments, as they are mutually exclusive.

Note that `h->h_clusterbits >> Z_EROFS_FRAGMENT_INODE_BIT` is handled
above, so no need to duplicate the check.

Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250224123747.1387122-2-hsiangkao@linux.alibaba.com
fs/erofs/zmap.c