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 <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: Daisuke Nishimura <[email protected]>
Cc: Balbir Singh <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
hnaz authored and 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.