mm: fix incorrect page removal from LRU
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Mon, 22 Jun 2009 23:57:55 +0000 (08:57 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 23 Jun 2009 17:17:28 +0000 (10:17 -0700)
commitcb4cbcf6b3cf79f80c157afdc8dd8221643d8481
treea328516967ad0daeff9702a2cf5760fb25fd26a7
parentd888a4c76c51092993643f8992bf55b3c28da483
mm: fix incorrect page removal from LRU

The isolated page is "cursor_page" not "page".

This could cause LRU list corruption under memory pressure, caught by
CONFIG_DEBUG_LIST.

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reviewed-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Tested-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmscan.c