[PATCH] Buglet in vmscan.c
authorShantanu Goel <[email protected]>
Sat, 30 Dec 2006 00:48:59 +0000 (16:48 -0800)
committerLinus Torvalds <[email protected]>
Sat, 30 Dec 2006 18:56:43 +0000 (10:56 -0800)
Fix a rather obvious buglet.  Noticed while instrumenting the VM using
/proc/vmstat.

Cc: Christoph Lameter <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/vmscan.c

index 63eb9ab0032b9a865a3ca88f98ae36c0e2f115db..40fea4918390e6e69b96bc463b974a4ad31bb2bf 100644 (file)
@@ -692,7 +692,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;