Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7393991rwn; Tue, 13 Sep 2022 20:15:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR42jPG3MurLSewq1Oat5ag2df1fwc6Fn1mYurqmaTqYktCbJneda4v2aXIF7D5FxARdVSgw X-Received: by 2002:a17:902:da88:b0:178:143a:7267 with SMTP id j8-20020a170902da8800b00178143a7267mr21498469plx.164.1663125357585; Tue, 13 Sep 2022 20:15:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663125357; cv=none; d=google.com; s=arc-20160816; b=Uq6qO8+i2dNPcMlBDKZM6K3z8qO4bptQHDrHdpXsyltUb4HeR5Utxc6v77yULAMbP+ rsE1J4sBi8SLW+06NxH+zOxzM8ywwLZnczJdRkiljMpJP3R5674VQLvI6012OMMvGrZB t3h3a5tjljvm780IbQixrMVPPwzWQjlzwPapv7tpZKDgMJYaGXbBwDQeYZ8lLG92R5me kzyPjauqvPmjj3wpcKzQ6/MtzVpdehbJ8tvEAFSAmo3J2OvQtXWRahm8Xpc4ikzIX/Kt Je8JQ+oR5QRsJ5XaP9fwJrxmKypZSrSjIWsdEV3r4dyXOCLgeVXy+Wr1jGdKjy4aAln9 SfDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=vlsaT6rY5tdG5NKpOXRQ1AkltB2K47Hf1exHj7JRVSc=; b=U7zSkhqezrGoK83y7ij/b26vuQoecrY2e5WRe0SVcUxTCY+SqIrj5v2K6jv++1ImfJ Z+hy4KYd6J+d+ohxg1M7HR7FdtxnNy1XdwnfqdcO2HU4PBQJ7a1InuCb85lo2hrVmDf+ BDF+ECkD4BFmGZJe7FtXwOC7nYkK746trESP02mJn42gF2SVN5z+dQ+f59zltyje6I6o rFAAYQM19kSK7bBViJkm/8fRsZ5Apu3ZCkhJL7oYka84iiqsQhnF6QQ1hxspihgeL4Xo QHcepuSp0neKUw92OzL3vnROOdn5NK5IzyTUN0k/f5x9S6L8iiPnS/+RJuUDfZ4AKR4U U46Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d4-20020a655884000000b0042c18d35aaesi2392666pgu.63.2022.09.13.20.15.45; Tue, 13 Sep 2022 20:15:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229647AbiINDCb (ORCPT + 99 others); Tue, 13 Sep 2022 23:02:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbiINDC2 (ORCPT ); Tue, 13 Sep 2022 23:02:28 -0400 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51FCB6BD60; Tue, 13 Sep 2022 20:02:26 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VPlAizs_1663124541; Received: from 30.221.129.214(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0VPlAizs_1663124541) by smtp.aliyun-inc.com; Wed, 14 Sep 2022 11:02:22 +0800 Message-ID: <56b0a8c1-94ce-3219-6b43-d91d2e0e85b5@linux.alibaba.com> Date: Wed, 14 Sep 2022 11:02:21 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH V2 2/5] erofs: introduce fscache-based domain Content-Language: en-US To: Jia Zhu , linux-erofs@lists.ozlabs.org, xiang@kernel.org, chao@kernel.org Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, yinxin.x@bytedance.com, huyue2@coolpad.com References: <20220902105305.79687-1-zhujia.zj@bytedance.com> <20220902105305.79687-3-zhujia.zj@bytedance.com> From: JeffleXu In-Reply-To: <20220902105305.79687-3-zhujia.zj@bytedance.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/2/22 6:53 PM, Jia Zhu wrote: > int erofs_fscache_register_cookie(struct super_block *sb, > struct erofs_fscache **fscache, > char *name, bool need_inode) > @@ -495,7 +581,8 @@ int erofs_fscache_register_fs(struct super_block *sb) > char *name; > int ret = 0; > > - name = kasprintf(GFP_KERNEL, "erofs,%s", sbi->opt.fsid); > + name = kasprintf(GFP_KERNEL, "erofs,%s", > + sbi->domain ? sbi->domain->domain_id : sbi->opt.fsid); > if (!name) > return -ENOMEM; > What if domain_id and fsid has the same value? How about the format "erofs,,"? While in the non-share-domain mode, is the format like "erofs,," or the default "erofs,"? -- Thanks, Jingbo