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 1A92BFF4958 for ; Mon, 30 Mar 2026 07:47:32 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4fkjyV2mlyz2xpt; Mon, 30 Mar 2026 18:47:30 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=115.124.30.110 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1774856850; cv=none; b=MOgzxbdln9/R9/eDFTpIwFyAUQGS0SE8Zd341bfkChm8NGHi2n3YfDnNH05TPMZOJdNq+iatut325G45woNFar2ByMZZlKTwlCuoLFnPkrV9IiHtU9laWgZwMmULU9eKCER1mTakJboZaMNoPNcxZykpPdI1BtMZb5bMuUECDRW6n3+iRBYaBW9SOw2JkZp6lXbXoLSba2zi/non67cEaY/xUdoFjTxbkpB7SokdN6++6VThXBBW5mp5ffkuFQ6thr7CHS6SI9H9ukLZ5hq7b/2AyPiuFjHtQrcGCcXAb90CdLSxTpLp5imcK6RnKKNyNrCinIMzUHgfEX2v76nGsA== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1774856850; c=relaxed/relaxed; bh=s+PX6W5DVFgyIkA2yzyjNJNcTYqCzfscgZNN2GdHO6w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NWb0pwOC5PjV0ZPR8/3zOh4Hb9KvF8oqsggulAWWzW/TurCMuyM5H+5GiqTtHHA/xjcoxpu069jtts/Fx5X2UkftmsTRYgxbGDorwHPZ2XJj+Cc4YIMGEt0RFJ0Gumeh9RJFlaJQz5+4wqN/MxtAq3fcxAjDUL/sqVQ0xGEjvVxO9OviXo/ItaTg0mTuBk7tFGGONbV5pSeudXWEkpCO3Fx/y5tFtJyuSM/ZNuCpDvxKQCZiQYhYLevvMXMmnkT46LfUHs8A0MYth6OuE/PDHGfei9Wj7orSxE0kc+qu5DrdQztQdMpo5utXQ+3konDczIfGz4sNePgc1wkAvZbSCg== 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=F6YLhD1Q; dkim-atps=neutral; spf=pass (client-ip=115.124.30.110; helo=out30-110.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=F6YLhD1Q; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.alibaba.com (client-ip=115.124.30.110; helo=out30-110.freemail.mail.aliyun.com; envelope-from=hsiangkao@linux.alibaba.com; receiver=lists.ozlabs.org) Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) (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 4fkjyR5bMxz2xlK for ; Mon, 30 Mar 2026 18:47:26 +1100 (AEDT) DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1774856841; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=s+PX6W5DVFgyIkA2yzyjNJNcTYqCzfscgZNN2GdHO6w=; b=F6YLhD1QF9CwIg+ETdnsuSmS5ZN87xoaPLYF0LwMJeZbuMVByIx2TPyQFk9Y8fg2lBTsSc3EJ843wZLmjhXNMD3RdoM+643XnPSxMscVp4kZfLLNyaeWzBfZDu93szwUJxV9IkesBZfyz43HTcX3nUWQm8Mv85zK/myi8PDCDJM= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033032089153;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0X.wSq8H_1774856838; Received: from 30.221.131.246(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0X.wSq8H_1774856838 cluster:ay36) by smtp.aliyun-inc.com; Mon, 30 Mar 2026 15:47:19 +0800 Message-ID: Date: Mon, 30 Mar 2026 15:47:18 +0800 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 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] erofs: remove the guard of showing domain_id and fsid To: Yuezhang Mo , linux-erofs@lists.ozlabs.org Cc: Gao Xiang , Chao Yu , Yue Hu , Jeffle Xu , Sandeep Dhavale , Hongbo Li , Chunhai Guo , Friendy Su , Daniel Palmer References: <20260330073235.3328579-2-Yuezhang.Mo@sony.com> From: Gao Xiang In-Reply-To: <20260330073235.3328579-2-Yuezhang.Mo@sony.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Yuezhang, On 2026/3/30 15:32, Yuezhang Mo wrote: > This change fixes an issue where domain_id was not shown when > CONFIG_EROFS_FS_PAGE_CACHE_SHARE is enabled, as this configuration > is mutually exclusive with CONFIG_EROFS_FS_ONDEMAND. > > Both domain_id and fsid fields are present in struct erofs_sb_info > regardless of configuration. They are not set if the configurations > are not enabled, and remain NULL. Therefore, the conditional guard > in erofs_show_options() are unnecessary and can be removed. > > Signed-off-by: Yuezhang Mo > Reviewed-by: Friendy Su > Reviewed-by: Daniel Palmer `domain_id` is a user-sensitive information for the page cache sharing feature (much like passwd), so it shouldn't be shown in the mount option by design, and only the mounter should know what it was set. Thanks, Gao Xiang > --- > fs/erofs/super.c | 10 ++++------ > 1 file changed, 4 insertions(+), 6 deletions(-) > > diff --git a/fs/erofs/super.c b/fs/erofs/super.c > index 972a0c82198d..be028cdf902c 100644 > --- a/fs/erofs/super.c > +++ b/fs/erofs/super.c > @@ -1095,12 +1095,10 @@ static int erofs_show_options(struct seq_file *seq, struct dentry *root) > seq_puts(seq, ",dax=never"); > if (erofs_is_fileio_mode(sbi) && test_opt(opt, DIRECT_IO)) > seq_puts(seq, ",directio"); > - if (IS_ENABLED(CONFIG_EROFS_FS_ONDEMAND)) { > - if (sbi->fsid) > - seq_printf(seq, ",fsid=%s", sbi->fsid); > - if (sbi->domain_id) > - seq_printf(seq, ",domain_id=%s", sbi->domain_id); > - } > + if (sbi->fsid) > + seq_printf(seq, ",fsid=%s", sbi->fsid); > + if (sbi->domain_id) > + seq_printf(seq, ",domain_id=%s", sbi->domain_id); > if (sbi->dif0.fsoff) > seq_printf(seq, ",fsoffset=%llu", sbi->dif0.fsoff); > if (test_opt(opt, INODE_SHARE))