]> err.no Git - linux-2.6/commit
[PATCH] mm: isolate_lru_pages() scan count fix
authorWu Fengguang <wfg@mail.ustc.edu.cn>
Wed, 22 Mar 2006 08:08:23 +0000 (00:08 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 22 Mar 2006 15:54:00 +0000 (07:54 -0800)
commitc9b02d970c385a253edb36c87643b0df706b50b4
tree0e1990c1ced842a923221b36ee1546bf9aac8509
parent7fb2d46d396b2491818f8e43b01049b3234e6c07
[PATCH] mm: isolate_lru_pages() scan count fix

In isolate_lru_pages(), *scanned reports one more scan because the scan
counter is increased one more time on exit of the while-loop.

Change the while-loop to for-loop to fix it.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/vmscan.c