Lines Matching refs:page_idx
3629 pgoff_t page_idx = 0, last_idx; in f2fs_release_compress_blocks() local
3679 while (page_idx < last_idx) { in f2fs_release_compress_blocks()
3686 ret = f2fs_get_dnode_of_data(&dn, page_idx, LOOKUP_NODE); in f2fs_release_compress_blocks()
3690 page_idx = f2fs_get_next_page_offset(&dn, in f2fs_release_compress_blocks()
3691 page_idx); in f2fs_release_compress_blocks()
3699 count = min(end_offset - dn.ofs_in_node, last_idx - page_idx); in f2fs_release_compress_blocks()
3711 page_idx += count; in f2fs_release_compress_blocks()
3825 pgoff_t page_idx = 0, last_idx; in f2fs_reserve_compress_blocks() local
3857 while (page_idx < last_idx) { in f2fs_reserve_compress_blocks()
3864 ret = f2fs_get_dnode_of_data(&dn, page_idx, LOOKUP_NODE); in f2fs_reserve_compress_blocks()
3868 page_idx = f2fs_get_next_page_offset(&dn, in f2fs_reserve_compress_blocks()
3869 page_idx); in f2fs_reserve_compress_blocks()
3877 count = min(end_offset - dn.ofs_in_node, last_idx - page_idx); in f2fs_reserve_compress_blocks()
3889 page_idx += count; in f2fs_reserve_compress_blocks()
4208 static int redirty_blocks(struct inode *inode, pgoff_t page_idx, int len) in redirty_blocks() argument
4210 DEFINE_READAHEAD(ractl, NULL, NULL, inode->i_mapping, page_idx); in redirty_blocks()
4213 pgoff_t redirty_idx = page_idx; in redirty_blocks()
4218 for (i = 0; i < len; i++, page_idx++) { in redirty_blocks()
4219 page = read_cache_page(mapping, page_idx, NULL, NULL); in redirty_blocks()
4249 pgoff_t page_idx = 0, last_idx, cluster_idx; in f2fs_ioc_decompress_file() local
4288 page_idx = cluster_idx << fi->i_log_cluster_size; in f2fs_ioc_decompress_file()
4290 if (!f2fs_is_compressed_cluster(inode, page_idx)) in f2fs_ioc_decompress_file()
4293 ret = redirty_blocks(inode, page_idx, fi->i_cluster_size); in f2fs_ioc_decompress_file()
4330 pgoff_t page_idx = 0, last_idx, cluster_idx; in f2fs_ioc_compress_file() local
4368 page_idx = cluster_idx << fi->i_log_cluster_size; in f2fs_ioc_compress_file()
4370 if (f2fs_is_sparse_cluster(inode, page_idx)) in f2fs_ioc_compress_file()
4373 ret = redirty_blocks(inode, page_idx, fi->i_cluster_size); in f2fs_ioc_compress_file()