Lines Matching refs:cic
1051 struct compress_io_ctx *cic, int submitted) in cancel_cluster_writeback() argument
1058 while (atomic_read(&cic->pending_pages) != in cancel_cluster_writeback()
1283 struct compress_io_ctx *cic; in f2fs_write_compressed_pages() local
1327 cic = f2fs_kmem_cache_alloc(cic_entry_slab, GFP_F2FS_ZERO, false, sbi); in f2fs_write_compressed_pages()
1328 if (!cic) in f2fs_write_compressed_pages()
1331 cic->magic = F2FS_COMPRESSED_PAGE_MAGIC; in f2fs_write_compressed_pages()
1332 cic->inode = inode; in f2fs_write_compressed_pages()
1333 atomic_set(&cic->pending_pages, cc->valid_nr_cpages); in f2fs_write_compressed_pages()
1334 cic->rpages = page_array_alloc(cc->inode, cc->cluster_size); in f2fs_write_compressed_pages()
1335 if (!cic->rpages) in f2fs_write_compressed_pages()
1338 cic->nr_rpages = cc->cluster_size; in f2fs_write_compressed_pages()
1342 cc->rpages[i + 1]->index, cic); in f2fs_write_compressed_pages()
1363 cic->rpages[i] = cc->rpages[i]; in f2fs_write_compressed_pages()
1404 cancel_cluster_writeback(cc, cic, i); in f2fs_write_compressed_pages()
1442 page_array_free(cc->inode, cic->rpages, cc->cluster_size); in f2fs_write_compressed_pages()
1450 kmem_cache_free(cic_entry_slab, cic); in f2fs_write_compressed_pages()
1471 struct compress_io_ctx *cic = in f2fs_compress_write_end_io() local
1478 mapping_set_error(cic->inode->i_mapping, -EIO); in f2fs_compress_write_end_io()
1484 if (atomic_dec_return(&cic->pending_pages)) in f2fs_compress_write_end_io()
1487 for (i = 0; i < cic->nr_rpages; i++) { in f2fs_compress_write_end_io()
1488 WARN_ON(!cic->rpages[i]); in f2fs_compress_write_end_io()
1489 clear_page_private_gcing(cic->rpages[i]); in f2fs_compress_write_end_io()
1490 end_page_writeback(cic->rpages[i]); in f2fs_compress_write_end_io()
1493 page_array_free(cic->inode, cic->rpages, cic->nr_rpages); in f2fs_compress_write_end_io()
1494 kmem_cache_free(cic_entry_slab, cic); in f2fs_compress_write_end_io()