Home
last modified time | relevance | path

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

/linux-6.6.21/mm/
Dhugetlb_cgroup.c524 struct page_counter *rsvd_counter; in hugetlb_cgroup_read_u64() local
528 rsvd_counter = &h_cg->rsvd_hugepage[MEMFILE_IDX(cft->private)]; in hugetlb_cgroup_read_u64()
534 return (u64)page_counter_read(rsvd_counter) * PAGE_SIZE; in hugetlb_cgroup_read_u64()
538 return (u64)rsvd_counter->max * PAGE_SIZE; in hugetlb_cgroup_read_u64()
542 return (u64)rsvd_counter->watermark * PAGE_SIZE; in hugetlb_cgroup_read_u64()
546 return rsvd_counter->failcnt; in hugetlb_cgroup_read_u64()
648 struct page_counter *counter, *rsvd_counter; in hugetlb_cgroup_reset() local
652 rsvd_counter = &h_cg->rsvd_hugepage[MEMFILE_IDX(of_cft(of)->private)]; in hugetlb_cgroup_reset()
659 page_counter_reset_watermark(rsvd_counter); in hugetlb_cgroup_reset()
665 rsvd_counter->failcnt = 0; in hugetlb_cgroup_reset()