Lines Matching refs:from_cblock

703 	disk_super->cache_blocks = cpu_to_le32(from_cblock(cmd->cache_blocks));  in __commit_transaction()
893 r = dm_array_get_value(&cmd->info, cmd->root, from_cblock(b), &value); in block_clean_combined_dirty()
919 (unsigned long long) from_cblock(begin)); in blocks_are_clean_combined_dirty()
923 begin = to_cblock(from_cblock(begin) + 1); in blocks_are_clean_combined_dirty()
937 if (from_cblock(cmd->cache_blocks) == 0) in blocks_are_clean_separate_dirty()
942 from_cblock(cmd->cache_blocks), &cmd->dirty_cursor); in blocks_are_clean_separate_dirty()
948 r = dm_bitset_cursor_skip(&cmd->dirty_cursor, from_cblock(begin)); in blocks_are_clean_separate_dirty()
963 (unsigned long long) from_cblock(begin)); in blocks_are_clean_separate_dirty()
969 begin = to_cblock(from_cblock(begin) + 1); in blocks_are_clean_separate_dirty()
1055 if (from_cblock(new_cache_size) < from_cblock(cmd->cache_blocks)) { in dm_cache_resize()
1070 r = dm_array_resize(&cmd->info, cmd->root, from_cblock(cmd->cache_blocks), in dm_cache_resize()
1071 from_cblock(new_cache_size), in dm_cache_resize()
1078 from_cblock(cmd->cache_blocks), from_cblock(new_cache_size), in dm_cache_resize()
1228 r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock), in __remove()
1255 r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock), in __insert()
1359 (unsigned long long) from_cblock(to_cblock(cb))); in __load_mapping_v1()
1401 (unsigned long long) from_cblock(to_cblock(cb))); in __load_mapping_v2()
1417 if (from_cblock(cmd->cache_blocks) == 0) in __load_mappings()
1435 from_cblock(cmd->cache_blocks), in __load_mappings()
1461 if (cb >= (from_cblock(cmd->cache_blocks) - 1)) in __load_mappings()
1553 r = dm_array_get_value(&cmd->info, cmd->root, from_cblock(cblock), &value); in __dirty()
1566 r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock), in __dirty()
1601 if (nr_bits != from_cblock(cmd->cache_blocks)) { in __set_dirty_bits_v2()
1735 from_cblock(cmd->cache_blocks), in write_hints()