mm, vmscan: Account in vmstat for pages skipped during reclaim
Quoted 11 lines
mm/vmscan.c +1
-0@@ -1326,6 +1326,7 @@ static unsigned long isolate_lru_pages(unsigned long nr_to_scan,for (scan =0 ; scan < nr_to_scan && !list_empty (src); scan++) {struct page *page; +struct zone *zone;int nr_pages; page =lru_to_page (src);
mm/vmscan.c static unsigned long isolate_lru_pages(unsigned long nr_to_scan, · line 1341
Quoted 9 lines
mm/vmscan.c +4
-1@@ -1333,8 +1334,11 @@ static unsigned long isolate_lru_pages(unsigned long nr_to_scan,VM_BUG_ON_PAGE (!PageLRU (page), page); -if (page_zone_id (page) > sc->reclaim_idx) + zone =page_zone (page); +if (page_zone_id (page) > sc->reclaim_idx) {list_move (&page->lru, &pages_skipped); +__count_zone_vm_events (PGSCAN_SKIP ,page_zone (page),1 ); + }
The newly added zone is not used.
mm/vmscan.c static unsigned long isolate_lru_pages(unsigned long nr_to_scan, · line 1343
Quoted 3 lines
mm/vmscan.c +0
-0switch (__isolate_lru_page (page, mode)) {case 0 :
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>