• Home
  • Raw
  • Download

Lines Matching refs:cc

2256 int f2fs_read_multi_pages(struct compress_ctx *cc, struct bio **bio_ret,  in f2fs_read_multi_pages()  argument
2261 struct inode *inode = cc->inode; in f2fs_read_multi_pages()
2264 unsigned int start_idx = cc->cluster_idx << cc->log_cluster_size; in f2fs_read_multi_pages()
2273 f2fs_bug_on(sbi, f2fs_cluster_is_empty(cc)); in f2fs_read_multi_pages()
2279 for (i = 0; i < cc->cluster_size; i++) { in f2fs_read_multi_pages()
2280 struct page *page = cc->rpages[i]; in f2fs_read_multi_pages()
2294 cc->rpages[i] = NULL; in f2fs_read_multi_pages()
2295 cc->nr_rpages--; in f2fs_read_multi_pages()
2299 if (f2fs_cluster_is_empty(cc)) in f2fs_read_multi_pages()
2320 for (i = 1; i < cc->cluster_size; i++) { in f2fs_read_multi_pages()
2334 cc->nr_cpages++; in f2fs_read_multi_pages()
2341 if (cc->nr_cpages == 0) { in f2fs_read_multi_pages()
2346 dic = f2fs_alloc_dic(cc); in f2fs_read_multi_pages()
2352 for (i = 0; i < cc->nr_cpages; i++) { in f2fs_read_multi_pages()
2412 for (i = 0; i < cc->cluster_size; i++) { in f2fs_read_multi_pages()
2413 if (cc->rpages[i]) { in f2fs_read_multi_pages()
2414 ClearPageUptodate(cc->rpages[i]); in f2fs_read_multi_pages()
2415 unlock_page(cc->rpages[i]); in f2fs_read_multi_pages()
2434 struct compress_ctx cc = { in f2fs_mpage_readpages() local
2468 if (!f2fs_cluster_can_merge_page(&cc, page->index)) { in f2fs_mpage_readpages()
2469 ret = f2fs_read_multi_pages(&cc, &bio, in f2fs_mpage_readpages()
2473 f2fs_destroy_compress_ctx(&cc, false); in f2fs_mpage_readpages()
2477 if (cc.cluster_idx == NULL_CLUSTER) { in f2fs_mpage_readpages()
2479 page->index >> cc.log_cluster_size) { in f2fs_mpage_readpages()
2488 page->index >> cc.log_cluster_size; in f2fs_mpage_readpages()
2494 ret = f2fs_init_compress_ctx(&cc); in f2fs_mpage_readpages()
2498 f2fs_compress_ctx_add_page(&cc, page); in f2fs_mpage_readpages()
2523 if (nr_pages == 1 && !f2fs_cluster_is_empty(&cc)) { in f2fs_mpage_readpages()
2524 ret = f2fs_read_multi_pages(&cc, &bio, in f2fs_mpage_readpages()
2528 f2fs_destroy_compress_ctx(&cc, false); in f2fs_mpage_readpages()
3047 struct compress_ctx cc = { in f2fs_write_cache_pages() local
3113 ret = f2fs_init_compress_ctx(&cc); in f2fs_write_cache_pages()
3119 if (!f2fs_cluster_can_merge_page(&cc, in f2fs_write_cache_pages()
3121 ret = f2fs_write_multi_pages(&cc, in f2fs_write_cache_pages()
3131 if (!f2fs_cluster_is_empty(&cc)) in f2fs_write_cache_pages()
3134 if (f2fs_all_cluster_page_ready(&cc, in f2fs_write_cache_pages()
3148 !f2fs_all_cluster_page_ready(&cc, in f2fs_write_cache_pages()
3191 f2fs_compress_ctx_add_page(&cc, page); in f2fs_write_cache_pages()
3242 if (f2fs_compressed_file(inode) && !f2fs_cluster_is_empty(&cc)) { in f2fs_write_cache_pages()
3243 ret = f2fs_write_multi_pages(&cc, &submitted, wbc, io_type); in f2fs_write_cache_pages()
3252 f2fs_destroy_compress_ctx(&cc, false); in f2fs_write_cache_pages()