mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
mm: move page mapped accounting to the node
Reclaim makes decisions based on the number of pages that are mapped but it's mixing node and zone information. Account NR_FILE_MAPPED and NR_ANON_PAGES pages on the node. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Mel Gorman <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Acked-by: Michal Hocko <[email protected]> Cc: Hillf Danton <[email protected]> Acked-by: Johannes Weiner <[email protected]> Cc: Joonsoo Kim <[email protected]> Cc: Minchan Kim <[email protected]> Cc: Rik van Riel <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
281e37265f
commit
50658e2e04
8 changed files with 21 additions and 21 deletions
|
|
@ -3589,7 +3589,7 @@ int sysctl_min_slab_ratio = 5;
|
|||
|
||||
static inline unsigned long zone_unmapped_file_pages(struct zone *zone)
|
||||
{
|
||||
unsigned long file_mapped = zone_page_state(zone, NR_FILE_MAPPED);
|
||||
unsigned long file_mapped = node_page_state(zone->zone_pgdat, NR_FILE_MAPPED);
|
||||
unsigned long file_lru = node_page_state(zone->zone_pgdat, NR_INACTIVE_FILE) +
|
||||
node_page_state(zone->zone_pgdat, NR_ACTIVE_FILE);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue