Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/mm/
Dhugetlb_cgroup.c428 struct page_counter *rsvd_counter; in hugetlb_cgroup_read_u64() local
432 rsvd_counter = &h_cg->rsvd_hugepage[MEMFILE_IDX(cft->private)]; in hugetlb_cgroup_read_u64()
438 return (u64)page_counter_read(rsvd_counter) * PAGE_SIZE; in hugetlb_cgroup_read_u64()
442 return (u64)rsvd_counter->max * PAGE_SIZE; in hugetlb_cgroup_read_u64()
446 return (u64)rsvd_counter->watermark * PAGE_SIZE; in hugetlb_cgroup_read_u64()
450 return rsvd_counter->failcnt; in hugetlb_cgroup_read_u64()
552 struct page_counter *counter, *rsvd_counter; in hugetlb_cgroup_reset() local
556 rsvd_counter = &h_cg->rsvd_hugepage[MEMFILE_IDX(of_cft(of)->private)]; in hugetlb_cgroup_reset()
563 page_counter_reset_watermark(rsvd_counter); in hugetlb_cgroup_reset()
569 rsvd_counter->failcnt = 0; in hugetlb_cgroup_reset()