Lines Matching refs:nr_pages
93 for (i = 0; i < cb->nr_pages; i++) { in check_compressed_csum()
176 for (index = 0; index < cb->nr_pages; index++) { in end_compressed_bio_read()
217 unsigned long nr_pages = end_index - index + 1; in end_compressed_writeback() local
224 while (nr_pages > 0) { in end_compressed_writeback()
227 nr_pages, ARRAY_SIZE(pages)), pages); in end_compressed_writeback()
229 nr_pages -= 1; in end_compressed_writeback()
239 nr_pages -= ret; in end_compressed_writeback()
287 for (index = 0; index < cb->nr_pages; index++) { in end_compressed_bio_write()
313 unsigned long nr_pages, in btrfs_submit_compressed_write() argument
340 cb->nr_pages = nr_pages; in btrfs_submit_compressed_write()
353 for (pg_index = 0; pg_index < cb->nr_pages; pg_index++) { in btrfs_submit_compressed_write()
397 bytes_left, cb->compressed_len, cb->nr_pages); in btrfs_submit_compressed_write()
438 unsigned long nr_pages = 0; in add_ra_bio_pages() local
521 nr_pages++; in add_ra_bio_pages()
553 unsigned long nr_pages; in btrfs_submit_compressed_read() local
601 nr_pages = DIV_ROUND_UP(compressed_len, PAGE_SIZE); in btrfs_submit_compressed_read()
602 cb->compressed_pages = kcalloc(nr_pages, sizeof(struct page *), in btrfs_submit_compressed_read()
609 for (pg_index = 0; pg_index < nr_pages; pg_index++) { in btrfs_submit_compressed_read()
618 faili = nr_pages - 1; in btrfs_submit_compressed_read()
619 cb->nr_pages = nr_pages; in btrfs_submit_compressed_read()
633 for (pg_index = 0; pg_index < nr_pages; pg_index++) { in btrfs_submit_compressed_read()