Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

KOSAKI Motohiro and committed by
Linus Torvalds
f272b7bc 02d46e07

+1 -1
+1 -1
mm/vmscan.c
··· 1469 1469 int file = is_file_lru(l); 1470 1470 int scan; 1471 1471 1472 - scan = zone_page_state(zone, NR_LRU_BASE + l); 1472 + scan = zone_nr_pages(zone, sc, l); 1473 1473 if (priority) { 1474 1474 scan >>= priority; 1475 1475 scan = (scan * percent[file]) / 100;