• Home
  • Raw
  • Download

Lines Matching refs:delta

100 static int hugetlb_acct_memory(struct hstate *h, long delta);
160 long delta) in hugepage_subpool_get_pages() argument
162 long ret = delta; in hugepage_subpool_get_pages()
170 if ((spool->used_hpages + delta) <= spool->max_hpages) in hugepage_subpool_get_pages()
171 spool->used_hpages += delta; in hugepage_subpool_get_pages()
180 if (delta > spool->rsv_hpages) { in hugepage_subpool_get_pages()
185 ret = delta - spool->rsv_hpages; in hugepage_subpool_get_pages()
189 spool->rsv_hpages -= delta; in hugepage_subpool_get_pages()
205 long delta) in hugepage_subpool_put_pages() argument
207 long ret = delta; in hugepage_subpool_put_pages()
210 return delta; in hugepage_subpool_put_pages()
215 spool->used_hpages -= delta; 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()
224 spool->rsv_hpages += delta; in hugepage_subpool_put_pages()
2011 static int gather_surplus_pages(struct hstate *h, int delta) in gather_surplus_pages() argument
2020 needed = (h->resv_huge_pages + delta) - h->free_huge_pages; in gather_surplus_pages()
2022 h->resv_huge_pages += delta; in gather_surplus_pages()
2049 needed = (h->resv_huge_pages + delta) - in gather_surplus_pages()
2070 h->resv_huge_pages += delta; in gather_surplus_pages()
2626 int delta) in adjust_pool_surplus() argument
2630 VM_BUG_ON(delta != -1 && delta != 1); in adjust_pool_surplus()
2632 if (delta < 0) { in adjust_pool_surplus()
2647 h->surplus_huge_pages += delta; in adjust_pool_surplus()
2648 h->surplus_huge_pages_node[node] += delta; in adjust_pool_surplus()
3607 static int hugetlb_acct_memory(struct hstate *h, long delta) in hugetlb_acct_memory() argument
3635 if (delta > 0) { in hugetlb_acct_memory()
3636 if (gather_surplus_pages(h, delta) < 0) in hugetlb_acct_memory()
3639 if (delta > allowed_mems_nr(h)) { in hugetlb_acct_memory()
3640 return_unused_surplus_pages(h, delta); in hugetlb_acct_memory()
3646 if (delta < 0) in hugetlb_acct_memory()
3647 return_unused_surplus_pages(h, (unsigned long) -delta); in hugetlb_acct_memory()