From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B520F2F4A19 for ; Thu, 18 Dec 2025 09:20:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766049661; cv=none; b=MD3RwfDsht7uhaTe3TORGs0Im/Ux61cwd9WY9qxlFBH/knKtnP3etK53gVqW4Qi19MfQN+QX8HPWJ3sQbk3TcYgYIscP9y6ULQhQ+J57yPcbbuqjFhbedPsjFhRU4yt8q580JVgabn6g4m2oDkZ8gMvfz/OTkMAQMrFgkEGYLKs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766049661; c=relaxed/simple; bh=iuIIrynmhvjiXL94OU69k8U2oUyRQXOW+2szzdnpkdQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=nfm8BWdAIXbH6+SfOCBoRTpEkXNnb3hGG78AGKX9tWjLJZ+rhtrz0d3iZHifxnPwjjLia0KhW+LMOu0E3tsMnLyujWZbv12z8lWo18K66Z9MODNkdSJRramdAboi9LtaBs5wJWD4ET+rILFrRBxt0128EabmDcCsAIXP3a4Ko6M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=XUp5qJVa; arc=none smtp.client-ip=115.124.30.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="XUp5qJVa" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1766049655; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=yclqDNv4o6yDJJ1KXJuwB2HoSmBNcCWwAEwF4mEkXRo=; b=XUp5qJVauh6kGL9NqUMBt8aiTBrwaozc5tuYOP/jyUyikU02oVETUhev6NCAr8d07Idi2lFTmhr8sYbBu8fNd0+VFo33YhMwutKqxUCgcvustois/ZzJ8cikDTTrr2eBcOfcp7J+/PqSUvmQyIU2N7lHSOw7eBby+oSo4nuoMU8= Received: from 30.221.132.6(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0Wv7xdSS_1766049654 cluster:ay36) by smtp.aliyun-inc.com; Thu, 18 Dec 2025 17:20:55 +0800 Message-ID: <5d9e758d-ed9e-45f2-a909-40093ac8e29f@linux.alibaba.com> Date: Thu, 18 Dec 2025 17:20:54 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] erofs: simplify the code using for_each_set_bit To: Yuwen Chen , xiang@kernel.org Cc: chao@kernel.org, huyue2@coolpad.com, jefflexu@linux.alibaba.com, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org References: From: Gao Xiang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2025/12/18 12:19, Yuwen Chen wrote: > 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 > --- > > v2 -> v3: > - rebase the patch > - remove the unnecessary judgment logic > > v1 -> v2: > - revert the modifications to the fs/erofs/internal.h > > fs/erofs/decompressor.c | 21 +++++++++------------ > 1 file changed, 9 insertions(+), 12 deletions(-) LGTM, Reviewed-by: Gao Xiang Thanks, Gao Xiang