diff options
-rw-r--r-- | include/linux/mmzone.h | 1 | ||||
-rw-r--r-- | mm/vmscan.c | 3 | ||||
-rw-r--r-- | mm/vmstat.c | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 7fa1cbe9fa7a..1b0680cd84d2 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -58,6 +58,7 @@ enum zone_stat_item { | |||
58 | NR_WRITEBACK, | 58 | NR_WRITEBACK, |
59 | NR_UNSTABLE_NFS, /* NFS unstable pages */ | 59 | NR_UNSTABLE_NFS, /* NFS unstable pages */ |
60 | NR_BOUNCE, | 60 | NR_BOUNCE, |
61 | NR_VMSCAN_WRITE, | ||
61 | #ifdef CONFIG_NUMA | 62 | #ifdef CONFIG_NUMA |
62 | NUMA_HIT, /* allocated in intended node */ | 63 | NUMA_HIT, /* allocated in intended node */ |
63 | NUMA_MISS, /* allocated in non intended node */ | 64 | NUMA_MISS, /* allocated in non intended node */ |
diff --git a/mm/vmscan.c b/mm/vmscan.c index 87779dda4ec6..87d340999ce8 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/pagemap.h> | 19 | #include <linux/pagemap.h> |
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/highmem.h> | 21 | #include <linux/highmem.h> |
22 | #include <linux/vmstat.h> | ||
22 | #include <linux/file.h> | 23 | #include <linux/file.h> |
23 | #include <linux/writeback.h> | 24 | #include <linux/writeback.h> |
24 | #include <linux/blkdev.h> | 25 | #include <linux/blkdev.h> |
@@ -370,7 +371,7 @@ static pageout_t pageout(struct page *page, struct address_space *mapping) | |||
370 | /* synchronous write or broken a_ops? */ | 371 | /* synchronous write or broken a_ops? */ |
371 | ClearPageReclaim(page); | 372 | ClearPageReclaim(page); |
372 | } | 373 | } |
373 | 374 | inc_zone_page_state(page, NR_VMSCAN_WRITE); | |
374 | return PAGE_SUCCESS; | 375 | return PAGE_SUCCESS; |
375 | } | 376 | } |
376 | 377 | ||
diff --git a/mm/vmstat.c b/mm/vmstat.c index 490d8c1a0ded..69c657132e1f 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
@@ -465,6 +465,7 @@ static char *vmstat_text[] = { | |||
465 | "nr_writeback", | 465 | "nr_writeback", |
466 | "nr_unstable", | 466 | "nr_unstable", |
467 | "nr_bounce", | 467 | "nr_bounce", |
468 | "nr_vmscan_write", | ||
468 | 469 | ||
469 | #ifdef CONFIG_NUMA | 470 | #ifdef CONFIG_NUMA |
470 | "numa_hit", | 471 | "numa_hit", |