Home
last modified time | relevance | path

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

/linux-6.1.9/mm/
Dhugetlb.c100 static inline bool subpool_is_free(struct hugepage_subpool *spool) in subpool_is_free() argument
102 if (spool->count) in subpool_is_free()
104 if (spool->max_hpages != -1) in subpool_is_free()
105 return spool->used_hpages == 0; in subpool_is_free()
106 if (spool->min_hpages != -1) in subpool_is_free()
107 return spool->rsv_hpages == spool->min_hpages; in subpool_is_free()
112 static inline void unlock_or_release_subpool(struct hugepage_subpool *spool, in unlock_or_release_subpool() argument
115 spin_unlock_irqrestore(&spool->lock, irq_flags); in unlock_or_release_subpool()
120 if (subpool_is_free(spool)) { in unlock_or_release_subpool()
121 if (spool->min_hpages != -1) in unlock_or_release_subpool()
[all …]
/linux-6.1.9/fs/hugetlbfs/
Dinode.c1129 struct hugepage_subpool *spool = sbinfo->spool; in hugetlbfs_show_options() local
1152 if (spool) { in hugetlbfs_show_options()
1153 if (spool->max_hpages != -1) in hugetlbfs_show_options()
1155 (unsigned long long)spool->max_hpages << hpage_shift); in hugetlbfs_show_options()
1156 if (spool->min_hpages != -1) in hugetlbfs_show_options()
1158 (unsigned long long)spool->min_hpages << hpage_shift); in hugetlbfs_show_options()
1174 if (sbinfo->spool) { in hugetlbfs_statfs()
1177 spin_lock_irq(&sbinfo->spool->lock); in hugetlbfs_statfs()
1178 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()
1179 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()
[all …]
/linux-6.1.9/include/linux/
Dhugetlb.h134 void hugepage_put_subpool(struct hugepage_subpool *spool);
514 struct hugepage_subpool *spool; member