]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[PATCH] Buglet in vmscan.c
authorShantanu Goel <sgoel01@yahoo.com>
Sat, 30 Dec 2006 00:48:59 +0000 (16:48 -0800)
committerChris Wright <chrisw@sous-sol.org>
Wed, 10 Jan 2007 19:05:20 +0000 (11:05 -0800)
Fix a rather obvious buglet.  Noticed while instrumenting the VM using
/proc/vmstat.

Cc: Christoph Lameter <clameter@engr.sgi.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
mm/vmscan.c

index 518540a4a2a66a1ade20312d1d655ba6923e05b5..f58d359d6241a77e5fb2106a3b787fae77219dfa 100644 (file)
@@ -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;