Skip to contentSkip to conversation

Buglet in vmscan.c

PATCH New Shantanu Goel 1 participant 1 message Dec 27, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Buglet in vmscan.c

The attached patch fixes a rather obvious buglet. Noticed while instrumenting the VM using /proc/vmstat.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

mm/vmscan.c +1 -1
@@ -692,7 +692,7 @@
 			__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;