From nobody Sat Jul 25 22:03:16 2026 Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) (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 2ED2E35F16C for ; Mon, 13 Jul 2026 08:35:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.110 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783931743; cv=none; b=GL3cVLBcrJUprsf3RePX2Dpqi+3iQS+O3Sqds8KNpAeLrhMkrFZqDMc1sqZLLjphqZxGoJ+8MZ5l/becPj0xray6b5DGV84WQu86BFQ6GDgoIsr6YBTn7ccVTTxqK3wAldA7auJNaoOODPV4QQxvxI6X7qsU57V1eZtm22/EYPA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783931743; c=relaxed/simple; bh=orjg60Av419DdS7MfhuvKq8F9kJY5+9TEjPDJUkRxQE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=R23iCrynLAEAByeWaK4JzoBUZutxj60IigW0GsG6yeyJU8JL0rg+KO34DadAuZ+FVgYdRyLkNhdR/6Ler5Atchhs0s8lWsUrqb+BS+UgKmoc6/0AwnhohkVA+9M7K0stD0eGxKFBP/rijXxbPcy0FJ2NtfSwkSFaxgk0sVUdYY0= 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=Y2yyoZeZ; arc=none smtp.client-ip=115.124.30.110 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="Y2yyoZeZ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1783931737; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=2SmJ95mWigTNYSEHKoKTBhLuvadF7wM9nv0YjuUp5Vg=; b=Y2yyoZeZ3UYQ7A8n2fkLGSeb9FNltm8kA/9wddlwXRp6jQRle5vHknm+luRq5gl69+hqdMyx1jLhc4hzm7POQmQfd7Vtv6P9sSqvKLhnOuZjNJGmOdy5PEF9kaKEF3WDYQOZ/XIwEAmVZJT63yG8zrpHsTUYLpeVTp6l0g6zUaI= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037033178;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0X6xCluZ_1783931730; Received: from x31i01179.sqa.na131.tbsite.net(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0X6xCluZ_1783931730 cluster:ay36) by smtp.aliyun-inc.com; Mon, 13 Jul 2026 16:35:37 +0800 From: Gao Xiang To: linux-erofs@lists.ozlabs.org Cc: LKML , oliver.yang@linux.alibaba.com, Gao Xiang Subject: [PATCH] erofs: hide "cache_strategy=" for plain filesystems Date: Mon, 13 Jul 2026 16:35:29 +0800 Message-ID: <20260713083529.3309658-1-hsiangkao@linux.alibaba.com> X-Mailer: git-send-email 2.43.5 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" "cache_strategy=3D" is meaningless and confusing on unencoded EROFS filesystems; gate it on compressed images only since it's now possible after commit 7cef3c834194 ("erofs: separate plain and compressed filesystems formally"). Signed-off-by: Gao Xiang --- fs/erofs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/erofs/super.c b/fs/erofs/super.c index 86fa5c6a0c70..85674b08f66e 100644 --- a/fs/erofs/super.c +++ b/fs/erofs/super.c @@ -1038,7 +1038,7 @@ static int erofs_show_options(struct seq_file *seq, s= truct dentry *root) ",user_xattr" : ",nouser_xattr"); if (IS_ENABLED(CONFIG_EROFS_FS_POSIX_ACL)) seq_puts(seq, test_opt(opt, POSIX_ACL) ? ",acl" : ",noacl"); - if (IS_ENABLED(CONFIG_EROFS_FS_ZIP)) + if (IS_ENABLED(CONFIG_EROFS_FS_ZIP) && sbi->available_compr_algs) seq_printf(seq, ",cache_strategy=3D%s", erofs_param_cache_strategy[opt->cache_strategy].name); if (test_opt(opt, DAX_ALWAYS)) --=20 2.43.5