Lines Matching refs:min_hpages
112 if (spool->min_hpages != -1) in unlock_or_release_subpool()
114 -spool->min_hpages); in unlock_or_release_subpool()
120 long min_hpages) in hugepage_new_subpool() argument
132 spool->min_hpages = min_hpages; in hugepage_new_subpool()
134 if (min_hpages != -1 && hugetlb_acct_memory(h, min_hpages)) { in hugepage_new_subpool()
138 spool->rsv_hpages = min_hpages; in hugepage_new_subpool()
179 if (spool->min_hpages != -1 && spool->rsv_hpages) { in hugepage_subpool_get_pages()
218 if (spool->min_hpages != -1 && spool->used_hpages < spool->min_hpages) { in hugepage_subpool_put_pages()
219 if (spool->rsv_hpages + delta <= spool->min_hpages) in hugepage_subpool_put_pages()
222 ret = spool->rsv_hpages + delta - spool->min_hpages; in hugepage_subpool_put_pages()
225 if (spool->rsv_hpages > spool->min_hpages) in hugepage_subpool_put_pages()
226 spool->rsv_hpages = spool->min_hpages; in hugepage_subpool_put_pages()