]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: fix mapcount check in move charge code for anonymous page
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Mon, 5 Mar 2012 22:59:20 +0000 (14:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 5 Mar 2012 23:49:43 +0000 (15:49 -0800)
commit78b35243c464555cdf321b54bd89aa7cbd61ecbb
treeedfd8cce78c61cbf6cd9e738662ad25baa2b2bc0
parent27522b65a3d821afed847ce338626ba0fd1a8eee
memcg: fix mapcount check in move charge code for anonymous page

Currently the charge on shared anonyous pages is supposed not to moved in
task migration.  To implement this, we need to check that mapcount > 1,
instread of > 2.  So this patch fixes it.

Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Reviewed-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Hillf Danton <dhillf@gmail.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c