Skip to content

Commit

Permalink
memcg: unify charge/uncharge quantities to units of pages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Weiner authored and Linus Torvalds committed Mar 24, 2011
1 parent 7ffd4ca commit 7ec99d6
Showing 1 changed file with 65 additions and 70 deletions.
Loading

0 comments on commit 7ec99d6

Please sign in to comment.