aboutsummaryrefslogtreecommitdiffstats
path: root/mm/bootmem.c
diff options
context:
space:
mode:
authorJiang Liu <liuj97@gmail.com>2013-07-03 18:04:34 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-03 19:07:39 -0400
commite1280be0d8614be94e5bef48b6c830dfa03e82a7 (patch)
tree6bcce2ec66882e5c3a14bcddc50c9af7d693ab53 /mm/bootmem.c
parente3a466b29fc3da335a5a5b695ca6da980d157070 (diff)
mm: kill free_all_bootmem_node()
Now nobody makes use of free_all_bootmem_node(), kill it. Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Yinghai Lu <yinghai@kernel.org> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/bootmem.c')
-rw-r--r--mm/bootmem.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/mm/bootmem.c b/mm/bootmem.c
index 58609bbf584e..6ab7744e692e 100644
--- a/mm/bootmem.c
+++ b/mm/bootmem.c
@@ -264,24 +264,6 @@ void __init reset_all_zones_managed_pages(void)
264} 264}
265 265
266/** 266/**
267 * free_all_bootmem_node - release a node's free pages to the buddy allocator
268 * @pgdat: node to be released
269 *
270 * Returns the number of pages actually released.
271 */
272unsigned long __init free_all_bootmem_node(pg_data_t *pgdat)
273{
274 unsigned long pages;
275
276 register_page_bootmem_info_node(pgdat);
277 reset_node_managed_pages(pgdat);
278 pages = free_all_bootmem_core(pgdat->bdata);
279 totalram_pages += pages;
280
281 return pages;
282}
283
284/**
285 * free_all_bootmem - release free pages to the buddy allocator 267 * free_all_bootmem - release free pages to the buddy allocator
286 * 268 *
287 * Returns the number of pages actually released. 269 * Returns the number of pages actually released.