Home
last modified time | relevance | path

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

/Linux-v5.10/include/linux/
Dhugetlb_cgroup.h21 struct resv_map;
135 extern void hugetlb_cgroup_uncharge_counter(struct resv_map *resv,
139 extern void hugetlb_cgroup_uncharge_file_region(struct resv_map *resv,
148 static inline void hugetlb_cgroup_uncharge_file_region(struct resv_map *resv, in hugetlb_cgroup_uncharge_file_region()
236 static inline void hugetlb_cgroup_uncharge_counter(struct resv_map *resv, in hugetlb_cgroup_uncharge_counter()
Dhugetlb.h43 struct resv_map { struct
96 extern struct resv_map *resv_map_alloc(void);
/Linux-v5.10/mm/
Dhugetlb.c235 get_file_region_entry_from_cache(struct resv_map *resv, long from, long to) in get_file_region_entry_from_cache()
265 struct resv_map *resv, in record_hugetlb_cgroup_uncharge_info()
299 static void coalesce_file_region(struct resv_map *resv, struct file_region *rg) in coalesce_file_region()
332 static long add_reservation_in_range(struct resv_map *resv, long f, long t, in add_reservation_in_range()
405 static int allocate_file_region_entries(struct resv_map *resv, in allocate_file_region_entries()
478 static long region_add(struct resv_map *resv, long f, long t, in region_add()
546 static long region_chg(struct resv_map *resv, long f, long t, in region_chg()
582 static void region_abort(struct resv_map *resv, long f, long t, in region_abort()
605 static long region_del(struct resv_map *resv, long f, long t) in region_del()
725 static long region_count(struct resv_map *resv, long f, long t) in region_count()
[all …]
Dhugetlb_cgroup.c380 void hugetlb_cgroup_uncharge_counter(struct resv_map *resv, unsigned long start, in hugetlb_cgroup_uncharge_counter()
392 void hugetlb_cgroup_uncharge_file_region(struct resv_map *resv, in hugetlb_cgroup_uncharge_file_region()
/Linux-v5.10/fs/hugetlbfs/
Dinode.c553 struct resv_map *resv_map; in hugetlbfs_evict_inode() local
563 resv_map = (struct resv_map *)(&inode->i_data)->private_data; in hugetlbfs_evict_inode()
565 if (resv_map) in hugetlbfs_evict_inode()
566 resv_map_release(&resv_map->refs); in hugetlbfs_evict_inode()
822 struct resv_map *resv_map = NULL; in hugetlbfs_get_inode() local
829 resv_map = resv_map_alloc(); in hugetlbfs_get_inode()
830 if (!resv_map) in hugetlbfs_get_inode()
844 inode->i_mapping->private_data = resv_map; in hugetlbfs_get_inode()
868 if (resv_map) in hugetlbfs_get_inode()
869 kref_put(&resv_map->refs, resv_map_release); in hugetlbfs_get_inode()
/Linux-v5.10/Documentation/vm/
Dhugetlbfs_reserv.rst43 struct resv_map {
53 The regions list within the resv_map describes the regions within
378 long region_chg(struct resv_map *resv, long f, long t);
379 long region_add(struct resv_map *resv, long f, long t);
380 void region_abort(struct resv_map *resv, long f, long t);
381 long region_count(struct resv_map *resv, long f, long t);