Lines Matching refs:min_hpages
106 if (spool->min_hpages != -1) in subpool_is_free()
107 return spool->rsv_hpages == spool->min_hpages; in subpool_is_free()
121 if (spool->min_hpages != -1) in unlock_or_release_subpool()
123 -spool->min_hpages); in unlock_or_release_subpool()
129 long min_hpages) in hugepage_new_subpool() argument
141 spool->min_hpages = min_hpages; in hugepage_new_subpool()
143 if (min_hpages != -1 && hugetlb_acct_memory(h, min_hpages)) { in hugepage_new_subpool()
147 spool->rsv_hpages = min_hpages; in hugepage_new_subpool()
190 if (spool->min_hpages != -1 && spool->rsv_hpages) { in hugepage_subpool_get_pages()
230 if (spool->min_hpages != -1 && spool->used_hpages < spool->min_hpages) { in hugepage_subpool_put_pages()
231 if (spool->rsv_hpages + delta <= spool->min_hpages) in hugepage_subpool_put_pages()
234 ret = spool->rsv_hpages + delta - spool->min_hpages; in hugepage_subpool_put_pages()
237 if (spool->rsv_hpages > spool->min_hpages) in hugepage_subpool_put_pages()
238 spool->rsv_hpages = spool->min_hpages; in hugepage_subpool_put_pages()