Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19205946rwd; Wed, 28 Jun 2023 06:31:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6xj8E7uVWhmGTZ2bA4R38DE2hL8d8k46sPTygmQ/gNs7Nf1IZPpvfx6BxpwQ1nNLAAKdRK X-Received: by 2002:a17:902:9a05:b0:1b1:8e8b:7f6c with SMTP id v5-20020a1709029a0500b001b18e8b7f6cmr10209901plp.16.1687959083311; Wed, 28 Jun 2023 06:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687959083; cv=none; d=google.com; s=arc-20160816; b=OIzBCHhBQvCRxfXdRmX5jC9sOnD67WVLOTk6j0Dd2TYZ66k+yjvqeVx8/e7UHW15Nf AzzkUWM5kcWZcD2ZNKyVCMnkKY2FwyEQCbmwDi8TKWH0mAOJYN1U6e8oZoTDsS11fhY6 gprb4b7RFEa5snmQ8/NpSj89Dc6ZdY9lDbrHQs1fC6+eFM40KTBxCsafEi+lBwvqP5DF iRxUJAbg6PByWiaGjAae2sH0ByqE9bpoqRfa5pa/UMMGAo9dhOmFc0iGvs7OtDvtQkO4 dx/Sl3tjkoGgo+y78zxzW08OdfN7rJQwbiaRPcuKSeb6gkwZFr2STE3w44V8OPRBq8Kc xT4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=sYSGB8NCYjsxRu8ixzbNw2/WUnqu2xWIu37z6UfHp78=; fh=fHzCyx2lgDg5rzxkd+fn4L1zIOfYfCj3lN8BN24cVWY=; b=pnNKYWrzua3WrF7+ZSQBw9/+yxDQkZf1rVnJyZutps6XNuhLTsGR42n5GRWjDVjFsd EcKlMzl/cO1jUuXTO2/Sv0B4K03ktOODrRaJuqERqnCf4OtdkG+76frfRaiQQwHkfQWc v/jjeKgxv3z3ia7/n60jCLAc8QwhdW74Eyjof7KkiErd6LtttplCCy/fvlyzGIZO/G9C XFcKFdGGujM3p1lRaz/0eVyPEOOQWUd/i1G1eiG9a2bA6WfPF9/figAfqQScFn6eVWT3 vk0vdSsJDyN55UlRyYubEAwGkMgx5EexZSLU5fEdYhve9tIP+NClyLNcar0D3CgF6eJb JowA== 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 i6-20020a170902c94600b001b34159f341si9577138pla.596.2023.06.28.06.31.09; Wed, 28 Jun 2023 06:31:23 -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 S231956AbjF1NYc (ORCPT + 99 others); Wed, 28 Jun 2023 09:24:32 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:21999 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231869AbjF1NYW (ORCPT ); Wed, 28 Jun 2023 09:24:22 -0400 Received: from dggpeml500021.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Qrj0H48qjzlWNs; Wed, 28 Jun 2023 21:21:35 +0800 (CST) Received: from huawei.com (10.175.127.227) 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; Wed, 28 Jun 2023 21:24:19 +0800 From: Baokun Li To: CC: , , , , , , , Subject: [PATCH v2 7/7] quota: remove unused function put_dquot_list() Date: Wed, 28 Jun 2023 21:21:55 +0800 Message-ID: <20230628132155.1560425-8-libaokun1@huawei.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230628132155.1560425-1-libaokun1@huawei.com> References: <20230628132155.1560425-1-libaokun1@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml500021.china.huawei.com (7.185.36.21) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Now that no one is calling put_dquot_list(), remove it. Signed-off-by: Baokun Li --- 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