]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
erofs: clean up header parsing for ztailpacking and fragments
authorGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 23 Jul 2025 13:50:08 +0000 (09:50 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Aug 2025 08:48:45 +0000 (09:48 +0100)
commit41485d7c637b0879abd4c065d0fb7df08e44b292
tree27ca90edd71e055a14a21b42449100450f5d46f7
parentf9b2cb6fff33935c5eff5d84c8bc14d80f249b3c
erofs: clean up header parsing for ztailpacking and fragments

[ Upstream commit 540787d38b10dbc16a7d2bc2845752ab1605403a ]

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
Stable-dep-of: b44686c8391b ("erofs: fix large fragment handling")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/erofs/zmap.c