]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: keep only one charge cancelling function
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 23 Mar 2011 23:42:33 +0000 (16:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Mar 2011 02:46:29 +0000 (19:46 -0700)
commitb038dfd7bc10c471f524a6b91c1ec0b8b1258878
tree13a4d92cd78bc6f97d9a2b6d77880c9ea5d67aa1
parent9594a4a657b0dee086a32f2eb28cbce66b4ae06b
memcg: keep only one charge cancelling function

We have two charge cancelling functions: one takes a page count, the other
a page size.  The second one just divides the parameter by PAGE_SIZE and
then calls the first one.  This is trivial, no need for an extra function.

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