From patchwork Sun Dec 1 01:54:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 11268333 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F2DBA112B for ; Sun, 1 Dec 2019 01:54:03 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C00F6215A5 for ; Sun, 1 Dec 2019 01:54:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="sJ1yQe+A" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C00F6215A5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A8D5B6B02F3; Sat, 30 Nov 2019 20:54:02 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A62D16B02F5; Sat, 30 Nov 2019 20:54:02 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9A0D56B02F6; Sat, 30 Nov 2019 20:54:02 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0116.hostedemail.com [216.40.44.116]) by kanga.kvack.org (Postfix) with ESMTP id 826A56B02F3 for ; Sat, 30 Nov 2019 20:54:02 -0500 (EST) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with SMTP id 27346180AD817 for ; Sun, 1 Dec 2019 01:54:02 +0000 (UTC) X-FDA: 76214901924.13.sand39_2332a8cd54544 X-Spam-Summary: 2,0,0,50b1c735fb23b2e1,d41d8cd98f00b204,akpm@linux-foundation.org,:akpm@linux-foundation.org:cai@lca.pw:dan.j.williams@intel.com:david@redhat.com:haiyangz@microsoft.com:kys@microsoft.com::mhocko@suse.com:mm-commits@vger.kernel.org:osalvador@suse.com:pasha.tatashin@soleen.com:richard.weiyang@gmail.com:sashal@kernel.org:sthemmin@microsoft.com:torvalds@linux-foundation.org,RULES_HIT:41:69:355:379:800:960:965:966:967:968:973:988:989:1260:1263:1345:1381:1431:1437:1534:1542:1711:1730:1747:1777:1792:2194:2196:2198:2199:2200:2201:2393:2525:2559:2563:2682:2685:2731:2859:2902:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3865:3868:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4385:4390:4395:4605:5007:6261:6653:6737:7514:7576:7688:8599:9025:9545:9592:10004:10913:11026:11473:11658:11914:12043:12048:12114:12297:12438:12517:12519:12555:12679:12783:12986:13255:13846:14181:14721:14849:21080:21251:21451:21627:21939:30054:30064,0,RBL:error, CacheIP: X-HE-Tag: sand39_2332a8cd54544 X-Filterd-Recvd-Size: 3581 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf07.hostedemail.com (Postfix) with ESMTP for ; Sun, 1 Dec 2019 01:54:01 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9589E208C3; Sun, 1 Dec 2019 01:54:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575165241; bh=pA/6Vh8W0ylJQiDaMFkvtwsH+6mKZ9c1ZMfoY6uBIg4=; h=Date:From:To:Subject:From; b=sJ1yQe+AOXIW212Q5gSsPl3Ni39kW8XdMbs883e2hg7LZvaPAPGjwA3dXj+0vYBUu JyIO7JGWe0wFKTSPAsSp5/nEiHCBlkFQ4InZowJkkkjhzeni1g16sQOOpkXFaojbpM MtmNNY/dvfKg0GKhgkdnypIq99ZRwYlqBFAcLjDU= Date: Sat, 30 Nov 2019 17:54:00 -0800 From: akpm@linux-foundation.org To: akpm@linux-foundation.org, cai@lca.pw, dan.j.williams@intel.com, david@redhat.com, haiyangz@microsoft.com, kys@microsoft.com, linux-mm@kvack.org, mhocko@suse.com, mm-commits@vger.kernel.org, osalvador@suse.com, pasha.tatashin@soleen.com, richard.weiyang@gmail.com, sashal@kernel.org, sthemmin@microsoft.com, torvalds@linux-foundation.org Subject: [patch 078/158] mm/memory_hotplug: remove __online_page_free() and __online_page_increment_counters() Message-ID: <20191201015400.uPMnfcLpt%akpm@linux-foundation.org> User-Agent: s-nail v14.8.16 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: From: David Hildenbrand Subject: mm/memory_hotplug: remove __online_page_free() and __online_page_increment_counters() Let's drop the now unused functions. Link: http://lkml.kernel.org/r/20190909114830.662-4-david@redhat.com Signed-off-by: David Hildenbrand Acked-by: Michal Hocko Cc: Oscar Salvador Cc: Pavel Tatashin Cc: Wei Yang Cc: Dan Williams Cc: Qian Cai Cc: Haiyang Zhang Cc: "K. Y. Srinivasan" Cc: Sasha Levin Cc: Stephen Hemminger Signed-off-by: Andrew Morton --- include/linux/memory_hotplug.h | 2 -- mm/memory_hotplug.c | 12 ------------ 2 files changed, 14 deletions(-) --- a/include/linux/memory_hotplug.h~mm-memory_hotplug-remove-__online_page_free-and-__online_page_increment_counters +++ a/include/linux/memory_hotplug.h @@ -107,8 +107,6 @@ extern int set_online_page_callback(onli extern int restore_online_page_callback(online_page_callback_t callback); extern void __online_page_set_limits(struct page *page); -extern void __online_page_increment_counters(struct page *page); -extern void __online_page_free(struct page *page); extern int try_online_node(int nid); --- a/mm/memory_hotplug.c~mm-memory_hotplug-remove-__online_page_free-and-__online_page_increment_counters +++ a/mm/memory_hotplug.c @@ -603,18 +603,6 @@ void __online_page_set_limits(struct pag } EXPORT_SYMBOL_GPL(__online_page_set_limits); -void __online_page_increment_counters(struct page *page) -{ - adjust_managed_page_count(page, 1); -} -EXPORT_SYMBOL_GPL(__online_page_increment_counters); - -void __online_page_free(struct page *page) -{ - __free_reserved_page(page); -} -EXPORT_SYMBOL_GPL(__online_page_free); - void generic_online_page(struct page *page, unsigned int order) { kernel_map_pages(page, 1 << order, 1);