Lines Matching refs:nrg
439 struct file_region *nrg;
444 nrg = list_first_entry(&resv->region_cache, struct file_region, link);
445 list_del(&nrg->link);
447 nrg->from = from;
448 nrg->to = to;
450 return nrg;
453 static void copy_hugetlb_cgroup_uncharge_info(struct file_region *nrg,
457 nrg->reservation_counter = rg->reservation_counter;
458 nrg->css = rg->css;
468 struct file_region *nrg)
472 nrg->reservation_counter =
474 nrg->css = &h_cg->css;
493 nrg->reservation_counter = NULL;
494 nrg->css = NULL;
521 struct file_region *nrg, *prg;
535 nrg = list_next_entry(rg, link);
536 if (&nrg->link != &resv->regions && nrg->from == rg->to &&
537 has_same_uncharge_info(nrg, rg)) {
538 nrg->from = rg->from;
551 struct file_region *nrg;
554 nrg = get_file_region_entry_from_cache(map, from, to);
555 record_hugetlb_cgroup_uncharge_info(cg, h, map, nrg);
556 list_add(&nrg->link, rg);
557 coalesce_file_region(map, nrg);
835 struct file_region *nrg = NULL;
859 if (!nrg &&
861 nrg = list_first_entry(&resv->region_cache,
864 list_del(&nrg->link);
868 if (!nrg) {
870 nrg = kmalloc(sizeof(*nrg), GFP_KERNEL);
871 if (!nrg)
881 nrg->from = t;
882 nrg->to = rg->to;
884 copy_hugetlb_cgroup_uncharge_info(nrg, rg);
886 INIT_LIST_HEAD(&nrg->link);
891 list_add(&nrg->link, &rg->link);
892 nrg = NULL;
921 kfree(nrg);