Home
last modified time | relevance | path

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

/Linux-v6.6/mm/
Dhugetlb.c102 static inline bool subpool_is_free(struct hugepage_subpool *spool) in subpool_is_free() argument
104 if (spool->count) in subpool_is_free()
106 if (spool->max_hpages != -1) in subpool_is_free()
107 return spool->used_hpages == 0; in subpool_is_free()
108 if (spool->min_hpages != -1) in subpool_is_free()
109 return spool->rsv_hpages == spool->min_hpages; in subpool_is_free()
114 static inline void unlock_or_release_subpool(struct hugepage_subpool *spool, in unlock_or_release_subpool() argument
117 spin_unlock_irqrestore(&spool->lock, irq_flags); in unlock_or_release_subpool()
122 if (subpool_is_free(spool)) { in unlock_or_release_subpool()
123 if (spool->min_hpages != -1) in unlock_or_release_subpool()
[all …]
/Linux-v6.6/fs/hugetlbfs/
Dinode.c1169 struct hugepage_subpool *spool = sbinfo->spool; in hugetlbfs_show_options() local
1192 if (spool) { in hugetlbfs_show_options()
1193 if (spool->max_hpages != -1) in hugetlbfs_show_options()
1195 (unsigned long long)spool->max_hpages << hpage_shift); in hugetlbfs_show_options()
1196 if (spool->min_hpages != -1) in hugetlbfs_show_options()
1198 (unsigned long long)spool->min_hpages << hpage_shift); in hugetlbfs_show_options()
1214 if (sbinfo->spool) { in hugetlbfs_statfs()
1217 spin_lock_irq(&sbinfo->spool->lock); in hugetlbfs_statfs()
1218 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()
1219 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()
[all …]
/Linux-v6.6/include/linux/
Dhugetlb.h126 void hugepage_put_subpool(struct hugepage_subpool *spool);
535 struct hugepage_subpool *spool; member