Lines Matching refs:counter
113 struct page_counter *counter; in hugetlb_cgroup_move_parent() local
132 counter = &h_cg->hugepage[idx]; in hugetlb_cgroup_move_parent()
134 page_counter_cancel(counter, nr_pages); in hugetlb_cgroup_move_parent()
169 struct page_counter *counter; in hugetlb_cgroup_charge_cgroup() local
189 ret = page_counter_try_charge(&h_cg->hugepage[idx], nr_pages, &counter); in hugetlb_cgroup_charge_cgroup()
250 struct page_counter *counter; in hugetlb_cgroup_read_u64() local
253 counter = &h_cg->hugepage[MEMFILE_IDX(cft->private)]; in hugetlb_cgroup_read_u64()
257 return (u64)page_counter_read(counter) * PAGE_SIZE; in hugetlb_cgroup_read_u64()
259 return (u64)counter->limit * PAGE_SIZE; in hugetlb_cgroup_read_u64()
261 return (u64)counter->watermark * PAGE_SIZE; in hugetlb_cgroup_read_u64()
263 return counter->failcnt; in hugetlb_cgroup_read_u64()
305 struct page_counter *counter; in hugetlb_cgroup_reset() local
308 counter = &h_cg->hugepage[MEMFILE_IDX(of_cft(of)->private)]; in hugetlb_cgroup_reset()
312 page_counter_reset_watermark(counter); in hugetlb_cgroup_reset()
315 counter->failcnt = 0; in hugetlb_cgroup_reset()