Home
last modified time | relevance | path

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

/linux/mm/
H A Dhugetlb.c105 static inline bool subpool_is_free(struct hugepage_subpool *spool) in subpool_is_free() argument
107 if (spool->count) in subpool_is_free()
109 if (spool->max_hpages != -1) in subpool_is_free()
110 return spool->used_hpages == 0; in subpool_is_free()
111 if (spool->min_hpages != -1) in subpool_is_free()
112 return spool->rsv_hpages == spool->min_hpages; in subpool_is_free()
117 static inline void unlock_or_release_subpool(struct hugepage_subpool *spool, in unlock_or_release_subpool() argument
120 spin_unlock_irqrestore(&spool->lock, irq_flags); in unlock_or_release_subpool()
125 if (subpool_is_free(spool)) { in unlock_or_release_subpool()
126 if (spool->min_hpages != -1) in unlock_or_release_subpool()
[all …]
/linux/fs/hugetlbfs/
H A Dinode.c1085 struct hugepage_subpool *spool = sbinfo->spool; in hugetlbfs_show_options() local
1108 if (spool) { in hugetlbfs_show_options()
1109 if (spool->max_hpages != -1) in hugetlbfs_show_options()
1111 (unsigned long long)spool->max_hpages << hpage_shift); in hugetlbfs_show_options()
1112 if (spool->min_hpages != -1) in hugetlbfs_show_options()
1114 (unsigned long long)spool->min_hpages << hpage_shift); in hugetlbfs_show_options()
1132 if (sbinfo->spool) { in hugetlbfs_statfs()
1135 spin_lock_irq(&sbinfo->spool->lock); in hugetlbfs_statfs()
1136 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()
1137 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()
[all …]
/linux/include/linux/
H A Dhugetlb.h120 void hugepage_put_subpool(struct hugepage_subpool *spool);
499 struct hugepage_subpool *spool; member