* [patch 078/158] mm/memory_hotplug: remove __online_page_free() and __online_page_increment_counters()
@ 2019-12-01 1:54 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2019-12-01 1:54 UTC (permalink / raw)
To: akpm, cai, dan.j.williams, david, haiyangz, kys, linux-mm,
mhocko, mm-commits, osalvador, pasha.tatashin, richard.weiyang,
sashal, sthemmin, torvalds
From: David Hildenbrand <david@redhat.com>
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 <david@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Oscar Salvador <osalvador@suse.com>
Cc: Pavel Tatashin <pasha.tatashin@soleen.com>
Cc: Wei Yang <richard.weiyang@gmail.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Qian Cai <cai@lca.pw>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Sasha Levin <sashal@kernel.org>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
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);
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-12-01 1:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-01 1:54 [patch 078/158] mm/memory_hotplug: remove __online_page_free() and __online_page_increment_counters() akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).