• Home
  • Raw
  • Download

Lines Matching defs:cmd

223 static int superblock_read_lock(struct dm_cache_metadata *cmd,  in superblock_read_lock()
230 static int superblock_lock_zero(struct dm_cache_metadata *cmd, in superblock_lock_zero()
237 static int superblock_lock(struct dm_cache_metadata *cmd, in superblock_lock()
275 static void __setup_mapping_info(struct dm_cache_metadata *cmd) in __setup_mapping_info()
292 static int __save_sm_root(struct dm_cache_metadata *cmd) in __save_sm_root()
305 static void __copy_sm_root(struct dm_cache_metadata *cmd, in __copy_sm_root()
313 static int __write_initial_superblock(struct dm_cache_metadata *cmd) in __write_initial_superblock()
368 static int __format_metadata(struct dm_cache_metadata *cmd) in __format_metadata()
409 struct dm_cache_metadata *cmd) in __check_incompat_features()
436 static int __open_metadata(struct dm_cache_metadata *cmd) in __open_metadata()
486 static int __open_or_format_metadata(struct dm_cache_metadata *cmd, in __open_or_format_metadata()
502 static int __create_persistent_data_objects(struct dm_cache_metadata *cmd, in __create_persistent_data_objects()
521 static void __destroy_persistent_data_objects(struct dm_cache_metadata *cmd) in __destroy_persistent_data_objects()
549 static void read_superblock_fields(struct dm_cache_metadata *cmd, in read_superblock_fields()
577 static int __begin_transaction_flags(struct dm_cache_metadata *cmd, in __begin_transaction_flags()
596 static int __begin_transaction(struct dm_cache_metadata *cmd) in __begin_transaction()
617 static int __commit_transaction(struct dm_cache_metadata *cmd, in __commit_transaction()
705 struct dm_cache_metadata *cmd; in metadata_open() local
747 struct dm_cache_metadata *cmd; in lookup() local
763 struct dm_cache_metadata *cmd, *cmd2; in lookup_or_open() local
789 static bool same_params(struct dm_cache_metadata *cmd, sector_t data_block_size) in same_params()
806 struct dm_cache_metadata *cmd = lookup_or_open(bdev, data_block_size, in dm_cache_metadata_open() local
817 void dm_cache_metadata_close(struct dm_cache_metadata *cmd) in dm_cache_metadata_close()
833 static int block_unmapped_or_clean(struct dm_cache_metadata *cmd, dm_cblock_t b, in block_unmapped_or_clean()
853 static int blocks_are_unmapped_or_clean(struct dm_cache_metadata *cmd, in blocks_are_unmapped_or_clean()
877 static bool cmd_write_lock(struct dm_cache_metadata *cmd) in cmd_write_lock()
887 #define WRITE_LOCK(cmd) \ argument
893 #define WRITE_LOCK_VOID(cmd) \ argument
899 #define WRITE_UNLOCK(cmd) \ argument
902 static bool cmd_read_lock(struct dm_cache_metadata *cmd) in cmd_read_lock()
912 #define READ_LOCK(cmd) \ argument
918 #define READ_LOCK_VOID(cmd) \ argument
924 #define READ_UNLOCK(cmd) \ argument
927 int dm_cache_resize(struct dm_cache_metadata *cmd, dm_cblock_t new_cache_size) in dm_cache_resize()
964 int dm_cache_discard_bitset_resize(struct dm_cache_metadata *cmd, in dm_cache_discard_bitset_resize()
987 static int __set_discard(struct dm_cache_metadata *cmd, dm_dblock_t b) in __set_discard()
993 static int __clear_discard(struct dm_cache_metadata *cmd, dm_dblock_t b) in __clear_discard()
999 static int __is_discarded(struct dm_cache_metadata *cmd, dm_dblock_t b, in __is_discarded()
1007 static int __discard(struct dm_cache_metadata *cmd, in __discard()
1020 int dm_cache_set_discard(struct dm_cache_metadata *cmd, in dm_cache_set_discard()
1032 static int __load_discards(struct dm_cache_metadata *cmd, in __load_discards()
1057 int dm_cache_load_discards(struct dm_cache_metadata *cmd, in dm_cache_load_discards()
1069 int dm_cache_size(struct dm_cache_metadata *cmd, dm_cblock_t *result) in dm_cache_size()
1078 static int __remove(struct dm_cache_metadata *cmd, dm_cblock_t cblock) in __remove()
1093 int dm_cache_remove_mapping(struct dm_cache_metadata *cmd, dm_cblock_t cblock) in dm_cache_remove_mapping()
1104 static int __insert(struct dm_cache_metadata *cmd, in __insert()
1120 int dm_cache_insert_mapping(struct dm_cache_metadata *cmd, in dm_cache_insert_mapping()
1136 struct dm_cache_metadata *cmd; member
1141 static bool policy_unchanged(struct dm_cache_metadata *cmd, in policy_unchanged()
1169 static bool hints_array_initialized(struct dm_cache_metadata *cmd) in hints_array_initialized()
1174 static bool hints_array_available(struct dm_cache_metadata *cmd, in hints_array_available()
1181 static int __load_mapping(struct dm_cache_metadata *cmd, in __load_mapping()
1217 static int __load_mappings(struct dm_cache_metadata *cmd, in __load_mappings()
1277 int dm_cache_load_mappings(struct dm_cache_metadata *cmd, in dm_cache_load_mappings()
1303 static int __dump_mappings(struct dm_cache_metadata *cmd) in __dump_mappings()
1308 void dm_cache_dump(struct dm_cache_metadata *cmd) in dm_cache_dump()
1315 int dm_cache_changed_this_transaction(struct dm_cache_metadata *cmd) in dm_cache_changed_this_transaction()
1326 static int __dirty(struct dm_cache_metadata *cmd, dm_cblock_t cblock, bool dirty) in __dirty()
1356 int dm_cache_set_dirty(struct dm_cache_metadata *cmd, in dm_cache_set_dirty()
1368 void dm_cache_metadata_get_stats(struct dm_cache_metadata *cmd, in dm_cache_metadata_get_stats()
1376 void dm_cache_metadata_set_stats(struct dm_cache_metadata *cmd, in dm_cache_metadata_set_stats()
1384 int dm_cache_commit(struct dm_cache_metadata *cmd, bool clean_shutdown) in dm_cache_commit()
1404 int dm_cache_get_free_metadata_block_count(struct dm_cache_metadata *cmd, in dm_cache_get_free_metadata_block_count()
1417 int dm_cache_get_metadata_dev_size(struct dm_cache_metadata *cmd, in dm_cache_get_metadata_dev_size()
1447 static int write_hints(struct dm_cache_metadata *cmd, struct dm_cache_policy *policy) in write_hints()
1477 int dm_cache_write_hints(struct dm_cache_metadata *cmd, struct dm_cache_policy *policy) in dm_cache_write_hints()
1488 int dm_cache_metadata_all_clean(struct dm_cache_metadata *cmd, bool *result) in dm_cache_metadata_all_clean()
1499 void dm_cache_metadata_set_read_only(struct dm_cache_metadata *cmd) in dm_cache_metadata_set_read_only()
1506 void dm_cache_metadata_set_read_write(struct dm_cache_metadata *cmd) in dm_cache_metadata_set_read_write()
1513 int dm_cache_metadata_set_needs_check(struct dm_cache_metadata *cmd) in dm_cache_metadata_set_needs_check()
1538 int dm_cache_metadata_needs_check(struct dm_cache_metadata *cmd, bool *result) in dm_cache_metadata_needs_check()
1547 int dm_cache_metadata_abort(struct dm_cache_metadata *cmd) in dm_cache_metadata_abort()