Lines Matching refs:nr_pages
86 for (i = 0; i < cb->nr_pages; i++) { in check_compressed_csum()
169 for (index = 0; index < cb->nr_pages; index++) { in end_compressed_bio_read()
210 unsigned long nr_pages = end_index - index + 1; in end_compressed_writeback() local
217 while (nr_pages > 0) { in end_compressed_writeback()
220 nr_pages, ARRAY_SIZE(pages)), pages); in end_compressed_writeback()
222 nr_pages -= 1; in end_compressed_writeback()
232 nr_pages -= ret; in end_compressed_writeback()
284 for (index = 0; index < cb->nr_pages; index++) { in end_compressed_bio_write()
310 unsigned long nr_pages, in btrfs_submit_compressed_write() argument
337 cb->nr_pages = nr_pages; in btrfs_submit_compressed_write()
349 for (pg_index = 0; pg_index < cb->nr_pages; pg_index++) { in btrfs_submit_compressed_write()
391 bytes_left, cb->compressed_len, cb->nr_pages); in btrfs_submit_compressed_write()
432 unsigned long nr_pages = 0; in add_ra_bio_pages() local
517 nr_pages++; in add_ra_bio_pages()
550 unsigned long nr_pages; in btrfs_submit_compressed_read() local
598 nr_pages = DIV_ROUND_UP(compressed_len, PAGE_SIZE); in btrfs_submit_compressed_read()
599 cb->compressed_pages = kcalloc(nr_pages, sizeof(struct page *), in btrfs_submit_compressed_read()
606 for (pg_index = 0; pg_index < nr_pages; pg_index++) { in btrfs_submit_compressed_read()
615 faili = nr_pages - 1; in btrfs_submit_compressed_read()
616 cb->nr_pages = nr_pages; in btrfs_submit_compressed_read()
629 for (pg_index = 0; pg_index < nr_pages; pg_index++) { in btrfs_submit_compressed_read()