Lines Matching refs:pg_index
383 int pg_index = 0; in btrfs_submit_compressed_write() local
417 for (pg_index = 0; pg_index < cb->nr_pages; pg_index++) { in btrfs_submit_compressed_write()
420 page = compressed_pages[pg_index]; in btrfs_submit_compressed_write()
501 unsigned long pg_index; in add_ra_bio_pages() local
524 pg_index = last_offset >> PAGE_SHIFT; in add_ra_bio_pages()
526 if (pg_index > end_index) in add_ra_bio_pages()
529 page = xa_load(&mapping->i_pages, pg_index); in add_ra_bio_pages()
542 if (add_to_page_cache_lru(page, mapping, pg_index, GFP_NOFS)) { in add_ra_bio_pages()
622 unsigned long pg_index; in btrfs_submit_compressed_read() local
674 for (pg_index = 0; pg_index < nr_pages; pg_index++) { in btrfs_submit_compressed_read()
675 cb->compressed_pages[pg_index] = alloc_page(GFP_NOFS | in btrfs_submit_compressed_read()
677 if (!cb->compressed_pages[pg_index]) { in btrfs_submit_compressed_read()
678 faili = pg_index - 1; in btrfs_submit_compressed_read()
697 for (pg_index = 0; pg_index < nr_pages; pg_index++) { in btrfs_submit_compressed_read()
700 page = cb->compressed_pages[pg_index]; in btrfs_submit_compressed_read()