Home
last modified time | relevance | path

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

/linux-6.1.9/include/linux/
Dhugetlb_cgroup.h21 struct resv_map;
131 struct resv_map *resv_map) in resv_map_dup_hugetlb_cgroup_uncharge_info() argument
133 if (resv_map->css) in resv_map_dup_hugetlb_cgroup_uncharge_info()
134 css_get(resv_map->css); in resv_map_dup_hugetlb_cgroup_uncharge_info()
138 struct resv_map *resv_map) in resv_map_put_hugetlb_cgroup_uncharge_info() argument
140 if (resv_map->css) in resv_map_put_hugetlb_cgroup_uncharge_info()
141 css_put(resv_map->css); in resv_map_put_hugetlb_cgroup_uncharge_info()
163 extern void hugetlb_cgroup_uncharge_counter(struct resv_map *resv,
167 extern void hugetlb_cgroup_uncharge_file_region(struct resv_map *resv,
177 static inline void hugetlb_cgroup_uncharge_file_region(struct resv_map *resv, in hugetlb_cgroup_uncharge_file_region()
[all …]
Dhugetlb.h65 struct resv_map { struct
124 extern struct resv_map *resv_map_alloc(void);
/linux-6.1.9/Documentation/translations/zh_CN/mm/
Dhugetlbfs_reserv.rst43 struct resv_map {
52 系统中每个巨页映射都有一个预留映射。resv_map中的regions列表描述了映射中的
286 long region_chg(struct resv_map *resv, long f, long t);
287 long region_add(struct resv_map *resv, long f, long t);
288 void region_abort(struct resv_map *resv, long f, long t);
289 long region_count(struct resv_map *resv, long f, long t);
/linux-6.1.9/mm/
Dhugetlb.c410 get_file_region_entry_from_cache(struct resv_map *resv, long from, long to) in get_file_region_entry_from_cache()
440 struct resv_map *resv, in record_hugetlb_cgroup_uncharge_info()
492 static void coalesce_file_region(struct resv_map *resv, struct file_region *rg) in coalesce_file_region()
520 hugetlb_resv_map_add(struct resv_map *map, struct list_head *rg, long from, in hugetlb_resv_map_add()
545 static long add_reservation_in_range(struct resv_map *resv, long f, long t, in add_reservation_in_range()
607 static int allocate_file_region_entries(struct resv_map *resv, in allocate_file_region_entries()
678 static long region_add(struct resv_map *resv, long f, long t, in region_add()
745 static long region_chg(struct resv_map *resv, long f, long t, in region_chg()
781 static void region_abort(struct resv_map *resv, long f, long t, in region_abort()
804 static long region_del(struct resv_map *resv, long f, long t) in region_del()
[all …]
Dhugetlb_cgroup.c422 void hugetlb_cgroup_uncharge_counter(struct resv_map *resv, unsigned long start, in hugetlb_cgroup_uncharge_counter()
434 void hugetlb_cgroup_uncharge_file_region(struct resv_map *resv, in hugetlb_cgroup_uncharge_file_region()
/linux-6.1.9/fs/hugetlbfs/
Dinode.c658 struct resv_map *resv_map; in hugetlbfs_evict_inode() local
668 resv_map = (struct resv_map *)(&inode->i_data)->private_data; in hugetlbfs_evict_inode()
670 if (resv_map) in hugetlbfs_evict_inode()
671 resv_map_release(&resv_map->refs); in hugetlbfs_evict_inode()
966 struct resv_map *resv_map = NULL; in hugetlbfs_get_inode() local
973 resv_map = resv_map_alloc(); in hugetlbfs_get_inode()
974 if (!resv_map) in hugetlbfs_get_inode()
988 inode->i_mapping->private_data = resv_map; in hugetlbfs_get_inode()
1012 if (resv_map) in hugetlbfs_get_inode()
1013 kref_put(&resv_map->refs, resv_map_release); in hugetlbfs_get_inode()
/linux-6.1.9/Documentation/mm/
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);