Message ID | 20231103140119.2306578-19-wangkefeng.wang@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp1056085vqu; Fri, 3 Nov 2023 07:04:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEGKpRPJUUb7t+6PbNIt7Ti4mLanoOBXwbUiAVJf2u02b5W7TZfMPElMQmccO+h15h2PJeW X-Received: by 2002:a05:6a20:3944:b0:181:8654:8260 with SMTP id r4-20020a056a20394400b0018186548260mr5783838pzg.39.1699020280812; Fri, 03 Nov 2023 07:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699020280; cv=none; d=google.com; s=arc-20160816; b=ABlWABOeI4yiyZTp0/yzSAoeLZiaOzVdDUsQM92xM92HtdJuMSltPNCwSOxdMWiKIg 4nydvzkBgHgatS3JGjbqSSw7nRpgCUS7WOVIRyHWwTu2Ic9DbBgYl2LsBUh0acsp7stQ HzfZPOkXpVBGZGuvqVkMX6EnyAzjBl6om0Ufnl/s+1gN9O0b0kW3H7fdPyngTLN2mY0I AP/G5BBh9wbUg86S6ylWliThHwtlSNOnmTDb9l6N9X5Upg/L8iVwkHdt/O3g4nhU/JAh oe8Yv6P1RL0EI3ZBijU84tMDlR6aLPgBc3DJfa+nxdg5skSIVbCzLi9pv+LEm+z6pTOp 5kBw== 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 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id j12-20020a056a00174c00b0069100de2235si1623091pfc.187.2023.11.03.07.04.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 07:04:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 756B382CC431; Fri, 3 Nov 2023 07:04:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377911AbjKCOEQ (ORCPT <rfc822;lhua1029@gmail.com> + 36 others); Fri, 3 Nov 2023 10:04:16 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <wangkefeng.wang@huawei.com> To: Andrew Morton <akpm@linux-foundation.org> CC: <linux-kernel@vger.kernel.org>, <linux-mm@kvack.org>, Matthew Wilcox <willy@infradead.org>, David Hildenbrand <david@redhat.com>, <linux-s390@vger.kernel.org>, Kefeng Wang <wangkefeng.wang@huawei.com> 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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 03 Nov 2023 07:04:31 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781551889697432665 X-GMAIL-MSGID: 1781551889697432665 |
Series |
mm: convert to use folio mm counter
|
|
Commit Message
Kefeng Wang
Nov. 3, 2023, 2:01 p.m. UTC
Since no one call mm_counter(), remove it.
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
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) +