Searched refs:resv (Results 1 – 2 of 2) sorted by relevance
/mm/ |
D | hugetlb.c | 252 get_file_region_entry_from_cache(struct resv_map *resv, long from, long to) in get_file_region_entry_from_cache() argument 256 VM_BUG_ON(resv->region_cache_count <= 0); in get_file_region_entry_from_cache() 258 resv->region_cache_count--; in get_file_region_entry_from_cache() 259 nrg = list_first_entry(&resv->region_cache, struct file_region, link); in get_file_region_entry_from_cache() 282 struct resv_map *resv, in record_hugetlb_cgroup_uncharge_info() argument 301 if (!resv->pages_per_hpage) in record_hugetlb_cgroup_uncharge_info() 302 resv->pages_per_hpage = pages_per_huge_page(h); in record_hugetlb_cgroup_uncharge_info() 306 VM_BUG_ON(resv->pages_per_hpage != pages_per_huge_page(h)); in record_hugetlb_cgroup_uncharge_info() 335 static void coalesce_file_region(struct resv_map *resv, struct file_region *rg) in coalesce_file_region() argument 340 if (&prg->link != &resv->regions && prg->to == rg->from && in coalesce_file_region() [all …]
|
D | hugetlb_cgroup.c | 380 void hugetlb_cgroup_uncharge_counter(struct resv_map *resv, unsigned long start, in hugetlb_cgroup_uncharge_counter() argument 383 if (hugetlb_cgroup_disabled() || !resv || !resv->reservation_counter || in hugetlb_cgroup_uncharge_counter() 384 !resv->css) in hugetlb_cgroup_uncharge_counter() 387 page_counter_uncharge(resv->reservation_counter, in hugetlb_cgroup_uncharge_counter() 388 (end - start) * resv->pages_per_hpage); in hugetlb_cgroup_uncharge_counter() 389 css_put(resv->css); in hugetlb_cgroup_uncharge_counter() 392 void hugetlb_cgroup_uncharge_file_region(struct resv_map *resv, in hugetlb_cgroup_uncharge_file_region() argument 397 if (hugetlb_cgroup_disabled() || !resv || !rg || !nr_pages) in hugetlb_cgroup_uncharge_file_region() 400 if (rg->reservation_counter && resv->pages_per_hpage && nr_pages > 0 && in hugetlb_cgroup_uncharge_file_region() 401 !resv->reservation_counter) { in hugetlb_cgroup_uncharge_file_region() [all …]
|