Skip to content

Commit

Permalink
mm: kill free_all_bootmem_node()
Browse files Browse the repository at this point in the history
Now nobody makes use of free_all_bootmem_node(), kill it.

Signed-off-by: Jiang Liu <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Yinghai Lu <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
jiangliu authored and torvalds committed Jul 3, 2013
1 parent e3a466b commit e1280be
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion include/linux/bootmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
18 changes: 0 additions & 18 deletions mm/bootmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit e1280be

Please sign in to comment.