mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
[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>
This commit is contained in:
parent
463cab3692
commit
918d3f90e8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user