Lines Matching defs:needed
569 * indicate the number of file_regions needed in the cache to carry out to add
694 * region_del. The extra needed entries will be allocated.
699 * than or equal to zero. If file_region entries needed to be allocated for
714 /* Count how many regions are actually needed to execute this add. */
724 * existing adds_in_progress, plus the excess needed for this
770 * is needed and can not be allocated.
804 * NOTE: The range arguments [f, t) are not needed or used in this
929 * usage count, and the global reserve count if needed. By incrementing
2008 * on the head page when they need know if put_page() is needed
2550 long needed, allocated;
2554 needed = (h->resv_huge_pages + delta) - h->free_huge_pages;
2555 if (needed <= 0) {
2565 for (i = 0; i < needed; i++) {
2578 * After retaking hugetlb_lock, we need to recalculate 'needed'
2582 needed = (h->resv_huge_pages + delta) -
2584 if (needed > 0) {
2596 * needed to accommodate the reservation. Add the appropriate number
2602 needed += allocated;
2606 /* Free the needed pages to the hugetlb pool */
2608 if ((--needed) < 0)
2684 * needed, the value 1 is returned. The caller is then responsible for
2892 * only attempted if a new entry is needed. Therefore,
3564 * pages into surplus state as needed so the pool will shrink
5411 /* Leave a uffd-wp pte marker if needed */
5899 * properly when needed.
6165 * the vma lock, because it is needed to guard the