]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcg: move pc lookup point to commit_charge()
authorJohannes Weiner <hannes@cmpxchg.org>
Tue, 24 Apr 2012 18:22:33 +0000 (20:22 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 26 Apr 2012 04:22:35 +0000 (21:22 -0700)
commit9b684d4a14a0e6329810f805b0c861a47a060971
treefcda8e91609e1a74f629c1a7b0e95c3e76cab75e
parent21d783165b6cbdd84c9d1105bd65903b45ed6184
mm: memcg: move pc lookup point to commit_charge()

None of the callsites actually need the page_cgroup descriptor
themselves, so just pass the page and do the look up in there.

We already had two bugs (1a24d9d 'mm: memcg: update the correct soft
limit tree during migration' and 'memcg: fix Bad page state after
replace_page_cache') where the passed page and pc were not referring
to the same page frame.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c