Browse Source

[PATCH] Buglet in vmscan.c

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: Linus Torvalds <torvalds@osdl.org>
Shantanu Goel 18 years ago
parent
commit
918d3f90e8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mm/vmscan.c

+ 1 - 1
mm/vmscan.c

@@ -692,7 +692,7 @@ static unsigned long shrink_inactive_list(unsigned long max_scan,
 			__count_vm_events(KSWAPD_STEAL, nr_freed);
 			__count_vm_events(KSWAPD_STEAL, nr_freed);
 		} else
 		} else
 			__count_zone_vm_events(PGSCAN_DIRECT, zone, nr_scan);
 			__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)
 		if (nr_taken == 0)
 			goto done;
 			goto done;