Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp225810rwn; Wed, 14 Sep 2022 19:35:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR4DA7SmfX9MRwEQOppjkQAIAzhyxJcXMJWDtxKbxAwgKXwSU/WRKiHXg8xq1wG+GlNmCbGS X-Received: by 2002:a05:6402:2793:b0:451:fd7d:fc0b with SMTP id b19-20020a056402279300b00451fd7dfc0bmr12753729ede.13.1663209320028; Wed, 14 Sep 2022 19:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663209320; cv=none; d=google.com; s=arc-20160816; b=XCMDmM/0QKZO1WLG//C5FkwhTXBGCk407lt7wrKkh2w5ljzU/2j/L5xPcsllQFooY6 m31U4T5EIDSErr2SwzrM2eYqgaeYDWTg7Er1weFNPCx5qUm3V616dQt8Ar3U7GX+qT13 yoGInus4ziZkzODQh59tp/m5tNNbJKO2pkna5DZqQCZ35JGeqQJYXE3cRSJgKUjgtFTd 8bHfMu28JWiE0ODGVN7oqmcLWG11LCJp9yGLvEYvk9duFdM0h+69Fw2MvpTu/9DTWnRf 7R5G29MtkYfGCpRDJMem5QfNdShJoiQduwL1PyOBvvSJVWuvhdti72dV88+StVy0Scoi m4Og== 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=twoz8lpP+NejvpXaU/dZke/ogiMrfSr5EkXViIBKJ+A=; b=e6ABtD1Yle5PLYYAghBCdN4WD8D3nDHDidFNxYtZQVahOZa43KPuDAE1I+3/5t/wXh ocs5Ze7qJ8VKT7HhTR/MNRJS27WKSeO44r54/wltwbZc1r9l/Erp9YrQa2vXr2mkZl0r mTvPj7CZYwTwJygWmu8ilzcuMPdbVM/Afrpec7KwRkkq6OR7AagiuBIs+/UGCuxsvQKa YqOF5NZY/Fs9j8soFUk3DUL1Vv9Qr4Af4/U8+E+KlAyXoaMHXT2l2MaWQq6U2pVEJ9H3 6FkGnWJ0lKdkgTx1Xd0zJRFvjo7fv/kQsu0jJG4x6kOhPZ9HExYnzTFotSJvx/jZGdym jtRw== 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 sc42-20020a1709078a2a00b0073dc0a15a74si14848158ejc.48.2022.09.14.19.34.51; Wed, 14 Sep 2022 19:35:20 -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 S230225AbiIOC2i (ORCPT + 99 others); Wed, 14 Sep 2022 22:28:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229832AbiIOC2g (ORCPT ); Wed, 14 Sep 2022 22:28:36 -0400 Received: from out30-44.freemail.mail.aliyun.com (out30-44.freemail.mail.aliyun.com [115.124.30.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7D4D40554; Wed, 14 Sep 2022 19:28:34 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R851e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VPqk5.y_1663208911; Received: from 30.221.129.91(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0VPqk5.y_1663208911) by smtp.aliyun-inc.com; Thu, 15 Sep 2022 10:28:32 +0800 Message-ID: Date: Thu, 15 Sep 2022 10:28:31 +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 V3 1/6] erofs: use kill_anon_super() to kill super in fscache mode 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: <20220914105041.42970-1-zhujia.zj@bytedance.com> <20220914105041.42970-2-zhujia.zj@bytedance.com> From: JeffleXu In-Reply-To: <20220914105041.42970-2-zhujia.zj@bytedance.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.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/14/22 6:50 PM, Jia Zhu wrote: > Use kill_anon_super() instead of generic_shutdown_super() since the > mount() in erofs fscache mode uses get_tree_nodev() and associated > anon bdev needs to be freed. > > Signed-off-by: Jingbo Xu Thanks. You're welcome to use "Suggested-by" in this case. The same with patch 2. > Signed-off-by: Jia Zhu > --- > 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 3173debeaa5a..9716d355a63e 100644 > --- a/fs/erofs/super.c > +++ b/fs/erofs/super.c > @@ -879,7 +879,7 @@ static void erofs_kill_sb(struct super_block *sb) > WARN_ON(sb->s_magic != EROFS_SUPER_MAGIC); > > if (erofs_is_fscache_mode(sb)) > - generic_shutdown_super(sb); > + kill_anon_super(sb); > else > kill_block_super(sb); > Reviewed-by: Jingbo Xu -- Thanks, Jingbo