Home
last modified time | relevance | path

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

/linux/mm/
H A Dhugetlb.c134 static inline bool subpool_is_free(struct hugepage_subpool *spool) in subpool_is_free() argument
136 if (spool->count) in subpool_is_free()
138 if (spool->max_hpages != -1) in subpool_is_free()
139 return spool->used_hpages == 0; in subpool_is_free()
140 if (spool->min_hpages != -1) in subpool_is_free()
141 return spool->rsv_hpages == spool->min_hpages; in subpool_is_free()
146 static inline void unlock_or_release_subpool(struct hugepage_subpool *spool, in unlock_or_release_subpool() argument
149 spin_unlock_irqrestore(&spool->lock, irq_flags); in unlock_or_release_subpool()
154 if (subpool_is_free(spool)) { in unlock_or_release_subpool()
155 if (spool->min_hpages != -1) in unlock_or_release_subpool()
[all …]
/linux/fs/hugetlbfs/
H A Dinode.c1091 struct hugepage_subpool *spool = sbinfo->spool; in hugetlbfs_show_options() local
1114 if (spool) { in hugetlbfs_show_options()
1115 if (spool->max_hpages != -1) in hugetlbfs_show_options()
1117 (unsigned long long)spool->max_hpages << hpage_shift); in hugetlbfs_show_options()
1118 if (spool->min_hpages != -1) in hugetlbfs_show_options()
1120 (unsigned long long)spool->min_hpages << hpage_shift); in hugetlbfs_show_options()
1138 if (sbinfo->spool) { in hugetlbfs_statfs()
1141 spin_lock_irq(&sbinfo->spool->lock); in hugetlbfs_statfs()
1142 buf->f_blocks = sbinfo->spool->max_hpages; in hugetlbfs_statfs()
1143 free_pages = sbinfo->spool->max_hpages in hugetlbfs_statfs()
[all …]
/linux/include/linux/
H A Dhugetlb.h121 void hugepage_put_subpool(struct hugepage_subpool *spool);
503 struct hugepage_subpool *spool; member
735 return HUGETLBFS_SB(inode->i_sb)->spool; in subpool_inode()