Searched refs:spool (Results 1 – 1 of 1) sorted by relevance
129 static inline bool subpool_is_free(struct hugepage_subpool *spool) in subpool_is_free() argument131 if (spool->count) in subpool_is_free()133 if (spool->max_hpages != -1) in subpool_is_free()134 return spool->used_hpages == 0; in subpool_is_free()135 if (spool->min_hpages != -1) in subpool_is_free()136 return spool->rsv_hpages == spool->min_hpages; in subpool_is_free()141 static inline void unlock_or_release_subpool(struct hugepage_subpool *spool, in unlock_or_release_subpool() argument144 bool free_subpool = subpool_is_free(spool); in unlock_or_release_subpool()149 spin_unlock_irqrestore(&spool->lock, irq_flags); in unlock_or_release_subpool()152 if (spool->min_hpages != -1) in unlock_or_release_subpool()[all …]