Lines Matching refs:cluster_size
63 return index & (cc->cluster_size - 1); in offset_in_cluster()
116 f2fs_drop_rpages(cc, cc->cluster_size, false); in f2fs_put_rpages()
129 for (i = 0; i < cc->cluster_size; i++) { in f2fs_put_rpages_wbc()
148 cc->rpages = page_array_alloc(cc->inode, cc->cluster_size); in f2fs_init_compress_ctx()
154 page_array_free(cc->inode, cc->rpages, cc->cluster_size); in f2fs_destroy_compress_ctx()
628 cc->cluster_size, fi->i_compress_algorithm); in f2fs_compress_pages()
649 cc->rbuf = f2fs_vmap(cc->rpages, cc->cluster_size); in f2fs_compress_pages()
665 max_len = PAGE_SIZE * (cc->cluster_size - 1) - COMPRESS_HEADER_SIZE; in f2fs_compress_pages()
690 vm_unmap_ram(cc->rbuf, cc->cluster_size); in f2fs_compress_pages()
709 vm_unmap_ram(cc->rbuf, cc->cluster_size); in f2fs_compress_pages()
741 dic->cluster_size, fi->i_compress_algorithm); in f2fs_decompress_cluster()
834 return cc->cluster_size == cc->nr_rpages; in f2fs_cluster_is_full()
854 if (uptodate && (pgidx % cc->cluster_size)) in f2fs_all_cluster_page_ready()
857 if (nr_pages - index < cc->cluster_size) in f2fs_all_cluster_page_ready()
860 for (; i < cc->cluster_size; i++) { in f2fs_all_cluster_page_ready()
876 for (i = 0; i < cc->cluster_size; i++) { in cluster_has_invalid_data()
892 unsigned int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in f2fs_sanity_check_cluster() local
902 if (dn->ofs_in_node % cluster_size) { in f2fs_sanity_check_cluster()
907 for (i = 1, count = 1; i < cluster_size; i++, count++) { in f2fs_sanity_check_cluster()
928 f2fs_bug_on(F2FS_I_SB(dn->inode), count != cluster_size && in f2fs_sanity_check_cluster()
945 unsigned int cluster_size = F2FS_I(inode)->i_cluster_size; in __f2fs_get_cluster_blocks() local
948 for (i = 0, count = 0; i < cluster_size; i++) { in __f2fs_get_cluster_blocks()
1042 for (i = 0; i < cc->cluster_size; i++) { in set_cluster_writeback()
1052 for (i = 0; i < cc->cluster_size; i++) in set_cluster_dirty()
1080 for (i = 0; i < cc->cluster_size; i++) { in prepare_compress_overwrite()
1097 ret = f2fs_read_multi_pages(cc, &bio, cc->cluster_size, in prepare_compress_overwrite()
1111 for (i = 0; i < cc->cluster_size; i++) { in prepare_compress_overwrite()
1135 return cc->cluster_size; in prepare_compress_overwrite()
1152 .cluster_size = F2FS_I(inode)->i_cluster_size, in f2fs_prepare_compress_overwrite()
1168 .cluster_size = F2FS_I(inode)->i_cluster_size, in f2fs_compress_write_end()
1211 int cluster_size = F2FS_I(inode)->i_cluster_size; in f2fs_truncate_partial_cluster() local
1214 for (i = cluster_size - 1; i >= 0; i--) { in f2fs_truncate_partial_cluster()
1259 unsigned int last_index = cc->cluster_size - 1; in f2fs_write_compressed_pages()
1287 for (i = 0; i < cc->cluster_size; i++) { in f2fs_write_compressed_pages()
1308 cic->rpages = page_array_alloc(cc->inode, cc->cluster_size); in f2fs_write_compressed_pages()
1312 cic->nr_rpages = cc->cluster_size; in f2fs_write_compressed_pages()
1336 for (i = 0; i < cc->cluster_size; i++) in f2fs_write_compressed_pages()
1339 for (i = 0; i < cc->cluster_size; i++, dn.ofs_in_node++) { in f2fs_write_compressed_pages()
1407 page_array_free(cc->inode, cic->rpages, cc->cluster_size); in f2fs_write_compressed_pages()
1471 for (i = 0; i < cc->cluster_size; i++) { in f2fs_write_raw_pages()
1486 for (i = 0; i < cc->cluster_size; i++) { in f2fs_write_raw_pages()
1554 add_compr_block_stat(cc->inode, cc->cluster_size); in f2fs_write_multi_pages()
1593 dic->tpages = page_array_alloc(dic->inode, dic->cluster_size); in f2fs_prepare_decomp_mem()
1597 for (i = 0; i < dic->cluster_size; i++) { in f2fs_prepare_decomp_mem()
1606 dic->rbuf = f2fs_vmap(dic->tpages, dic->cluster_size); in f2fs_prepare_decomp_mem()
1636 vm_unmap_ram(dic->rbuf, dic->cluster_size); in f2fs_release_decomp_mem()
1653 dic->rpages = page_array_alloc(cc->inode, cc->cluster_size); in f2fs_alloc_dic()
1663 dic->cluster_size = cc->cluster_size; in f2fs_alloc_dic()
1670 for (i = 0; i < dic->cluster_size; i++) in f2fs_alloc_dic()
1672 dic->nr_rpages = cc->cluster_size; in f2fs_alloc_dic()
1708 for (i = 0; i < dic->cluster_size; i++) { in f2fs_free_dic()
1715 page_array_free(dic->inode, dic->tpages, dic->cluster_size); in f2fs_free_dic()
1759 for (i = 0; i < dic->cluster_size; i++) { in f2fs_verify_cluster()
1797 for (i = 0; i < dic->cluster_size; i++) { in f2fs_decompress_end_io()