erofs: use Z_EROFS_LCLUSTER_TYPE_MAX to simplify switches
authorHongzhen Luo <hongzhen@linux.alibaba.com>
Mon, 10 Feb 2025 03:29:23 +0000 (11:29 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 16 Mar 2025 17:20:16 +0000 (01:20 +0800)
commit3b7781aeaefb627d4e07c1af9be923f9e8047d8b
treed0b8cf7b921a2302b0e18b044faf8b069c7f4238
parent80e54e84911a923c40d7bee33a34c1b4be148d7a
erofs: use Z_EROFS_LCLUSTER_TYPE_MAX to simplify switches

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>
fs/erofs/zmap.c