Lines Matching refs:nr_pages

68 	unsigned long nr_pages;  member
120 for (i = 0; i < cb->nr_pages; i++) { in check_compressed_csum()
193 for (index = 0; index < cb->nr_pages; index++) { in end_compressed_bio_read()
233 unsigned long nr_pages = end_index - index + 1; in end_compressed_writeback() local
240 while (nr_pages > 0) { in end_compressed_writeback()
243 nr_pages, ARRAY_SIZE(pages)), pages); in end_compressed_writeback()
245 nr_pages -= 1; in end_compressed_writeback()
255 nr_pages -= ret; in end_compressed_writeback()
307 for (index = 0; index < cb->nr_pages; index++) { in end_compressed_bio_write()
333 unsigned long nr_pages) in btrfs_submit_compressed_write() argument
360 cb->nr_pages = nr_pages; in btrfs_submit_compressed_write()
375 for (pg_index = 0; pg_index < cb->nr_pages; pg_index++) { in btrfs_submit_compressed_write()
421 bytes_left, cb->compressed_len, cb->nr_pages); in btrfs_submit_compressed_write()
454 unsigned long nr_pages = 0; in add_ra_bio_pages() local
541 nr_pages++; in add_ra_bio_pages()
576 unsigned long nr_pages; in btrfs_submit_compressed_read() local
624 nr_pages = DIV_ROUND_UP(compressed_len, PAGE_CACHE_SIZE); in btrfs_submit_compressed_read()
625 cb->compressed_pages = kcalloc(nr_pages, sizeof(struct page *), in btrfs_submit_compressed_read()
632 for (pg_index = 0; pg_index < nr_pages; pg_index++) { in btrfs_submit_compressed_read()
641 faili = nr_pages - 1; in btrfs_submit_compressed_read()
642 cb->nr_pages = nr_pages; in btrfs_submit_compressed_read()
661 for (pg_index = 0; pg_index < nr_pages; pg_index++) { in btrfs_submit_compressed_read()