]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm: kill free_all_bootmem_node()
authorJiang Liu <liuj97@gmail.com>
Thu, 27 Jun 2013 23:52:06 +0000 (09:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:53 +0000 (16:37 +1000)
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>
include/linux/bootmem.h
mm/bootmem.c

index 0e48c3221d82ae371907f00334e6074dcbfb4461..f1f07d31a3af15fbf34934f502feb54d469e3d26 100644 (file)
@@ -44,7 +44,6 @@ extern unsigned long init_bootmem_node(pg_data_t *pgdat,
                                       unsigned long endpfn);
 extern unsigned long init_bootmem(unsigned long addr, unsigned long memend);
 
-extern unsigned long free_all_bootmem_node(pg_data_t *pgdat);
 extern unsigned long free_all_bootmem(void);
 extern void reset_all_zones_managed_pages(void);
 
index 58609bbf584eb397e47cf27df2795f735feaa8eb..6ab7744e692ed86cd4417041686dc3a0821cab9f 100644 (file)
@@ -263,24 +263,6 @@ void __init reset_all_zones_managed_pages(void)
        reset_managed_pages_done = 1;
 }
 
-/**
- * free_all_bootmem_node - release a node's free pages to the buddy allocator
- * @pgdat: node to be released
- *
- * Returns the number of pages actually released.
- */
-unsigned long __init free_all_bootmem_node(pg_data_t *pgdat)
-{
-       unsigned long pages;
-
-       register_page_bootmem_info_node(pgdat);
-       reset_node_managed_pages(pgdat);
-       pages = free_all_bootmem_core(pgdat->bdata);
-       totalram_pages += pages;
-
-       return pages;
-}
-
 /**
  * free_all_bootmem - release free pages to the buddy allocator
  *