[PATCH] Buglet in vmscan.c

From: Shantanu Goel
Date: Tue Dec 26 2006 - 21:46:32 EST


The attached patch fixes a rather obvious buglet.
Noticed while instrumenting the VM using /proc/vmstat.


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com --- .orig/mm/vmscan.c 2006-12-26 21:34:30.000000000 -0500
+++ 2.6.20-rc2-wb-fix/mm/vmscan.c 2006-12-26 21:32:17.000000000 -0500
@@ -692,7 +692,7 @@
__count_vm_events(KSWAPD_STEAL, nr_freed);
} else
__count_zone_vm_events(PGSCAN_DIRECT, zone, nr_scan);
- __count_vm_events(PGACTIVATE, nr_freed);
+ __count_zone_vm_events(PGSTEAL, zone, nr_freed);

if (nr_taken == 0)
goto done;