Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20645404rwd; Thu, 29 Jun 2023 05:20:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4PM4dvrRKwUZY5wEgupnKPVaByDHCFYUNU/zkcgpTe+Qz/E2FOwE2Fa/WbaYX/7tCYWI/P X-Received: by 2002:a17:902:ba88:b0:1b8:52b:dd52 with SMTP id k8-20020a170902ba8800b001b8052bdd52mr10465573pls.36.1688041240701; Thu, 29 Jun 2023 05:20:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688041240; cv=none; d=google.com; s=arc-20160816; b=HfBIAoU/Zkt7z0BffptNj/JaU+ywMhr9+GrHKKOUxFxjCmre1LZC9srD2PDQCvo+TI ArB6hdha0BFc26ufBe+1iZNYvi49WeabeVba9ub2H83HQSHDjsbjzrDUdEvfEB2x+beW cH0QAW5pkPHMQbYt8iSXxNPY1SmMs0RFVao/xs4mOLjn3glKo71gst0TkEm2ED9zlrq2 pdLRtund940PxIBrRBXEQ2dziR975HegXW4bg+/1H88969JrKBgUWWV5iv3JJ82pehap tLWV2JyZNJoFUA1W2bRNW/0eFqQ/h1JXXVQd9XpnmcQZq9HGP8rJJY1oFYsTOLlLDj/7 ocBg== 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=zqduY3rdpgdOq9j/ye7Ny+53dSR9bMTucGnj6oS0TqE=; fh=9x1LrL2QrIZog3VQ/5V9jBOQgfRcp9bYZChBiKY7RGM=; b=F0Ff7IXdsQHkR4gLgm3gVsCn0X6f4y/IcBAERgD7ZWKuPx62+R9QgYKx31ft1PQ3Js ygqsXaVXbwLGUp8h9YLzMlnMTrzFI+n1MbTCQ7kjylC4GscD99Qi+zTXFHT5PIn58mYp cOhhxyHZP+3wtb2waa8g1iLRUdSf//YLlaplR+3KvOaqVb3Qu0qCspIs38duc8svMA7S ZL+y4ZJb0ajoxoIH1qpRJ2AuYF0qpmLtjox9wMwUZTTCMMLFKuo/jBCKxU/6NXnJe8F0 BCH4JCG43HSizsfZisjVlHt/pYAAAopPY3Pi3aAKRq+EUMyuUMcycN2JcXiE94cm5uyy O6RA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m10-20020a1709026bca00b001a51368b098si10221489plt.209.2023.06.29.05.20.23; Thu, 29 Jun 2023 05:20:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231833AbjF2MSa (ORCPT + 99 others); Thu, 29 Jun 2023 08:18:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjF2MS3 (ORCPT ); Thu, 29 Jun 2023 08:18:29 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89DA61719; Thu, 29 Jun 2023 05:18:27 -0700 (PDT) Received: from dggpeml500021.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QsHXZ50QdzqVGh; Thu, 29 Jun 2023 20:18:06 +0800 (CST) Received: from [10.174.177.174] (10.174.177.174) by dggpeml500021.china.huawei.com (7.185.36.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 29 Jun 2023 20:18:24 +0800 Message-ID: <0c3a4a8c-4f39-dd12-b98c-28805120b846@huawei.com> Date: Thu, 29 Jun 2023 20:18:24 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Subject: Re: [PATCH v2 7/7] quota: remove unused function put_dquot_list() Content-Language: en-US To: Jan Kara CC: , , , , , , , Baokun Li References: <20230628132155.1560425-1-libaokun1@huawei.com> <20230628132155.1560425-8-libaokun1@huawei.com> <20230629110547.oppa5crrgzt6xrkf@quack3> From: Baokun Li In-Reply-To: <20230629110547.oppa5crrgzt6xrkf@quack3> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.174] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500021.china.huawei.com (7.185.36.21) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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-ext4@vger.kernel.org On 2023/6/29 19:05, Jan Kara wrote: > On Wed 28-06-23 21:21:55, Baokun Li wrote: >> Now that no one is calling put_dquot_list(), remove it. >> >> Signed-off-by: Baokun Li > I guess you can merge this with patch 6. When there was only a single user, > there's no good reason to separate the removal of the unused function... > > Honza I got a warning when I compiled after I finished patch 6, and then there was this patch. I will merge this patch into patch 6 in the next version. >> --- >> fs/quota/dquot.c | 20 -------------------- >> 1 file changed, 20 deletions(-) >> >> diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c >> index df028fb2ce72..ba0125473be3 100644 >> --- a/fs/quota/dquot.c >> +++ b/fs/quota/dquot.c >> @@ -1102,26 +1102,6 @@ static void remove_inode_dquot_ref(struct inode *inode, int type) >> dqput(dquot); >> } >> >> -/* >> - * Free list of dquots >> - * Dquots are removed from inodes and no new references can be got so we are >> - * the only ones holding reference >> - */ >> -static void put_dquot_list(struct list_head *tofree_head) >> -{ >> - struct list_head *act_head; >> - struct dquot *dquot; >> - >> - act_head = tofree_head->next; >> - while (act_head != tofree_head) { >> - dquot = list_entry(act_head, struct dquot, dq_free); >> - act_head = act_head->next; >> - /* Remove dquot from the list so we won't have problems... */ >> - list_del_init(&dquot->dq_free); >> - dqput(dquot); >> - } >> -} >> - >> static void remove_dquot_ref(struct super_block *sb, int type) >> { >> struct inode *inode; >> -- >> 2.31.1 >> Thanks! -- With Best Regards, Baokun Li .