Re: [PATCH v2 2/2] erofs: clean up header parsing for ztailpacking and fragments

From: Chao Yu
Date: Sat Mar 15 2025 - 21:50:30 EST


On 2025/2/24 20:37, Gao Xiang wrote:
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.

Signed-off-by: Gao Xiang <hsiangkao@xxxxxxxxxxxxxxxxx>

Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,