mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mm: remove unused pgdat_reclaimable_pages()
Remove unused function pgdat_reclaimable_pages() and node_page_state_snapshot() which becomes unused as well. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Jan Kara <[email protected]> Acked-by: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e025f059a3
commit
a4ef876841
3 changed files with 0 additions and 34 deletions
16
mm/vmscan.c
16
mm/vmscan.c
|
|
@ -220,22 +220,6 @@ unsigned long zone_reclaimable_pages(struct zone *zone)
|
|||
return nr;
|
||||
}
|
||||
|
||||
unsigned long pgdat_reclaimable_pages(struct pglist_data *pgdat)
|
||||
{
|
||||
unsigned long nr;
|
||||
|
||||
nr = node_page_state_snapshot(pgdat, NR_ACTIVE_FILE) +
|
||||
node_page_state_snapshot(pgdat, NR_INACTIVE_FILE) +
|
||||
node_page_state_snapshot(pgdat, NR_ISOLATED_FILE);
|
||||
|
||||
if (get_nr_swap_pages() > 0)
|
||||
nr += node_page_state_snapshot(pgdat, NR_ACTIVE_ANON) +
|
||||
node_page_state_snapshot(pgdat, NR_INACTIVE_ANON) +
|
||||
node_page_state_snapshot(pgdat, NR_ISOLATED_ANON);
|
||||
|
||||
return nr;
|
||||
}
|
||||
|
||||
/**
|
||||
* lruvec_lru_size - Returns the number of pages on the given LRU list.
|
||||
* @lruvec: lru vector
|
||||
|
|
|
|||
Loading…
Reference in a new issue