Home
last modified time | relevance | path

Searched refs:spool (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/mm/
Dhugetlb.c104 static inline bool subpool_is_free(struct hugepage_subpool *spool) in subpool_is_free() argument
106 if (spool->count) in subpool_is_free()
108 if (spool->max_hpages != -1) in subpool_is_free()
109 return spool->used_hpages == 0; in subpool_is_free()
110 if (spool->min_hpages != -1) in subpool_is_free()
111 return spool->rsv_hpages == spool->min_hpages; in subpool_is_free()
116 static inline void unlock_or_release_subpool(struct hugepage_subpool *spool, in unlock_or_release_subpool() argument
119 spin_unlock_irqrestore(&spool->lock, irq_flags); in unlock_or_release_subpool()
124 if (subpool_is_free(spool)) { in unlock_or_release_subpool()
125 if (spool->min_hpages != -1) in unlock_or_release_subpool()
[all …]
/linux-6.12.1/fs/hugetlbfs/
Dinode.c1152 struct hugepage_subpool *spool = sbinfo->spool; in hugetlbfs_show_options() local
1175 if (spool) { in hugetlbfs_show_options()
1176 if (spool->max_hpages != -1) in hugetlbfs_show_options()
1178 (unsigned long long)spool->max_hpages << hpage_shift); in hugetlbfs_show_options()
1179 if (spool->min_hpages != -1) in hugetlbfs_show_options()
1181 (unsigned long long)spool->min_hpages << hpage_shift); in hugetlbfs_show_options()
1199 if (sbinfo->spool) { in hugetlbfs_statfs()
1202 spin_lock_irq(&sbinfo->spool->lock); in hugetlbfs_statfs()
1203 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()
1204 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()
[all …]
/linux-6.12.1/include/linux/
Dhugetlb.h120 void hugepage_put_subpool(struct hugepage_subpool *spool);
499 struct hugepage_subpool *spool; member