• Home
  • Raw
  • Download

Lines Matching refs:nrg

254 	struct file_region *nrg = NULL;  in get_file_region_entry_from_cache()  local
259 nrg = list_first_entry(&resv->region_cache, struct file_region, link); in get_file_region_entry_from_cache()
260 list_del(&nrg->link); in get_file_region_entry_from_cache()
262 nrg->from = from; in get_file_region_entry_from_cache()
263 nrg->to = to; in get_file_region_entry_from_cache()
265 return nrg; in get_file_region_entry_from_cache()
268 static void copy_hugetlb_cgroup_uncharge_info(struct file_region *nrg, in copy_hugetlb_cgroup_uncharge_info() argument
272 nrg->reservation_counter = rg->reservation_counter; in copy_hugetlb_cgroup_uncharge_info()
273 nrg->css = rg->css; in copy_hugetlb_cgroup_uncharge_info()
283 struct file_region *nrg) in record_hugetlb_cgroup_uncharge_info() argument
287 nrg->reservation_counter = in record_hugetlb_cgroup_uncharge_info()
289 nrg->css = &h_cg->css; in record_hugetlb_cgroup_uncharge_info()
308 nrg->reservation_counter = NULL; in record_hugetlb_cgroup_uncharge_info()
309 nrg->css = NULL; in record_hugetlb_cgroup_uncharge_info()
337 struct file_region *nrg = NULL, *prg = NULL; in coalesce_file_region() local
351 nrg = list_next_entry(rg, link); in coalesce_file_region()
352 if (&nrg->link != &resv->regions && nrg->from == rg->to && in coalesce_file_region()
353 has_same_uncharge_info(nrg, rg)) { in coalesce_file_region()
354 nrg->from = rg->from; in coalesce_file_region()
367 struct file_region *nrg; in hugetlb_resv_map_add() local
370 nrg = get_file_region_entry_from_cache(map, from, to); in hugetlb_resv_map_add()
371 record_hugetlb_cgroup_uncharge_info(cg, h, map, nrg); in hugetlb_resv_map_add()
372 list_add(&nrg->link, rg->link.prev); in hugetlb_resv_map_add()
373 coalesce_file_region(map, nrg); in hugetlb_resv_map_add()
649 struct file_region *nrg = NULL; in region_del() local
673 if (!nrg && in region_del()
675 nrg = list_first_entry(&resv->region_cache, in region_del()
678 list_del(&nrg->link); in region_del()
682 if (!nrg) { in region_del()
684 nrg = kmalloc(sizeof(*nrg), GFP_KERNEL); in region_del()
685 if (!nrg) in region_del()
695 nrg->from = t; in region_del()
696 nrg->to = rg->to; in region_del()
698 copy_hugetlb_cgroup_uncharge_info(nrg, rg); in region_del()
700 INIT_LIST_HEAD(&nrg->link); in region_del()
705 list_add(&nrg->link, &rg->link); in region_del()
706 nrg = NULL; in region_del()
735 kfree(nrg); in region_del()