Lines Matching defs:cmd
273 static inline int superblock_read_lock(struct dm_clone_metadata *cmd, in superblock_read_lock()
279 static inline int superblock_write_lock_zero(struct dm_clone_metadata *cmd, in superblock_write_lock_zero()
285 static int __copy_sm_root(struct dm_clone_metadata *cmd) in __copy_sm_root()
298 static void __prepare_superblock(struct dm_clone_metadata *cmd, in __prepare_superblock()
318 static int __open_metadata(struct dm_clone_metadata *cmd) in __open_metadata()
360 static int __format_metadata(struct dm_clone_metadata *cmd) in __format_metadata()
423 static int __open_or_format_metadata(struct dm_clone_metadata *cmd, bool may_format_device) in __open_or_format_metadata()
438 static int __create_persistent_data_structures(struct dm_clone_metadata *cmd, in __create_persistent_data_structures()
459 static void __destroy_persistent_data_structures(struct dm_clone_metadata *cmd) in __destroy_persistent_data_structures()
492 static int dirty_map_init(struct dm_clone_metadata *cmd) in dirty_map_init()
511 static void dirty_map_exit(struct dm_clone_metadata *cmd) in dirty_map_exit()
517 static int __load_bitset_in_core(struct dm_clone_metadata *cmd) in __load_bitset_in_core()
557 struct dm_clone_metadata *cmd; in dm_clone_metadata_open() local
615 void dm_clone_metadata_close(struct dm_clone_metadata *cmd) in dm_clone_metadata_close()
625 bool dm_clone_is_hydration_done(struct dm_clone_metadata *cmd) in dm_clone_is_hydration_done()
630 bool dm_clone_is_region_hydrated(struct dm_clone_metadata *cmd, unsigned long region_nr) in dm_clone_is_region_hydrated()
635 bool dm_clone_is_range_hydrated(struct dm_clone_metadata *cmd, in dm_clone_is_range_hydrated()
648 unsigned int dm_clone_nr_of_hydrated_regions(struct dm_clone_metadata *cmd) in dm_clone_nr_of_hydrated_regions()
653 unsigned long dm_clone_find_next_unhydrated_region(struct dm_clone_metadata *cmd, in dm_clone_find_next_unhydrated_region()
659 static int __update_metadata_word(struct dm_clone_metadata *cmd, in __update_metadata_word()
683 static int __metadata_commit(struct dm_clone_metadata *cmd) in __metadata_commit()
737 static int __flush_dmap(struct dm_clone_metadata *cmd, struct dirty_map *dmap) in __flush_dmap()
771 int dm_clone_metadata_pre_commit(struct dm_clone_metadata *cmd) in dm_clone_metadata_pre_commit()
811 int dm_clone_metadata_commit(struct dm_clone_metadata *cmd) in dm_clone_metadata_commit()
836 int dm_clone_set_region_hydrated(struct dm_clone_metadata *cmd, unsigned long region_nr) in dm_clone_set_region_hydrated()
870 int dm_clone_cond_set_range(struct dm_clone_metadata *cmd, unsigned long start, in dm_clone_cond_set_range()
917 int dm_clone_reload_in_core_bitset(struct dm_clone_metadata *cmd) in dm_clone_reload_in_core_bitset()
933 bool dm_clone_changed_this_transaction(struct dm_clone_metadata *cmd) in dm_clone_changed_this_transaction()
945 int dm_clone_metadata_abort(struct dm_clone_metadata *cmd) in dm_clone_metadata_abort()
967 void dm_clone_metadata_set_read_only(struct dm_clone_metadata *cmd) in dm_clone_metadata_set_read_only()
981 void dm_clone_metadata_set_read_write(struct dm_clone_metadata *cmd) in dm_clone_metadata_set_read_write()
995 int dm_clone_get_free_metadata_block_count(struct dm_clone_metadata *cmd, in dm_clone_get_free_metadata_block_count()
1010 int dm_clone_get_metadata_dev_size(struct dm_clone_metadata *cmd, in dm_clone_get_metadata_dev_size()