Lines Matching refs:dm_pool_metadata
145 struct dm_pool_metadata { struct
230 struct dm_pool_metadata *pmd; argument
413 static inline void pmd_write_lock_in_core(struct dm_pool_metadata *pmd) in pmd_write_lock_in_core()
419 static inline void pmd_write_lock(struct dm_pool_metadata *pmd) in pmd_write_lock()
426 static inline void pmd_write_unlock(struct dm_pool_metadata *pmd) in pmd_write_unlock()
434 static int superblock_lock_zero(struct dm_pool_metadata *pmd, in superblock_lock_zero()
441 static int superblock_lock(struct dm_pool_metadata *pmd, in superblock_lock()
477 static void __setup_btree_details(struct dm_pool_metadata *pmd) in __setup_btree_details()
515 static int save_sm_roots(struct dm_pool_metadata *pmd) in save_sm_roots()
535 static void copy_sm_roots(struct dm_pool_metadata *pmd, in copy_sm_roots()
547 static int __write_initial_superblock(struct dm_pool_metadata *pmd) in __write_initial_superblock()
593 static int __format_metadata(struct dm_pool_metadata *pmd) in __format_metadata()
648 struct dm_pool_metadata *pmd) in __check_incompat_features()
675 static int __open_metadata(struct dm_pool_metadata *pmd) in __open_metadata()
743 static int __open_or_format_metadata(struct dm_pool_metadata *pmd, bool format_device) in __open_or_format_metadata()
757 static int __create_persistent_data_objects(struct dm_pool_metadata *pmd, bool format_device) in __create_persistent_data_objects()
779 static void __destroy_persistent_data_objects(struct dm_pool_metadata *pmd) in __destroy_persistent_data_objects()
788 static int __begin_transaction(struct dm_pool_metadata *pmd) in __begin_transaction()
815 static int __write_changed_details(struct dm_pool_metadata *pmd) in __write_changed_details()
850 static int __commit_transaction(struct dm_pool_metadata *pmd) in __commit_transaction()
905 static void __set_metadata_reserve(struct dm_pool_metadata *pmd) in __set_metadata_reserve()
919 struct dm_pool_metadata *dm_pool_metadata_open(struct block_device *bdev, in dm_pool_metadata_open()
924 struct dm_pool_metadata *pmd; in dm_pool_metadata_open()
960 int dm_pool_metadata_close(struct dm_pool_metadata *pmd) in dm_pool_metadata_close()
1003 static int __open_device(struct dm_pool_metadata *pmd, in __open_device()
1071 static int __create_thin(struct dm_pool_metadata *pmd, in __create_thin()
1114 int dm_pool_create_thin(struct dm_pool_metadata *pmd, dm_thin_id dev) in dm_pool_create_thin()
1126 static int __set_snapshot_details(struct dm_pool_metadata *pmd, in __set_snapshot_details()
1147 static int __create_snap(struct dm_pool_metadata *pmd, in __create_snap()
1202 int dm_pool_create_snap(struct dm_pool_metadata *pmd, in dm_pool_create_snap()
1216 static int __delete_device(struct dm_pool_metadata *pmd, dm_thin_id dev) in __delete_device()
1246 int dm_pool_delete_thin_device(struct dm_pool_metadata *pmd, in dm_pool_delete_thin_device()
1259 int dm_pool_set_metadata_transaction_id(struct dm_pool_metadata *pmd, in dm_pool_set_metadata_transaction_id()
1284 int dm_pool_get_metadata_transaction_id(struct dm_pool_metadata *pmd, in dm_pool_get_metadata_transaction_id()
1299 static int __reserve_metadata_snap(struct dm_pool_metadata *pmd) in __reserve_metadata_snap()
1369 int dm_pool_reserve_metadata_snap(struct dm_pool_metadata *pmd) in dm_pool_reserve_metadata_snap()
1381 static int __release_metadata_snap(struct dm_pool_metadata *pmd) in __release_metadata_snap()
1417 int dm_pool_release_metadata_snap(struct dm_pool_metadata *pmd) in dm_pool_release_metadata_snap()
1429 static int __get_metadata_snap(struct dm_pool_metadata *pmd, in __get_metadata_snap()
1449 int dm_pool_get_metadata_snap(struct dm_pool_metadata *pmd, in dm_pool_get_metadata_snap()
1462 int dm_pool_open_thin_device(struct dm_pool_metadata *pmd, dm_thin_id dev, in dm_pool_open_thin_device()
1518 struct dm_pool_metadata *pmd = td->pmd; in __find_block()
1538 struct dm_pool_metadata *pmd = td->pmd; in dm_thin_find_block()
1558 struct dm_pool_metadata *pmd = td->pmd; in __find_next_mapped_block()
1620 struct dm_pool_metadata *pmd = td->pmd; in dm_thin_find_mapped_range()
1637 struct dm_pool_metadata *pmd = td->pmd; in __insert()
1672 struct dm_pool_metadata *pmd = td->pmd; in __remove_range()
1740 int dm_pool_block_is_shared(struct dm_pool_metadata *pmd, dm_block_t b, bool *result) in dm_pool_block_is_shared()
1754 int dm_pool_inc_data_range(struct dm_pool_metadata *pmd, dm_block_t b, dm_block_t e) in dm_pool_inc_data_range()
1765 int dm_pool_dec_data_range(struct dm_pool_metadata *pmd, dm_block_t b, dm_block_t e) in dm_pool_dec_data_range()
1787 bool dm_pool_changed_this_transaction(struct dm_pool_metadata *pmd) in dm_pool_changed_this_transaction()
1815 int dm_pool_alloc_data_block(struct dm_pool_metadata *pmd, dm_block_t *result) in dm_pool_alloc_data_block()
1827 int dm_pool_commit_metadata(struct dm_pool_metadata *pmd) in dm_pool_commit_metadata()
1852 static void __set_abort_with_changes_flags(struct dm_pool_metadata *pmd) in __set_abort_with_changes_flags()
1860 int dm_pool_abort_metadata(struct dm_pool_metadata *pmd) in dm_pool_abort_metadata()
1880 int dm_pool_get_free_block_count(struct dm_pool_metadata *pmd, dm_block_t *result) in dm_pool_get_free_block_count()
1892 int dm_pool_get_free_metadata_block_count(struct dm_pool_metadata *pmd, in dm_pool_get_free_metadata_block_count()
1912 int dm_pool_get_metadata_dev_size(struct dm_pool_metadata *pmd, in dm_pool_get_metadata_dev_size()
1925 int dm_pool_get_data_dev_size(struct dm_pool_metadata *pmd, dm_block_t *result) in dm_pool_get_data_dev_size()
1940 struct dm_pool_metadata *pmd = td->pmd; in dm_thin_get_mapped_count()
1957 struct dm_pool_metadata *pmd = td->pmd; in __highest_block()
1972 struct dm_pool_metadata *pmd = td->pmd; in dm_thin_get_highest_mapped_block()
2002 int dm_pool_resize_data_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_data_dev()
2014 int dm_pool_resize_metadata_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_metadata_dev()
2029 void dm_pool_metadata_read_only(struct dm_pool_metadata *pmd) in dm_pool_metadata_read_only()
2036 void dm_pool_metadata_read_write(struct dm_pool_metadata *pmd) in dm_pool_metadata_read_write()
2043 int dm_pool_register_metadata_threshold(struct dm_pool_metadata *pmd, in dm_pool_register_metadata_threshold()
2060 void dm_pool_register_pre_commit_callback(struct dm_pool_metadata *pmd, in dm_pool_register_pre_commit_callback()
2070 int dm_pool_metadata_set_needs_check(struct dm_pool_metadata *pmd) in dm_pool_metadata_set_needs_check()
2097 bool dm_pool_metadata_needs_check(struct dm_pool_metadata *pmd) in dm_pool_metadata_needs_check()
2108 void dm_pool_issue_prefetches(struct dm_pool_metadata *pmd) in dm_pool_issue_prefetches()