Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 842EACCD193 for ; Thu, 16 Oct 2025 02:48:34 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4cnC7d6b0Mz2yQH; Thu, 16 Oct 2025 13:48:29 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=115.124.30.113 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1760582909; cv=none; b=PoLbGmNaHsk5zSUFr45wf2sYQqnfgbXq5ERA3QAIaSpikrGZmyHrxEO3cA3huM7Df5xm62cZ/jFf57PcCB0L/aBvlqUqG7blsXC7a3hQe1JepoJHlnQaA+T2uAwFK8yKz4j2cp7vQ87tEOCMis1kQtpKfRzWCC52zbozMRXg0A0JZhpApac4tHP+ZDC9ArtXk481strAapaqI+HW6UVRLNifGo2LwQkmUp6nDdSEpdaSN6tazQ5l5beLzUMiLIHmC42sFgUTRbFGtL5Wo4v11AlseJqAVo8JyowSxOwEIj70P/h0PPtNw2U9HX+ItsMfsv9TzQHW6WuTZ955+EqBOg== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1760582909; c=relaxed/relaxed; bh=Qo6vdEDkApS2mFPI3GLGBw3gdmrpYYI8z4dUzti+jzY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TO0tG4CuPDMtMD/+TzdlXa5H0KWQQWfAheplYMdH51Xf6WaTjdVJ+hJeIRvcjWF6/C7GLhu56bWBGcu4YQbTyGGyjI0z/JNHjM5qgujsrHhjUqPdRkzwfqWfPJ0zLMWm5qQjMHeWbE+Hwe/XJhF5bfzI06dQoG0/eQiA9zqSagpfEgzZg7Vjw70fGnpcaMwk+n6lw5D8ZJSVqlSH/vApnQqyBqysCckR1ezhaM7eJZs7czvizwAVyHq0pY+cBvuOrBuv2hecrfVfQsNBY0FNMBthiZEWZ7zrMMIFo/VL9lwna3BQkfTvm70+YAfUQn6cj74B2RuoPKtWaMDMbxrgfQ== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; dkim=pass (1024-bit key; unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=m/An3fWu; dkim-atps=neutral; spf=pass (client-ip=115.124.30.113; helo=out30-113.freemail.mail.aliyun.com; envelope-from=hsiangkao@linux.alibaba.com; receiver=lists.ozlabs.org) smtp.mailfrom=linux.alibaba.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=m/An3fWu; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.alibaba.com (client-ip=115.124.30.113; helo=out30-113.freemail.mail.aliyun.com; envelope-from=hsiangkao@linux.alibaba.com; receiver=lists.ozlabs.org) Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4cnC7b2X6hz2yqq for ; Thu, 16 Oct 2025 13:48:25 +1100 (AEDT) DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1760582901; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=Qo6vdEDkApS2mFPI3GLGBw3gdmrpYYI8z4dUzti+jzY=; b=m/An3fWupXDQe/yI23Na/aqKuotIPy6w3zuErYjCMs7KgYBVya7NXx7WygcIdCwEnpCZGPHkp0ZRXtztR1Gz439G8UrkKywikSsHd0amcSWwlJsyfsv6p5lg6dolvxDdat+LEBK4UsUhCwHpPSFFpo38xMpkRficrA9dam6mlww= Received: from x31i01179.sqa.na131.tbsite.net(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0WqIZVhW_1760582896 cluster:ay36) by smtp.aliyun-inc.com; Thu, 16 Oct 2025 10:48:20 +0800 From: Gao Xiang To: linux-erofs@lists.ozlabs.org Cc: Gao Xiang Subject: [PATCH 1/7] erofs-utils: lib: fix a misuse of `params->all_fragments` Date: Thu, 16 Oct 2025 10:48:09 +0800 Message-ID: <20251016024815.2750927-1-hsiangkao@linux.alibaba.com> X-Mailer: git-send-email 2.43.5 X-Mailing-List: linux-erofs@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Should use `all_fragments` to skip special inodes. Fixes: 7c153f1875dc ("erofs-utils: lib: migrate advance compression configurations") Signed-off-by: Gao Xiang --- lib/compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compress.c b/lib/compress.c index b7ca3ad..7f34b66 100644 --- a/lib/compress.c +++ b/lib/compress.c @@ -1873,7 +1873,7 @@ void *erofs_begin_compressed_file(struct erofs_importer *im, ictx->fragemitted = false; ictx->dedupe = false; - if (params->all_fragments && !inode->fragment_size) { + if (all_fragments && !inode->fragment_size) { ret = erofs_pack_file_from_fd(inode, fd, ictx->tofh); if (ret) goto err_free_idata; -- 2.43.5