mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[PATCH] Use ZVC for free_pages
This is again simplifies some of the VM counter calculations through the use of the ZVC consolidated counters. [[email protected]: build fix] Signed-off-by: Christoph Lameter <[email protected]> Signed-off-by: Michal Piotrowski <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c878538598
commit
d23ad42324
6 changed files with 25 additions and 46 deletions
|
|
@ -47,7 +47,8 @@ unsigned int nr_free_highpages (void)
|
|||
unsigned int pages = 0;
|
||||
|
||||
for_each_online_pgdat(pgdat)
|
||||
pages += pgdat->node_zones[ZONE_HIGHMEM].free_pages;
|
||||
pages += zone_page_state(&pgdat->node_zones[ZONE_HIGHMEM],
|
||||
NR_FREE_PAGES);
|
||||
|
||||
return pages;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue