Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6217927rwn; Tue, 13 Sep 2022 00:15:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ZYHtrqtLrsMVvnjGduHTtF8CKvblgwbARuMWhCH2RflaYJq4SrT1iElxlJNxgQcaWIkJU X-Received: by 2002:a65:5b0d:0:b0:434:a7d2:9771 with SMTP id y13-20020a655b0d000000b00434a7d29771mr26934809pgq.356.1663053355343; Tue, 13 Sep 2022 00:15:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663053355; cv=none; d=google.com; s=arc-20160816; b=tJgOjJqIf03qEbn/ghb+GtJqcAnzDfpofkh4Bn5SCgytgxNDU22a8Cp73bIzapBAfs F3T+yDyX0aVQEFtQxWENqayrBWv2doDH5IY4/+fi4neHY+zLUVWbPlJD5ybgzYlhHMj2 FxrElUMPwmDh0F+RBkEZIyESWJCsvLQgD4/6x/4RUfMJ9XhTj2gkGu8pZZxB7KVK0SsL lVvCrrDDRmJls8PE/1MhOrBMAdBvDWJzynPqzw+Zfseo33orrtPMVas1G5Jp28oU1Fm3 gEQzkGVvLJqPcKJrG+AiUyUuFSn4Ak/aCDzW/b/mekwqVFY+xCTSWXf/63Hj4nx3A3Vn mEhA== 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=OyLv7Ck5zKVCeKTGwQzfw14Qzgu7zAt4VFGPlEoNURY=; b=tJWmKlw3yWujgH6wIbpnzpjYXrbO3vuifRS5ZaUwSN400oRCdd9uuu+C50Lf5P/bHz 746jt3Trpe+P0H8LzY9MaEXX4iqVaLMKEXe2FTZAM81nb87HKJ1hEg7tKTLH9pKZixPH KuRRAwH0EjXyISmpN00StAfhUIO37Y2ULup0bxDbvbS8lyQZ84qVvw5wnS/2TKSBFSmG GdtWnmB//fJC3e45MVykKWevcK2i7bRigLhCQPJDvX3N/f/Ecmv2n6aaK1A/Atov6oRr Lz3MJHlg2UyO8lHt4pcedTmC8W2rVdWQsR1ZCii+8jJgP4mTWcypxrpQrra2hWOOe6tz XNbQ== 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 q31-20020a17090a1b2200b001fd9be4fb6csi10625493pjq.39.2022.09.13.00.15.41; Tue, 13 Sep 2022 00:15:55 -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 S230408AbiIMGfC (ORCPT + 99 others); Tue, 13 Sep 2022 02:35:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230420AbiIMGex (ORCPT ); Tue, 13 Sep 2022 02:34:53 -0400 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD72F2181; Mon, 12 Sep 2022 23:34:50 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R571e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VPeAMF._1663050886; Received: from 30.221.130.76(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0VPeAMF._1663050886) by smtp.aliyun-inc.com; Tue, 13 Sep 2022 14:34:47 +0800 Message-ID: Date: Tue, 13 Sep 2022 14:34:46 +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: [External] 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: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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/13/22 12:31 PM, Jia Zhu wrote: > > > 在 2022/9/9 16:42, JeffleXu 写道: >>>   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); >> >> Do we also need to encode the cookie name in the "," >> format? This will affect the path of the cache files. >> > I think even though the cookies have the same name, they belong to > different volumes(path). Cookies do not affect each other. > Are there other benefits to doing so? Okay. The current implementation is correct. Please ignore the noise. -- Thanks, Jingbo