Lines Matching refs:memcg
718 struct mem_cgroup *memcg; in __do_huge_pmd_anonymous_page() local
724 if (mem_cgroup_try_charge(page, mm, GFP_TRANSHUGE, &memcg)) in __do_huge_pmd_anonymous_page()
729 mem_cgroup_cancel_charge(page, memcg); in __do_huge_pmd_anonymous_page()
744 mem_cgroup_cancel_charge(page, memcg); in __do_huge_pmd_anonymous_page()
752 mem_cgroup_commit_charge(page, memcg, false); in __do_huge_pmd_anonymous_page()
985 struct mem_cgroup *memcg; in do_huge_pmd_wp_page_fallback() local
1007 &memcg))) { in do_huge_pmd_wp_page_fallback()
1011 memcg = (void *)page_private(pages[i]); in do_huge_pmd_wp_page_fallback()
1013 mem_cgroup_cancel_charge(pages[i], memcg); in do_huge_pmd_wp_page_fallback()
1020 set_page_private(pages[i], (unsigned long)memcg); in do_huge_pmd_wp_page_fallback()
1049 memcg = (void *)page_private(pages[i]); in do_huge_pmd_wp_page_fallback()
1052 mem_cgroup_commit_charge(pages[i], memcg, false); in do_huge_pmd_wp_page_fallback()
1078 memcg = (void *)page_private(pages[i]); in do_huge_pmd_wp_page_fallback()
1080 mem_cgroup_cancel_charge(pages[i], memcg); in do_huge_pmd_wp_page_fallback()
1093 struct mem_cgroup *memcg; in do_huge_pmd_wp_page() local
1146 GFP_TRANSHUGE, &memcg))) { in do_huge_pmd_wp_page()
1175 mem_cgroup_cancel_charge(new_page, memcg); in do_huge_pmd_wp_page()
1184 mem_cgroup_commit_charge(new_page, memcg, false); in do_huge_pmd_wp_page()
2436 struct mem_cgroup *memcg; in collapse_huge_page() local
2448 GFP_TRANSHUGE, &memcg))) in collapse_huge_page()
2535 mem_cgroup_commit_charge(new_page, memcg, false); in collapse_huge_page()
2550 mem_cgroup_cancel_charge(new_page, memcg); in collapse_huge_page()