]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commite7018b8d27e0c9aa2200e5b393e0fe9093c6565c
tree13a4d92cd78bc6f97d9a2b6d77880c9ea5d67aa1
parentbf1ff2635a5fda207fc870df348bfc766e8dcd4d
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