Home
last modified time | relevance | path

Searched refs:rsvd_counter (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.10/mm/
Dhugetlb_cgroup.c422 struct page_counter *rsvd_counter; in hugetlb_cgroup_read_u64() local
426 rsvd_counter = &h_cg->rsvd_hugepage[MEMFILE_IDX(cft->private)]; in hugetlb_cgroup_read_u64()
432 return (u64)page_counter_read(rsvd_counter) * PAGE_SIZE; in hugetlb_cgroup_read_u64()
436 return (u64)rsvd_counter->max * PAGE_SIZE; in hugetlb_cgroup_read_u64()
440 return (u64)rsvd_counter->watermark * PAGE_SIZE; in hugetlb_cgroup_read_u64()
444 return rsvd_counter->failcnt; in hugetlb_cgroup_read_u64()
546 struct page_counter *counter, *rsvd_counter; in hugetlb_cgroup_reset() local
550 rsvd_counter = &h_cg->rsvd_hugepage[MEMFILE_IDX(of_cft(of)->private)]; in hugetlb_cgroup_reset()
557 page_counter_reset_watermark(rsvd_counter); in hugetlb_cgroup_reset()
563 rsvd_counter->failcnt = 0; in hugetlb_cgroup_reset()