]> Git Repo - linux.git/commit
hugetlb/cgroup: add charge/uncharge routines for hugetlb cgroup
authorAneesh Kumar K.V <[email protected]>
Tue, 31 Jul 2012 23:42:18 +0000 (16:42 -0700)
committerLinus Torvalds <[email protected]>
Wed, 1 Aug 2012 01:42:41 +0000 (18:42 -0700)
commit6d76dcf40405144a448040a350fd214ddc243d5e
tree025d7201f63bcba6e8b19b5e21ffb4371ebb69cf
parent9dd540e23111d8884773ab942a736f3aba4040d4
hugetlb/cgroup: add charge/uncharge routines for hugetlb cgroup

Add the charge and uncharge routines for hugetlb cgroup.  We do cgroup
charging in page alloc and uncharge in compound page destructor.
Assigning page's hugetlb cgroup is protected by hugetlb_lock.

[[email protected]: add huge_page_order check to avoid incorrect uncharge]
Signed-off-by: Aneesh Kumar K.V <[email protected]>
Cc: David Rientjes <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: Hillf Danton <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Signed-off-by: Aneesh Kumar K.V <[email protected]>
Signed-off-by: Wanpeng Li <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/hugetlb_cgroup.h
mm/hugetlb.c
mm/hugetlb_cgroup.c
This page took 0.054711 seconds and 4 git commands to generate.