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()
Date: Sat, 30 Nov 2019 17:54:00 -0800 [thread overview]
Message-ID: <20191201015400.uPMnfcLpt%akpm@linux-foundation.org> (raw)
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);
_
reply other threads:[~2019-12-01 1:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191201015400.uPMnfcLpt%akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=cai@lca.pw \
--cc=dan.j.williams@intel.com \
--cc=david@redhat.com \
--cc=haiyangz@microsoft.com \
--cc=kys@microsoft.com \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
--cc=mm-commits@vger.kernel.org \
--cc=osalvador@suse.com \
--cc=pasha.tatashin@soleen.com \
--cc=richard.weiyang@gmail.com \
--cc=sashal@kernel.org \
--cc=sthemmin@microsoft.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).