memcg: use correct scan number at reclaim
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Thu, 12 Mar 2009 21:31:36 +0000 (14:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Mar 2009 23:20:24 +0000 (16:20 -0700)
commitf272b7bc447553410dde691aa31fc531adf9c175
tree95bd28ba8cea8471c0f461cfe6a9f2f0c2f00dff
parent02d46e07e538c285accb5c000a7db3a97eff1fbf
memcg: use correct scan number at reclaim

Even when page reclaim is under mem_cgroup, # of scan page is determined by
status of global LRU. Fix that.

Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: Balbir Singh <balbir@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmscan.c