Lines Matching defs:cmd
239 static int superblock_read_lock(struct dm_cache_metadata *cmd, in superblock_read_lock()
246 static int superblock_lock_zero(struct dm_cache_metadata *cmd, in superblock_lock_zero()
253 static int superblock_lock(struct dm_cache_metadata *cmd, in superblock_lock()
291 static void __setup_mapping_info(struct dm_cache_metadata *cmd) in __setup_mapping_info()
308 static int __save_sm_root(struct dm_cache_metadata *cmd) in __save_sm_root()
321 static void __copy_sm_root(struct dm_cache_metadata *cmd, in __copy_sm_root()
329 static bool separate_dirty_bits(struct dm_cache_metadata *cmd) in separate_dirty_bits()
334 static int __write_initial_superblock(struct dm_cache_metadata *cmd) in __write_initial_superblock()
392 static int __format_metadata(struct dm_cache_metadata *cmd) in __format_metadata()
439 struct dm_cache_metadata *cmd) in __check_incompat_features()
467 static int __open_metadata(struct dm_cache_metadata *cmd) in __open_metadata()
518 static int __open_or_format_metadata(struct dm_cache_metadata *cmd, in __open_or_format_metadata()
534 static int __create_persistent_data_objects(struct dm_cache_metadata *cmd, in __create_persistent_data_objects()
557 static void __destroy_persistent_data_objects(struct dm_cache_metadata *cmd, in __destroy_persistent_data_objects()
588 static void read_superblock_fields(struct dm_cache_metadata *cmd, in read_superblock_fields()
620 static int __begin_transaction_flags(struct dm_cache_metadata *cmd, in __begin_transaction_flags()
639 static int __begin_transaction(struct dm_cache_metadata *cmd) in __begin_transaction()
660 static int __commit_transaction(struct dm_cache_metadata *cmd, in __commit_transaction()
761 struct dm_cache_metadata *cmd; in metadata_open() local
804 struct dm_cache_metadata *cmd; in lookup() local
821 struct dm_cache_metadata *cmd, *cmd2; in lookup_or_open() local
848 static bool same_params(struct dm_cache_metadata *cmd, sector_t data_block_size) in same_params()
866 struct dm_cache_metadata *cmd = lookup_or_open(bdev, data_block_size, may_format_device, in dm_cache_metadata_open() local
877 void dm_cache_metadata_close(struct dm_cache_metadata *cmd) in dm_cache_metadata_close()
893 static int block_clean_combined_dirty(struct dm_cache_metadata *cmd, dm_cblock_t b, in block_clean_combined_dirty()
911 static int blocks_are_clean_combined_dirty(struct dm_cache_metadata *cmd, in blocks_are_clean_combined_dirty()
937 static int blocks_are_clean_separate_dirty(struct dm_cache_metadata *cmd, in blocks_are_clean_separate_dirty()
994 static int blocks_are_unmapped_or_clean(struct dm_cache_metadata *cmd, in blocks_are_unmapped_or_clean()
1004 static bool cmd_write_lock(struct dm_cache_metadata *cmd) in cmd_write_lock()
1014 #define WRITE_LOCK(cmd) \ argument
1020 #define WRITE_LOCK_VOID(cmd) \ argument
1026 #define WRITE_UNLOCK(cmd) \ argument
1029 static bool cmd_read_lock(struct dm_cache_metadata *cmd) in cmd_read_lock()
1039 #define READ_LOCK(cmd) \ argument
1045 #define READ_LOCK_VOID(cmd) \ argument
1051 #define READ_UNLOCK(cmd) \ argument
1054 int dm_cache_resize(struct dm_cache_metadata *cmd, dm_cblock_t new_cache_size) in dm_cache_resize()
1101 int dm_cache_discard_bitset_resize(struct dm_cache_metadata *cmd, in dm_cache_discard_bitset_resize()
1124 static int __set_discard(struct dm_cache_metadata *cmd, dm_dblock_t b) in __set_discard()
1130 static int __clear_discard(struct dm_cache_metadata *cmd, dm_dblock_t b) in __clear_discard()
1136 static int __discard(struct dm_cache_metadata *cmd, in __discard()
1149 int dm_cache_set_discard(struct dm_cache_metadata *cmd, in dm_cache_set_discard()
1161 static int __load_discards(struct dm_cache_metadata *cmd, in __load_discards()
1209 int dm_cache_load_discards(struct dm_cache_metadata *cmd, in dm_cache_load_discards()
1221 int dm_cache_size(struct dm_cache_metadata *cmd, dm_cblock_t *result) in dm_cache_size()
1230 static int __remove(struct dm_cache_metadata *cmd, dm_cblock_t cblock) in __remove()
1245 int dm_cache_remove_mapping(struct dm_cache_metadata *cmd, dm_cblock_t cblock) in dm_cache_remove_mapping()
1256 static int __insert(struct dm_cache_metadata *cmd, in __insert()
1273 int dm_cache_insert_mapping(struct dm_cache_metadata *cmd, in dm_cache_insert_mapping()
1289 struct dm_cache_metadata *cmd; member
1294 static bool policy_unchanged(struct dm_cache_metadata *cmd, in policy_unchanged()
1322 static bool hints_array_initialized(struct dm_cache_metadata *cmd) in hints_array_initialized()
1327 static bool hints_array_available(struct dm_cache_metadata *cmd, in hints_array_available()
1334 static int __load_mapping_v1(struct dm_cache_metadata *cmd, in __load_mapping_v1()
1375 static int __load_mapping_v2(struct dm_cache_metadata *cmd, in __load_mapping_v2()
1417 static int __load_mappings(struct dm_cache_metadata *cmd, in __load_mappings()
1506 int dm_cache_load_mappings(struct dm_cache_metadata *cmd, in dm_cache_load_mappings()
1531 static int __dump_mappings(struct dm_cache_metadata *cmd) in __dump_mappings()
1536 void dm_cache_dump(struct dm_cache_metadata *cmd) in dm_cache_dump()
1543 int dm_cache_changed_this_transaction(struct dm_cache_metadata *cmd) in dm_cache_changed_this_transaction()
1554 static int __dirty(struct dm_cache_metadata *cmd, dm_cblock_t cblock, bool dirty) in __dirty()
1584 static int __set_dirty_bits_v1(struct dm_cache_metadata *cmd, unsigned int nr_bits, unsigned long *… in __set_dirty_bits_v1()
1605 static int __set_dirty_bits_v2(struct dm_cache_metadata *cmd, unsigned int nr_bits, unsigned long *… in __set_dirty_bits_v2()
1623 int dm_cache_set_dirty_bits(struct dm_cache_metadata *cmd, in dm_cache_set_dirty_bits()
1639 void dm_cache_metadata_get_stats(struct dm_cache_metadata *cmd, in dm_cache_metadata_get_stats()
1647 void dm_cache_metadata_set_stats(struct dm_cache_metadata *cmd, in dm_cache_metadata_set_stats()
1655 int dm_cache_commit(struct dm_cache_metadata *cmd, bool clean_shutdown) in dm_cache_commit()
1675 int dm_cache_get_free_metadata_block_count(struct dm_cache_metadata *cmd, in dm_cache_get_free_metadata_block_count()
1688 int dm_cache_get_metadata_dev_size(struct dm_cache_metadata *cmd, in dm_cache_get_metadata_dev_size()
1718 static int write_hints(struct dm_cache_metadata *cmd, struct dm_cache_policy *policy) in write_hints()
1748 int dm_cache_write_hints(struct dm_cache_metadata *cmd, struct dm_cache_policy *policy) in dm_cache_write_hints()
1759 int dm_cache_metadata_all_clean(struct dm_cache_metadata *cmd, bool *result) in dm_cache_metadata_all_clean()
1770 void dm_cache_metadata_set_read_only(struct dm_cache_metadata *cmd) in dm_cache_metadata_set_read_only()
1777 void dm_cache_metadata_set_read_write(struct dm_cache_metadata *cmd) in dm_cache_metadata_set_read_write()
1784 int dm_cache_metadata_set_needs_check(struct dm_cache_metadata *cmd) in dm_cache_metadata_set_needs_check()
1809 int dm_cache_metadata_needs_check(struct dm_cache_metadata *cmd, bool *result) in dm_cache_metadata_needs_check()
1818 int dm_cache_metadata_abort(struct dm_cache_metadata *cmd) in dm_cache_metadata_abort()