From: Shantanu Goel Date: Sat, 30 Dec 2006 00:48:59 +0000 (-0800) Subject: [PATCH] Buglet in vmscan.c X-Git-Tag: v2.6.19.2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb5dad8b96734e7f92160e389794ca8d9b58da2d;p=thirdparty%2Fkernel%2Fstable.git [PATCH] Buglet in vmscan.c Fix a rather obvious buglet. Noticed while instrumenting the VM using /proc/vmstat. Cc: Christoph Lameter Cc: Signed-off-by: Andrew Morton Signed-off-by: Chris Wright --- diff --git a/mm/vmscan.c b/mm/vmscan.c index 518540a4a2a66..f58d359d6241a 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -691,7 +691,7 @@ static unsigned long shrink_inactive_list(unsigned long max_scan, __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;