• Home
  • Raw
  • Download

Lines Matching refs:nr_cpages

154 	cc->nr_cpages = 0;  in f2fs_destroy_compress_ctx()
634 cc->nr_cpages = DIV_ROUND_UP(max_len, PAGE_SIZE); in f2fs_compress_pages()
636 cc->cpages = page_array_alloc(cc->inode, cc->nr_cpages); in f2fs_compress_pages()
642 for (i = 0; i < cc->nr_cpages; i++) { in f2fs_compress_pages()
656 cc->cbuf = f2fs_vmap(cc->cpages, cc->nr_cpages); in f2fs_compress_pages()
697 vm_unmap_ram(cc->cbuf, cc->nr_cpages); in f2fs_compress_pages()
700 for (i = 0; i < cc->nr_cpages; i++) { in f2fs_compress_pages()
712 page_array_free(cc->inode, cc->cpages, cc->nr_cpages); in f2fs_compress_pages()
714 cc->nr_cpages = new_nr_cpages; in f2fs_compress_pages()
721 vm_unmap_ram(cc->cbuf, cc->nr_cpages); in f2fs_compress_pages()
725 for (i = 0; i < cc->nr_cpages; i++) { in f2fs_compress_pages()
729 page_array_free(cc->inode, cc->cpages, cc->nr_cpages); in f2fs_compress_pages()
771 if (dic->clen > PAGE_SIZE * dic->nr_cpages - COMPRESS_HEADER_SIZE) { in f2fs_decompress_cluster()
1206 atomic_set(&cic->pending_pages, cc->nr_cpages); in f2fs_write_compressed_pages()
1213 for (i = 0; i < cc->nr_cpages; i++) { in f2fs_write_compressed_pages()
1258 if (i > cc->nr_cpages) { in f2fs_write_compressed_pages()
1283 f2fs_i_compr_blocks_update(inode, cc->nr_cpages, true); in f2fs_write_compressed_pages()
1284 add_compr_block_stat(inode, cc->nr_cpages); in f2fs_write_compressed_pages()
1302 page_array_free(cc->inode, cc->cpages, cc->nr_cpages); in f2fs_write_compressed_pages()
1322 for (i = 0; i < cc->nr_cpages; i++) { in f2fs_write_compressed_pages()
1328 page_array_free(cc->inode, cc->cpages, cc->nr_cpages); in f2fs_write_compressed_pages()
1506 dic->cbuf = f2fs_vmap(dic->cpages, dic->nr_cpages); in f2fs_prepare_decomp_mem()
1533 vm_unmap_ram(dic->cbuf, dic->nr_cpages); in f2fs_release_decomp_mem()
1560 atomic_set(&dic->remaining_pages, cc->nr_cpages); in f2fs_alloc_dic()
1564 dic->nr_cpages = cc->nr_cpages; in f2fs_alloc_dic()
1573 dic->cpages = page_array_alloc(dic->inode, dic->nr_cpages); in f2fs_alloc_dic()
1579 for (i = 0; i < dic->nr_cpages; i++) { in f2fs_alloc_dic()
1623 for (i = 0; i < dic->nr_cpages; i++) { in f2fs_free_dic()
1628 page_array_free(dic->inode, dic->cpages, dic->nr_cpages); in f2fs_free_dic()