]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
erofs: use Z_EROFS_LCLUSTER_TYPE_MAX to simplify switches
authorHongzhen Luo <hongzhen@linux.alibaba.com>
Wed, 23 Jul 2025 13:50:06 +0000 (09:50 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Aug 2025 08:48:45 +0000 (09:48 +0100)
commit516fabf341739fe26f82f201522e459920a332ea
treeff509926c8af31a6d341be1897ed12790b414e58
parent9a84e212e3342423d1339d7e6d6abbe0ad6b80c8
erofs: use Z_EROFS_LCLUSTER_TYPE_MAX to simplify switches

[ Upstream commit 3b7781aeaefb627d4e07c1af9be923f9e8047d8b ]

There's no need to enumerate each type.  No logic changes.

Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20250210032923.3382136-1-hongzhen@linux.alibaba.com
Signed-off-by: Gao Xiang <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