]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: unify charge/uncharge quantities to units of pages
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 23 Mar 2011 23:42:36 +0000 (16:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Mar 2011 02:46:30 +0000 (19:46 -0700)
commit0d137c767f21fcffe7dfb0cc0df4bcf8707407f0
treed05bb74c5ca30650ff0622cd1ffd2fd6ddecebd6
parentbc3d343b39f7760c9a3ea4d86f3c7a531fa6c839
memcg: unify charge/uncharge quantities to units of pages

There is no clear pattern when we pass a page count and when we pass a
byte count that is a multiple of PAGE_SIZE.

We never charge or uncharge subpage quantities, so convert it all to page
counts.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c