Lines Matching defs:cmd

237 static int superblock_read_lock(struct dm_cache_metadata *cmd,  in superblock_read_lock()
244 static int superblock_lock_zero(struct dm_cache_metadata *cmd, in superblock_lock_zero()
251 static int superblock_lock(struct dm_cache_metadata *cmd, in superblock_lock()
289 static void __setup_mapping_info(struct dm_cache_metadata *cmd) in __setup_mapping_info()
306 static int __save_sm_root(struct dm_cache_metadata *cmd) in __save_sm_root()
319 static void __copy_sm_root(struct dm_cache_metadata *cmd, in __copy_sm_root()
327 static bool separate_dirty_bits(struct dm_cache_metadata *cmd) in separate_dirty_bits()
332 static int __write_initial_superblock(struct dm_cache_metadata *cmd) in __write_initial_superblock()
390 static int __format_metadata(struct dm_cache_metadata *cmd) in __format_metadata()
437 struct dm_cache_metadata *cmd) in __check_incompat_features()
465 static int __open_metadata(struct dm_cache_metadata *cmd) in __open_metadata()
516 static int __open_or_format_metadata(struct dm_cache_metadata *cmd, in __open_or_format_metadata()
532 static int __create_persistent_data_objects(struct dm_cache_metadata *cmd, in __create_persistent_data_objects()
554 static void __destroy_persistent_data_objects(struct dm_cache_metadata *cmd) in __destroy_persistent_data_objects()
582 static void read_superblock_fields(struct dm_cache_metadata *cmd, in read_superblock_fields()
614 static int __begin_transaction_flags(struct dm_cache_metadata *cmd, in __begin_transaction_flags()
633 static int __begin_transaction(struct dm_cache_metadata *cmd) in __begin_transaction()
654 static int __commit_transaction(struct dm_cache_metadata *cmd, in __commit_transaction()
753 struct dm_cache_metadata *cmd; in metadata_open() local
796 struct dm_cache_metadata *cmd; in lookup() local
813 struct dm_cache_metadata *cmd, *cmd2; in lookup_or_open() local
840 static bool same_params(struct dm_cache_metadata *cmd, sector_t data_block_size) in same_params()
858 struct dm_cache_metadata *cmd = lookup_or_open(bdev, data_block_size, may_format_device, in dm_cache_metadata_open() local
869 void dm_cache_metadata_close(struct dm_cache_metadata *cmd) in dm_cache_metadata_close()
885 static int block_clean_combined_dirty(struct dm_cache_metadata *cmd, dm_cblock_t b, in block_clean_combined_dirty()
903 static int blocks_are_clean_combined_dirty(struct dm_cache_metadata *cmd, in blocks_are_clean_combined_dirty()
929 static int blocks_are_clean_separate_dirty(struct dm_cache_metadata *cmd, in blocks_are_clean_separate_dirty()
986 static int blocks_are_unmapped_or_clean(struct dm_cache_metadata *cmd, in blocks_are_unmapped_or_clean()
996 static bool cmd_write_lock(struct dm_cache_metadata *cmd) in cmd_write_lock()
1006 #define WRITE_LOCK(cmd) \ argument
1012 #define WRITE_LOCK_VOID(cmd) \ argument
1018 #define WRITE_UNLOCK(cmd) \ argument
1021 static bool cmd_read_lock(struct dm_cache_metadata *cmd) in cmd_read_lock()
1031 #define READ_LOCK(cmd) \ argument
1037 #define READ_LOCK_VOID(cmd) \ argument
1043 #define READ_UNLOCK(cmd) \ argument
1046 int dm_cache_resize(struct dm_cache_metadata *cmd, dm_cblock_t new_cache_size) in dm_cache_resize()
1093 int dm_cache_discard_bitset_resize(struct dm_cache_metadata *cmd, in dm_cache_discard_bitset_resize()
1116 static int __set_discard(struct dm_cache_metadata *cmd, dm_dblock_t b) in __set_discard()
1122 static int __clear_discard(struct dm_cache_metadata *cmd, dm_dblock_t b) in __clear_discard()
1128 static int __discard(struct dm_cache_metadata *cmd, in __discard()
1141 int dm_cache_set_discard(struct dm_cache_metadata *cmd, in dm_cache_set_discard()
1153 static int __load_discards(struct dm_cache_metadata *cmd, in __load_discards()
1201 int dm_cache_load_discards(struct dm_cache_metadata *cmd, in dm_cache_load_discards()
1213 int dm_cache_size(struct dm_cache_metadata *cmd, dm_cblock_t *result) in dm_cache_size()
1222 static int __remove(struct dm_cache_metadata *cmd, dm_cblock_t cblock) in __remove()
1237 int dm_cache_remove_mapping(struct dm_cache_metadata *cmd, dm_cblock_t cblock) in dm_cache_remove_mapping()
1248 static int __insert(struct dm_cache_metadata *cmd, in __insert()
1264 int dm_cache_insert_mapping(struct dm_cache_metadata *cmd, in dm_cache_insert_mapping()
1280 struct dm_cache_metadata *cmd; member
1285 static bool policy_unchanged(struct dm_cache_metadata *cmd, in policy_unchanged()
1313 static bool hints_array_initialized(struct dm_cache_metadata *cmd) in hints_array_initialized()
1318 static bool hints_array_available(struct dm_cache_metadata *cmd, in hints_array_available()
1325 static int __load_mapping_v1(struct dm_cache_metadata *cmd, in __load_mapping_v1()
1366 static int __load_mapping_v2(struct dm_cache_metadata *cmd, in __load_mapping_v2()
1408 static int __load_mappings(struct dm_cache_metadata *cmd, in __load_mappings()
1497 int dm_cache_load_mappings(struct dm_cache_metadata *cmd, in dm_cache_load_mappings()
1523 static int __dump_mappings(struct dm_cache_metadata *cmd) in __dump_mappings()
1528 void dm_cache_dump(struct dm_cache_metadata *cmd) in dm_cache_dump()
1535 int dm_cache_changed_this_transaction(struct dm_cache_metadata *cmd) in dm_cache_changed_this_transaction()
1546 static int __dirty(struct dm_cache_metadata *cmd, dm_cblock_t cblock, bool dirty) in __dirty()
1576 static int __set_dirty_bits_v1(struct dm_cache_metadata *cmd, unsigned nr_bits, unsigned long *bits) in __set_dirty_bits_v1()
1596 static int __set_dirty_bits_v2(struct dm_cache_metadata *cmd, unsigned nr_bits, unsigned long *bits) in __set_dirty_bits_v2()
1614 int dm_cache_set_dirty_bits(struct dm_cache_metadata *cmd, in dm_cache_set_dirty_bits()
1630 void dm_cache_metadata_get_stats(struct dm_cache_metadata *cmd, in dm_cache_metadata_get_stats()
1638 void dm_cache_metadata_set_stats(struct dm_cache_metadata *cmd, in dm_cache_metadata_set_stats()
1646 int dm_cache_commit(struct dm_cache_metadata *cmd, bool clean_shutdown) in dm_cache_commit()
1666 int dm_cache_get_free_metadata_block_count(struct dm_cache_metadata *cmd, in dm_cache_get_free_metadata_block_count()
1679 int dm_cache_get_metadata_dev_size(struct dm_cache_metadata *cmd, in dm_cache_get_metadata_dev_size()
1709 static int write_hints(struct dm_cache_metadata *cmd, struct dm_cache_policy *policy) in write_hints()
1739 int dm_cache_write_hints(struct dm_cache_metadata *cmd, struct dm_cache_policy *policy) in dm_cache_write_hints()
1750 int dm_cache_metadata_all_clean(struct dm_cache_metadata *cmd, bool *result) in dm_cache_metadata_all_clean()
1761 void dm_cache_metadata_set_read_only(struct dm_cache_metadata *cmd) in dm_cache_metadata_set_read_only()
1768 void dm_cache_metadata_set_read_write(struct dm_cache_metadata *cmd) in dm_cache_metadata_set_read_write()
1775 int dm_cache_metadata_set_needs_check(struct dm_cache_metadata *cmd) in dm_cache_metadata_set_needs_check()
1800 int dm_cache_metadata_needs_check(struct dm_cache_metadata *cmd, bool *result) in dm_cache_metadata_needs_check()
1809 int dm_cache_metadata_abort(struct dm_cache_metadata *cmd) in dm_cache_metadata_abort()