From cb5dad8b96734e7f92160e389794ca8d9b58da2d Mon Sep 17 00:00:00 2001 From: Shantanu Goel Date: Fri, 29 Dec 2006 16:48:59 -0800 Subject: [PATCH] [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 --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 518540a4a2a6..f58d359d6241 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; -- 2.39.5