Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp503653rdf; Fri, 3 Nov 2023 07:04:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHiR3S4XlDb1LbsKtaOFJgeQBAc86Nbbs+Mzl7DY1HDoRBE7K0WjrL7GlZu8a+xlJpV4z3o X-Received: by 2002:a05:6a20:8f01:b0:15e:707c:904 with SMTP id b1-20020a056a208f0100b0015e707c0904mr22830067pzk.24.1699020299196; Fri, 03 Nov 2023 07:04:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699020299; cv=none; d=google.com; s=arc-20160816; b=zFUZW4lnGOTTYN7ZA/cjkPaO+RcOjtkTGbajKGz30hgHAUrOqi/pq6ANUTL5OUDKzn mDWEtpR3g92rYYhlcSb5GCDpNFTC7mxZmYEZqHiPR6Fp0JqB7HDaiqs2Fj2buXFiRxyq YmzFWpCoSswkVCtUVavSC4RUGBHen1SdQllpFdMg3moAxxqzNSM3Kc4MZo16IzymQZxp rzfvN9kTHPQpTXbQrdXbptMX/wbrfd3CqLK87vCiXk0a5DY1OxhMYDELlD9yfIzQ0lmz 9coXG0+BkQjqK6QkroHqdg4ZU9ioEZI9Kw5pt5gR4pTnT02+9LcH9B+OreNDye+QPVQS LLEA== 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=bT9rjnlJIBzoJO+q+XewwA19nOTPGvaL2JFKF5wptBI=; fh=kUj/5waaepfljbNx30rj2BALdV0u/mUCTaFWThlgquQ=; b=yVAr6aoiBJx/0Qm4JEgcM+7sDaBANPBQ0kGbsu5YUfeVNitbXrC6tUqrwIxkmbUnJD wLebGedoFJbe8b9PXtnR4JC//ghtb3ripj418SUnx9TN5moE6PMu31Wkh3Sh9uBtWFw8 za+O+airuEO5QZsRUqvi9mojwQbWQX3wa2WSejI1K0bXmbjElkW7/DEkYKwzFWCbGcWh 6NurXY6RSUz6j7qkPQ5y84V8wd0eCAf8I1dZa2wr++Uo4jUQn4eFeLAxIDpXqTn5t80J kw5vjl8itMkfjKYgFqoLuP8MXfW29rs9JBXImOvept49kK2RoH6GspHNTR9zb4SjOD5/ XXpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id az2-20020a056a02004200b005bd35c864e7si1706064pgb.732.2023.11.03.07.04.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 07:04:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 569C982D879A; Fri, 3 Nov 2023 07:04:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377910AbjKCOEP (ORCPT + 99 others); Fri, 3 Nov 2023 10:04:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377806AbjKCOEC (ORCPT ); Fri, 3 Nov 2023 10:04:02 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA5E4D50; Fri, 3 Nov 2023 07:03:55 -0700 (PDT) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4SMMpQ6QHWz1P7n0; Fri, 3 Nov 2023 22:00:46 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 3 Nov 2023 22:03:50 +0800 From: Kefeng Wang To: Andrew Morton CC: , , Matthew Wilcox , David Hildenbrand , , Kefeng Wang Subject: [PATCH 18/18] mm: remove mm_counter() Date: Fri, 3 Nov 2023 22:01:19 +0800 Message-ID: <20231103140119.2306578-19-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20231103140119.2306578-1-wangkefeng.wang@huawei.com> References: <20231103140119.2306578-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 03 Nov 2023 07:04:51 -0700 (PDT) Since no one call mm_counter(), remove it. Signed-off-by: Kefeng Wang --- include/linux/mm.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index 9353c5709c45..fd1a27bbdb53 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2598,11 +2598,6 @@ static inline int mm_counter_folio(struct folio *folio) return mm_counter_file_folio(folio); } -static inline int mm_counter(struct page *page) -{ - return mm_counter_folio(page_folio(page)); -} - static inline unsigned long get_mm_rss(struct mm_struct *mm) { return get_mm_counter(mm, MM_FILEPAGES) + -- 2.27.0