|
@@ -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
|