Lines Matching refs:pg_index
340 int pg_index = 0; in btrfs_submit_compressed_write() local
375 for (pg_index = 0; pg_index < cb->nr_pages; pg_index++) { in btrfs_submit_compressed_write()
376 page = compressed_pages[pg_index]; in btrfs_submit_compressed_write()
449 unsigned long pg_index; in add_ra_bio_pages() local
473 pg_index = last_offset >> PAGE_CACHE_SHIFT; in add_ra_bio_pages()
475 if (pg_index > end_index) in add_ra_bio_pages()
479 page = radix_tree_lookup(&mapping->page_tree, pg_index); in add_ra_bio_pages()
493 if (add_to_page_cache_lru(page, mapping, pg_index, in add_ra_bio_pages()
577 unsigned long pg_index; in btrfs_submit_compressed_read() local
632 for (pg_index = 0; pg_index < nr_pages; pg_index++) { in btrfs_submit_compressed_read()
633 cb->compressed_pages[pg_index] = alloc_page(GFP_NOFS | in btrfs_submit_compressed_read()
635 if (!cb->compressed_pages[pg_index]) { in btrfs_submit_compressed_read()
636 faili = pg_index - 1; in btrfs_submit_compressed_read()
661 for (pg_index = 0; pg_index < nr_pages; pg_index++) { in btrfs_submit_compressed_read()
662 page = cb->compressed_pages[pg_index]; in btrfs_submit_compressed_read()
980 unsigned long *pg_index, in btrfs_decompress_buf2page() argument
989 struct page *page_out = bvec[*pg_index].bv_page; in btrfs_decompress_buf2page()
1030 (*pg_index)++; in btrfs_decompress_buf2page()
1031 if (*pg_index >= vcnt) in btrfs_decompress_buf2page()
1034 page_out = bvec[*pg_index].bv_page; in btrfs_decompress_buf2page()
1070 unsigned long pg_index, in btrfs_clear_biovec_end() argument
1073 while (pg_index < vcnt) { in btrfs_clear_biovec_end()
1074 struct page *page = bvec[pg_index].bv_page; in btrfs_clear_biovec_end()
1075 unsigned long off = bvec[pg_index].bv_offset; in btrfs_clear_biovec_end()
1076 unsigned long len = bvec[pg_index].bv_len; in btrfs_clear_biovec_end()
1088 pg_index++; in btrfs_clear_biovec_end()