Lines Matching refs:from_cblock
709 disk_super->cache_blocks = cpu_to_le32(from_cblock(cmd->cache_blocks)); in __commit_transaction()
901 r = dm_array_get_value(&cmd->info, cmd->root, from_cblock(b), &value); in block_clean_combined_dirty()
927 (unsigned long long) from_cblock(begin)); in blocks_are_clean_combined_dirty()
931 begin = to_cblock(from_cblock(begin) + 1); in blocks_are_clean_combined_dirty()
945 if (from_cblock(cmd->cache_blocks) == 0) in blocks_are_clean_separate_dirty()
950 from_cblock(cmd->cache_blocks), &cmd->dirty_cursor); in blocks_are_clean_separate_dirty()
956 r = dm_bitset_cursor_skip(&cmd->dirty_cursor, from_cblock(begin)); in blocks_are_clean_separate_dirty()
971 (unsigned long long) from_cblock(begin)); in blocks_are_clean_separate_dirty()
977 begin = to_cblock(from_cblock(begin) + 1); in blocks_are_clean_separate_dirty()
1063 if (from_cblock(new_cache_size) < from_cblock(cmd->cache_blocks)) { in dm_cache_resize()
1078 r = dm_array_resize(&cmd->info, cmd->root, from_cblock(cmd->cache_blocks), in dm_cache_resize()
1079 from_cblock(new_cache_size), in dm_cache_resize()
1086 from_cblock(cmd->cache_blocks), from_cblock(new_cache_size), in dm_cache_resize()
1236 r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock), in __remove()
1264 r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock), in __insert()
1368 (unsigned long long) from_cblock(to_cblock(cb))); in __load_mapping_v1()
1410 (unsigned long long) from_cblock(to_cblock(cb))); in __load_mapping_v2()
1426 if (from_cblock(cmd->cache_blocks) == 0) in __load_mappings()
1444 from_cblock(cmd->cache_blocks), in __load_mappings()
1470 if (cb >= (from_cblock(cmd->cache_blocks) - 1)) in __load_mappings()
1561 r = dm_array_get_value(&cmd->info, cmd->root, from_cblock(cblock), &value); in __dirty()
1574 r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock), in __dirty()
1610 if (nr_bits != from_cblock(cmd->cache_blocks)) { in __set_dirty_bits_v2()
1744 from_cblock(cmd->cache_blocks), in write_hints()