Lines Matching refs:min_hpages
87 if (spool->min_hpages != -1) in unlock_or_release_subpool()
89 -spool->min_hpages); in unlock_or_release_subpool()
95 long min_hpages) in hugepage_new_subpool() argument
107 spool->min_hpages = min_hpages; in hugepage_new_subpool()
109 if (min_hpages != -1 && hugetlb_acct_memory(h, min_hpages)) { in hugepage_new_subpool()
113 spool->rsv_hpages = min_hpages; in hugepage_new_subpool()
154 if (spool->min_hpages != -1 && spool->rsv_hpages) { in hugepage_subpool_get_pages()
193 if (spool->min_hpages != -1 && spool->used_hpages < spool->min_hpages) { in hugepage_subpool_put_pages()
194 if (spool->rsv_hpages + delta <= spool->min_hpages) in hugepage_subpool_put_pages()
197 ret = spool->rsv_hpages + delta - spool->min_hpages; in hugepage_subpool_put_pages()
200 if (spool->rsv_hpages > spool->min_hpages) in hugepage_subpool_put_pages()
201 spool->rsv_hpages = spool->min_hpages; in hugepage_subpool_put_pages()