Lines Matching refs:min_hpages
104 if (spool->min_hpages != -1) in subpool_is_free()
105 return spool->rsv_hpages == spool->min_hpages; in subpool_is_free()
119 if (spool->min_hpages != -1) in unlock_or_release_subpool()
121 -spool->min_hpages); in unlock_or_release_subpool()
127 long min_hpages) in hugepage_new_subpool() argument
139 spool->min_hpages = min_hpages; in hugepage_new_subpool()
141 if (min_hpages != -1 && hugetlb_acct_memory(h, min_hpages)) { in hugepage_new_subpool()
145 spool->rsv_hpages = min_hpages; in hugepage_new_subpool()
188 if (spool->min_hpages != -1 && spool->rsv_hpages) { in hugepage_subpool_get_pages()
228 if (spool->min_hpages != -1 && spool->used_hpages < spool->min_hpages) { in hugepage_subpool_put_pages()
229 if (spool->rsv_hpages + delta <= spool->min_hpages) in hugepage_subpool_put_pages()
232 ret = spool->rsv_hpages + delta - spool->min_hpages; in hugepage_subpool_put_pages()
235 if (spool->rsv_hpages > spool->min_hpages) in hugepage_subpool_put_pages()
236 spool->rsv_hpages = spool->min_hpages; in hugepage_subpool_put_pages()