Lines Matching refs:min_hpages
84 if (spool->min_hpages != -1) in unlock_or_release_subpool()
86 -spool->min_hpages); in unlock_or_release_subpool()
92 long min_hpages) in hugepage_new_subpool() argument
104 spool->min_hpages = min_hpages; in hugepage_new_subpool()
106 if (min_hpages != -1 && hugetlb_acct_memory(h, min_hpages)) { in hugepage_new_subpool()
110 spool->rsv_hpages = min_hpages; in hugepage_new_subpool()
151 if (spool->min_hpages != -1 && spool->rsv_hpages) { in hugepage_subpool_get_pages()
190 if (spool->min_hpages != -1 && spool->used_hpages < spool->min_hpages) { in hugepage_subpool_put_pages()
191 if (spool->rsv_hpages + delta <= spool->min_hpages) in hugepage_subpool_put_pages()
194 ret = spool->rsv_hpages + delta - spool->min_hpages; in hugepage_subpool_put_pages()
197 if (spool->rsv_hpages > spool->min_hpages) in hugepage_subpool_put_pages()
198 spool->rsv_hpages = spool->min_hpages; in hugepage_subpool_put_pages()