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 if (!page_counter_try_charge(&h_cg->hugepage[idx], nr_pages, &counter)) in hugetlb_cgroup_charge_cgroup()
251 struct page_counter *counter; in hugetlb_cgroup_read_u64() local
254 counter = &h_cg->hugepage[MEMFILE_IDX(cft->private)]; in hugetlb_cgroup_read_u64()
258 return (u64)page_counter_read(counter) * PAGE_SIZE; in hugetlb_cgroup_read_u64()
260 return (u64)counter->limit * PAGE_SIZE; in hugetlb_cgroup_read_u64()
262 return (u64)counter->watermark * PAGE_SIZE; in hugetlb_cgroup_read_u64()
264 return counter->failcnt; in hugetlb_cgroup_read_u64()
306 struct page_counter *counter; in hugetlb_cgroup_reset() local
309 counter = &h_cg->hugepage[MEMFILE_IDX(of_cft(of)->private)]; in hugetlb_cgroup_reset()
313 page_counter_reset_watermark(counter); in hugetlb_cgroup_reset()
316 counter->failcnt = 0; in hugetlb_cgroup_reset()