From patchwork Fri Nov 3 14:01:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13444585 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id AECC2C4332F for ; Fri, 3 Nov 2023 14:22:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 52F7F28001C; Fri, 3 Nov 2023 10:22:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4B90F28000F; Fri, 3 Nov 2023 10:22:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 35A3628001C; Fri, 3 Nov 2023 10:22:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 264C528000F for ; Fri, 3 Nov 2023 10:22:49 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id EFC58120279 for ; Fri, 3 Nov 2023 14:22:48 +0000 (UTC) X-FDA: 81416859216.28.44B6BC0 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf24.hostedemail.com (Postfix) with ESMTP id 902BB18001E for ; Fri, 3 Nov 2023 14:22:46 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=none; spf=pass (imf24.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699021367; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bT9rjnlJIBzoJO+q+XewwA19nOTPGvaL2JFKF5wptBI=; b=73rSv78JjLac+k29MfdkC1yFKKhQVjUyZg6VnQoonRbiOXBsq8XnFTCP1zMpDHkFlo5Wf9 +INDfmiqjVAalWo3AelwSzqEqUHS65+4HHZm/F4UbX4z/CKKTW6Sm0rChT2c7eZQf5mQGu fEQSy09uXKjs94eSf78dn5vHDBfoc+A= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1699021367; a=rsa-sha256; cv=none; b=Ybhg/mNslfuqak0/V7wu2AG3+e1J52ES2fjpj04IqEuYqZ0WfnfBLm/Oku6kU6YeDoTY4w 4tJVB8igBnBrjU78Rwt0UnhJ0s4u0Hx8d3Ma3g88lwRFxykAg1X5I0arnPVNxpNqH4Ut62 SVfwdODw+iEN5KXQluffn5ZdtsGRAHE= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=none; spf=pass (imf24.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com 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 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-Rspamd-Queue-Id: 902BB18001E X-Rspam-User: X-Stat-Signature: 85iayqeh4xbxdgacmge1pmrkxzs9dczq X-Rspamd-Server: rspam03 X-HE-Tag: 1699021366-881287 X-HE-Meta: U2FsdGVkX1+a15xl7Wtl9hn99j8bQaODH1IczifljuXImnns6JKTqaSod834/vsAIuQwRWyhgRD16Puq2tFP0QxpIvxXdyF0av8APqAmufL9A1ERPdjL9RFHGpWn/y26zohzs90ovX2HL1iF5yRlpe4AFP1s9h3RK+CaxI6tMCXbeQYTuGa6s/1cO+ClfG5oZU++hR0+Sc89GXcYrj5rPpdnA4dtcNLFqyrXNOuEPl3RGW7Pav4GboOGl7QdwgPnl/ww1+pBvcmmWIixG1DpQC1AJE8oFiwLFlFAi7uN8MMeX1jWmW5nuy2CzLS0ni/Kn1bh7A6vGKOL3wq+F0KZ+eeVw1cG5/WE4ZLGUR9QFPhPz6P1l9yvBfECZNehHKcfLovGUDV6v2pdo1dSmEh2Qw3e+TI0vVePkBTjGTVqYnkJyhl+ycpmLsI0pfOSrSbLCv5GxZchIfojEldhV0CbQLODLzdR7aUzVkiISoSuz7l0QEw3hTCn4rcVFg4JHz0VehA6TYe+9CLUE8d0I0pX30NWL7NJR7mTtSgXHRrPqPMp+Q8RHsEyZkTU62SpyFruMWsvRqNyfDDYLq5wkUmXuGTe9OxPqf0VtZO9/v8KL7BUx3c3JVKTQNPFsLRhVcVR6ramV0BBptbkzKONV2u8zrfpCeY48VigUFuA3QuodX91djoTC+l1W7mB1c48BJDocp6/oZb07ShK+KKw+UN+lKdKbYaC8wvf6jbBDh5bs7XUAf//yNhBPrYJITLa4XprMFiVoz9swnnKjaBTle6imSz7/4Vi9F3o+IKzmwhVkYPWODY/QS875mzpH1O4xQRK7L5Nwure4VpvY02qEpOVWTc8itz00HiLCtF4pho4/B8hBgSN+Ni7opPBpQHD8SnZYVMYd7hWF1fIOxF16FmCulTMPhdHSSIW8o9/nxva8ns2fZ8zh9LN6aaHOZOgrSXjmlOJ06uj4xXnobyQiBf auK0sS2G joJGpwMsM+AKqYBLc2yINCc8vkOH4Q+gQsx6fHe5Bwwyha0hHTKNPVy2Gh4d5ZYxXBMccUoCfxWoFdvW4NlD+RzcfYFTubjdjfimMg4Wdes0igG21ONd2zos+d29OG3rxQyH8eowTTzSFsdvU9MyHnswseOcZEqxK1TNrRGJtw+eVGqgT9ShjFVkcZpm5nYLYD6VZ X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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) +