From: Christoph Lameter This deals with swap prefetch and various things changed in mm. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton --- mm/page_alloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -puN mm/page_alloc.c~readahead-state-based-method-aging-accounting-vs-zvc-changes mm/page_alloc.c --- a/mm/page_alloc.c~readahead-state-based-method-aging-accounting-vs-zvc-changes +++ a/mm/page_alloc.c @@ -1506,12 +1506,12 @@ unsigned int nr_free_pagecache_pages(voi unsigned long nr_free_inactive_pages_node(int nid) { enum zone_type i; - unsigned long sum = 0; + unsigned long sum = node_page_state(nid, NR_FREE_PAGES) + + node_page_state(nid, NR_INACTIVE); struct zone *zones = NODE_DATA(nid)->node_zones; for (i = 0; i < MAX_NR_ZONES; i++) - sum += zones[i].nr_inactive + - zones[i].free_pages - zones[i].pages_low; + sum -= zones[i].pages_low; return sum; } _