Searched refs:spool (Results 1 – 1 of 1) sorted by relevance
88 static inline bool subpool_is_free(struct hugepage_subpool *spool) in subpool_is_free() argument90 if (spool->count) in subpool_is_free()92 if (spool->max_hpages != -1) in subpool_is_free()93 return spool->used_hpages == 0; in subpool_is_free()94 if (spool->min_hpages != -1) in subpool_is_free()95 return spool->rsv_hpages == spool->min_hpages; in subpool_is_free()100 static inline void unlock_or_release_subpool(struct hugepage_subpool *spool, in unlock_or_release_subpool() argument103 spin_unlock_irqrestore(&spool->lock, irq_flags); in unlock_or_release_subpool()108 if (subpool_is_free(spool)) { in unlock_or_release_subpool()109 if (spool->min_hpages != -1) in unlock_or_release_subpool()[all …]