Lines Matching refs:cic

1257 	struct compress_io_ctx *cic;  in f2fs_write_compressed_pages()  local
1301 cic = f2fs_kmem_cache_alloc(cic_entry_slab, GFP_F2FS_ZERO, false, sbi); in f2fs_write_compressed_pages()
1302 if (!cic) in f2fs_write_compressed_pages()
1305 cic->magic = F2FS_COMPRESSED_PAGE_MAGIC; in f2fs_write_compressed_pages()
1306 cic->inode = inode; in f2fs_write_compressed_pages()
1307 atomic_set(&cic->pending_pages, cc->valid_nr_cpages); in f2fs_write_compressed_pages()
1308 cic->rpages = page_array_alloc(cc->inode, cc->cluster_size); in f2fs_write_compressed_pages()
1309 if (!cic->rpages) in f2fs_write_compressed_pages()
1312 cic->nr_rpages = cc->cluster_size; in f2fs_write_compressed_pages()
1316 cc->rpages[i + 1]->index, cic); in f2fs_write_compressed_pages()
1337 cic->rpages[i] = cc->rpages[i]; in f2fs_write_compressed_pages()
1407 page_array_free(cc->inode, cic->rpages, cc->cluster_size); in f2fs_write_compressed_pages()
1412 kmem_cache_free(cic_entry_slab, cic); in f2fs_write_compressed_pages()
1433 struct compress_io_ctx *cic = in f2fs_compress_write_end_io() local
1440 mapping_set_error(cic->inode->i_mapping, -EIO); in f2fs_compress_write_end_io()
1446 if (atomic_dec_return(&cic->pending_pages)) in f2fs_compress_write_end_io()
1449 for (i = 0; i < cic->nr_rpages; i++) { in f2fs_compress_write_end_io()
1450 WARN_ON(!cic->rpages[i]); in f2fs_compress_write_end_io()
1451 clear_page_private_gcing(cic->rpages[i]); in f2fs_compress_write_end_io()
1452 end_page_writeback(cic->rpages[i]); in f2fs_compress_write_end_io()
1455 page_array_free(cic->inode, cic->rpages, cic->nr_rpages); in f2fs_compress_write_end_io()
1456 kmem_cache_free(cic_entry_slab, cic); in f2fs_compress_write_end_io()