Lines Matching defs:allocated
677 * Return: 0 if all pages were able to be allocated;
678 * -ENOMEM otherwise, the partially allocated pages would be freed and
683 unsigned int allocated;
685 for (allocated = 0; allocated < nr_pages;) {
686 unsigned int last = allocated;
688 allocated = alloc_pages_bulk_array(GFP_NOFS, nr_pages, page_array);
690 if (allocated == nr_pages)
694 * During this iteration, no page could be allocated, even
698 if (allocated == last) {
699 for (int i = 0; i < allocated; i++) {
1951 * Allowing existing tree block to be allocated for other trees.
1954 * Exiting tree blocks get allocated to log tree, bumps its
3252 /* One for when we allocated the page */
3518 * We could have already allocated an eb for this page and attached one