Skip to content

Commit

Permalink
[PATCH] Buglet in vmscan.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shantanu Goel authored and Linus Torvalds committed Dec 30, 2006
1 parent 463cab3 commit 918d3f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 918d3f9

Please sign in to comment.