]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
erofs: simplify the code using for_each_set_bit
authorYuwen Chen <ywen.chen@foxmail.com>
Thu, 18 Dec 2025 04:19:52 +0000 (12:19 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 22 Jan 2026 16:00:36 +0000 (00:00 +0800)
commit43ac93b5432c4aa826a19be95737af53c0f5c1e1
treeb33e9abde980471db0b0897e0b571212efd1c499
parent0cc7d0c926cc80151bdf803f3cb6f7476f648d73
erofs: simplify the code using for_each_set_bit

When mounting the EROFS file system, it is necessary to check the
available compression algorithms. At this time, the for_each_set_bit
function can be used to simplify the code logic.

Signed-off-by: Yuwen Chen <ywen.chen@foxmail.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/decompressor.c