Home
last modified time | relevance | path

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

/Linux-v5.15/mm/
Dhugetlb.c86 static inline bool subpool_is_free(struct hugepage_subpool *spool) in subpool_is_free() argument
88 if (spool->count) in subpool_is_free()
90 if (spool->max_hpages != -1) in subpool_is_free()
91 return spool->used_hpages == 0; in subpool_is_free()
92 if (spool->min_hpages != -1) in subpool_is_free()
93 return spool->rsv_hpages == spool->min_hpages; in subpool_is_free()
98 static inline void unlock_or_release_subpool(struct hugepage_subpool *spool, in unlock_or_release_subpool() argument
101 spin_unlock_irqrestore(&spool->lock, irq_flags); in unlock_or_release_subpool()
106 if (subpool_is_free(spool)) { in unlock_or_release_subpool()
107 if (spool->min_hpages != -1) in unlock_or_release_subpool()
[all …]
/Linux-v5.15/fs/hugetlbfs/
Dinode.c1001 struct hugepage_subpool *spool = sbinfo->spool; in hugetlbfs_show_options() local
1024 if (spool) { in hugetlbfs_show_options()
1025 if (spool->max_hpages != -1) in hugetlbfs_show_options()
1027 (unsigned long long)spool->max_hpages << hpage_shift); in hugetlbfs_show_options()
1028 if (spool->min_hpages != -1) in hugetlbfs_show_options()
1030 (unsigned long long)spool->min_hpages << hpage_shift); in hugetlbfs_show_options()
1046 if (sbinfo->spool) { in hugetlbfs_statfs()
1049 spin_lock(&sbinfo->spool->lock); in hugetlbfs_statfs()
1050 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()
1051 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()
[all …]
/Linux-v5.15/include/linux/
Dhugetlb.h124 void hugepage_put_subpool(struct hugepage_subpool *spool);
446 struct hugepage_subpool *spool; member