From patchwork Sun Dec 1 01:58:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 11268487 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 7406914B7 for ; Sun, 1 Dec 2019 01:58:23 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 41D9C208E4 for ; Sun, 1 Dec 2019 01:58:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="QjW5PybJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 41D9C208E4 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 50A236B039D; Sat, 30 Nov 2019 20:58:22 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 4BA816B039F; Sat, 30 Nov 2019 20:58:22 -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 3D3166B03A1; Sat, 30 Nov 2019 20:58:22 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0046.hostedemail.com [216.40.44.46]) by kanga.kvack.org (Postfix) with ESMTP id 25C286B039D for ; Sat, 30 Nov 2019 20:58:22 -0500 (EST) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id CF3D2824999B for ; Sun, 1 Dec 2019 01:58:21 +0000 (UTC) X-FDA: 76214912802.03.basin62_48fe23357fd01 X-Spam-Summary: 2,0,0,6710dd54ba11cab2,d41d8cd98f00b204,akpm@linux-foundation.org,:akpm@linux-foundation.org:david@redhat.com:jgross@suse.com:jrdr.linux@gmail.com:kirill@shutemov.name::mhocko@suse.com:mm-commits@vger.kernel.org:torvalds@linux-foundation.org,RULES_HIT:41:355:379:800:960:967:968:973:988:989:1260:1263:1345:1381:1431:1437:1534:1542:1711:1730:1747:1777:1792:2194:2198:2199:2200:2393:2525:2559:2565:2682:2685:2731:2741:2859:2902:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3865:3868:3871:3872:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4605:5007:6261:6653:7514:7576:7875:8603:8957:9025:9545:9592:10004:11026:11257:11473:11658:11914:12043:12048:12114:12297:12438:12517:12519:12555:12679:12783:12986:13846:14181:14721:14849:21080:21251:21451:21627:21939:30054,0,RBL:error,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: basin62_48fe23357fd01 X-Filterd-Recvd-Size: 4027 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf43.hostedemail.com (Postfix) with ESMTP for ; Sun, 1 Dec 2019 01:58:21 +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 9BF86205ED; Sun, 1 Dec 2019 01:58:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575165500; bh=KSs+SH/nQy9mZI7aCyAu5GWu91zMkMha3v8XB7mwPI0=; h=Date:From:To:Subject:From; b=QjW5PybJw0q3JQjvtOsYjxZ+ncvvAqg5DQl0s/L+yO4hWoLngOcR+4nkCMfwpinyd e3W3k+zVjXbTXgMNpHDZerJByvJeLadC5yKlUYFlrDq/kfoi6125sPCUVeyf5hEe71 9w9bOqzMrLu97T1jxZ39ALlK8M/YZDODQhY1GkR4= Date: Sat, 30 Nov 2019 17:58:20 -0800 From: akpm@linux-foundation.org To: akpm@linux-foundation.org, david@redhat.com, jgross@suse.com, jrdr.linux@gmail.com, kirill@shutemov.name, linux-mm@kvack.org, mhocko@suse.com, mm-commits@vger.kernel.org, torvalds@linux-foundation.org Subject: [patch 155/158] mm/memory_hotplug.c: remove __online_page_set_limits() Message-ID: <20191201015820.uOoD9rRC6%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: Souptick Joarder Subject: mm/memory_hotplug.c: remove __online_page_set_limits() __online_page_set_limits() is a dummy function - remove it and all callers. Link: http://lkml.kernel.org/r/8e1bc9d3b492f6bde16e95ebc1dee11d6aefabd7.1567889743.git.jrdr.linux@gmail.com Link: http://lkml.kernel.org/r/854db2cf8145d9635249c95584d9a91fd774a229.1567889743.git.jrdr.linux@gmail.com Link: http://lkml.kernel.org/r/9afe6c5a18158f3884a6b302ac2c772f3da49ccc.1567889743.git.jrdr.linux@gmail.com Signed-off-by: Souptick Joarder Reviewed-by: David Hildenbrand Acked-by: Michal Hocko Cc: Juergen Gross Cc: "Kirill A. Shutemov" Signed-off-by: Andrew Morton --- drivers/hv/hv_balloon.c | 1 - drivers/xen/balloon.c | 1 - include/linux/memory_hotplug.h | 2 -- mm/memory_hotplug.c | 5 ----- 4 files changed, 9 deletions(-) --- a/drivers/hv/hv_balloon.c~mm-memory_hotplugc-remove-__online_page_set_limits +++ a/drivers/hv/hv_balloon.c @@ -680,7 +680,6 @@ static void hv_page_online_one(struct hv __ClearPageOffline(pg); /* This frame is currently backed; online the page. */ - __online_page_set_limits(pg); generic_online_page(pg, 0); lockdep_assert_held(&dm_device.ha_lock); --- a/drivers/xen/balloon.c~mm-memory_hotplugc-remove-__online_page_set_limits +++ a/drivers/xen/balloon.c @@ -374,7 +374,6 @@ static void xen_online_page(struct page mutex_lock(&balloon_mutex); for (i = 0; i < size; i++) { p = pfn_to_page(start_pfn + i); - __online_page_set_limits(p); balloon_append(p); } mutex_unlock(&balloon_mutex); --- a/include/linux/memory_hotplug.h~mm-memory_hotplugc-remove-__online_page_set_limits +++ a/include/linux/memory_hotplug.h @@ -106,8 +106,6 @@ extern void generic_online_page(struct p extern int set_online_page_callback(online_page_callback_t callback); extern int restore_online_page_callback(online_page_callback_t callback); -extern void __online_page_set_limits(struct page *page); - extern int try_online_node(int nid); extern int arch_add_memory(int nid, u64 start, u64 size, --- a/mm/memory_hotplug.c~mm-memory_hotplugc-remove-__online_page_set_limits +++ a/mm/memory_hotplug.c @@ -598,11 +598,6 @@ int restore_online_page_callback(online_ } EXPORT_SYMBOL_GPL(restore_online_page_callback); -void __online_page_set_limits(struct page *page) -{ -} -EXPORT_SYMBOL_GPL(__online_page_set_limits); - void generic_online_page(struct page *page, unsigned int order) { kernel_map_pages(page, 1 << order, 1);