mm: move vmscan writes and file write accounting to the node
[deliverable/linux.git] / mm / vmscan.c
index b797afec3057ffc74a594ff50b84fe7b96edaa5e..9b61a55b6e3802ac0308a224c9353ee3cd520852 100644 (file)
@@ -612,7 +612,7 @@ static pageout_t pageout(struct page *page, struct address_space *mapping,
                        ClearPageReclaim(page);
                }
                trace_mm_vmscan_writepage(page);
-               inc_zone_page_state(page, NR_VMSCAN_WRITE);
+               inc_node_page_state(page, NR_VMSCAN_WRITE);
                return PAGE_SUCCESS;
        }
 
@@ -1117,7 +1117,7 @@ static unsigned long shrink_page_list(struct list_head *page_list,
                                 * except we already have the page isolated
                                 * and know it's dirty
                                 */
-                               inc_zone_page_state(page, NR_VMSCAN_IMMEDIATE);
+                               inc_node_page_state(page, NR_VMSCAN_IMMEDIATE);
                                SetPageReclaim(page);
 
                                goto keep_locked;
This page took 0.024358 seconds and 5 git commands to generate.