Lines Matching defs:num_pages
1512 unsigned int num_pages;
1516 num_pages = (block_ctx->len + (u64)PAGE_SIZE - 1) >>
1519 while (num_pages > 0) {
1520 num_pages--;
1521 if (block_ctx->datav[num_pages])
1522 block_ctx->datav[num_pages] = NULL;
1523 if (block_ctx->pagev[num_pages]) {
1524 __free_page(block_ctx->pagev[num_pages]);
1525 block_ctx->pagev[num_pages] = NULL;
1539 unsigned int num_pages;
1554 num_pages = (block_ctx->len + (u64)PAGE_SIZE - 1) >>
1557 block_ctx->mem_to_free = kcalloc(num_pages, size, GFP_NOFS);
1561 block_ctx->pagev = (struct page **)(block_ctx->datav + num_pages);
1562 ret = btrfs_alloc_page_array(num_pages, block_ctx->pagev);
1567 for (i = 0; i < num_pages;) {
1571 bio = bio_alloc(block_ctx->dev->bdev, num_pages - i,
1575 for (j = i; j < num_pages; j++) {
1595 for (i = 0; i < num_pages; i++)
1654 char **datav, unsigned int num_pages)
1662 if (num_pages * PAGE_SIZE < state->metablock_size)
1664 num_pages = state->metablock_size >> PAGE_SHIFT;
1673 for (i = 0; i < num_pages; i++) {
1689 unsigned int num_pages,
1705 if (num_pages == 0)
1710 num_pages));
1721 if (num_pages * PAGE_SIZE <
1737 if (num_pages * PAGE_SIZE <
1772 if (num_pages * PAGE_SIZE <
2034 num_pages -= processed_len >> PAGE_SHIFT;