Lines Matching refs:count
74 bool free = (spool->count == 0) && (spool->used_hpages == 0); in unlock_or_release_subpool()
99 spool->count = 1; in hugepage_new_subpool()
116 BUG_ON(!spool->count); in hugepage_put_subpool()
117 spool->count--; in hugepage_put_subpool()
2231 static void try_to_free_low(struct hstate *h, unsigned long count, in try_to_free_low() argument
2243 if (count >= h->nr_huge_pages) in try_to_free_low()
2255 static inline void try_to_free_low(struct hstate *h, unsigned long count, in try_to_free_low() argument
2294 static unsigned long set_max_huge_pages(struct hstate *h, unsigned long count, in set_max_huge_pages() argument
2314 while (h->surplus_huge_pages && count > persistent_huge_pages(h)) { in set_max_huge_pages()
2319 while (count > persistent_huge_pages(h)) { in set_max_huge_pages()
2359 min_count = max(count, min_count); in set_max_huge_pages()
2366 while (count < persistent_huge_pages(h)) { in set_max_huge_pages()
2420 unsigned long count, size_t len) in __nr_hugepages_store_common() argument
2444 count += h->nr_huge_pages - h->nr_huge_pages_node[nid]; in __nr_hugepages_store_common()
2449 h->max_huge_pages = set_max_huge_pages(h, count, nodes_allowed); in __nr_hugepages_store_common()
2465 unsigned long count; in nr_hugepages_store_common() local
2469 err = kstrtoul(buf, 10, &count); in nr_hugepages_store_common()
2474 return __nr_hugepages_store_common(obey_mempolicy, h, nid, count, len); in nr_hugepages_store_common()
2519 struct kobj_attribute *attr, const char *buf, size_t count) in nr_overcommit_hugepages_store() argument
2536 return count; in nr_overcommit_hugepages_store()