Lines Matching defs:clone
69 struct clone { struct
86 struct dm_clone_metadata *cmd; argument
92 struct bio flush_bio;
95 struct hash_table_bucket *ht;
97 atomic_t ios_in_flight;
99 wait_queue_head_t hydration_stopped;
101 mempool_t hydration_pool;
103 unsigned long last_commit_jiffies;
112 spinlock_t lock;
113 struct bio_list deferred_bios;
114 struct bio_list deferred_discard_bios;
115 struct bio_list deferred_flush_bios;
116 struct bio_list deferred_flush_completions;
142 enum clone_metadata_mode mode; argument
147 * dm-clone flags argument
158 static enum clone_metadata_mode get_clone_mode(struct clone *clone) in get_clone_mode()
163 static const char *clone_device_name(struct clone *clone) in clone_device_name()
168 static void __set_clone_mode(struct clone *clone, enum clone_metadata_mode new_mode) in __set_clone_mode()
202 static void __abort_transaction(struct clone *clone) in __abort_transaction()
216 static void __reload_in_core_bitset(struct clone *clone) in __reload_in_core_bitset()
231 static void __metadata_operation_failed(struct clone *clone, const char *op, int r) in __metadata_operation_failed()
250 static inline void wakeup_hydration_waiters(struct clone *clone) in wakeup_hydration_waiters()
255 static inline void wake_worker(struct clone *clone) in wake_worker()
265 static inline void remap_to_source(struct clone *clone, struct bio *bio) in remap_to_source()
270 static inline void remap_to_dest(struct clone *clone, struct bio *bio) in remap_to_dest()
275 static bool bio_triggers_commit(struct clone *clone, struct bio *bio) in bio_triggers_commit()
282 static inline sector_t region_to_sector(struct clone *clone, unsigned long region_nr) in region_to_sector()
288 static inline unsigned long bio_to_region(struct clone *clone, struct bio *bio) in bio_to_region()
294 static void bio_region_range(struct clone *clone, struct bio *bio, in bio_region_range()
309 static inline bool is_overwrite_bio(struct clone *clone, struct bio *bio) in is_overwrite_bio()
345 static void issue_bio(struct clone *clone, struct bio *bio) in issue_bio()
378 static void remap_and_issue(struct clone *clone, struct bio *bio) in remap_and_issue()
391 static void issue_deferred_bios(struct clone *clone, struct bio_list *bios) in issue_deferred_bios()
416 static void complete_overwrite_bio(struct clone *clone, struct bio *bio) in complete_overwrite_bio()
461 static void complete_discard_bio(struct clone *clone, struct bio *bio, bool success) in complete_discard_bio()
480 static void process_discard_bio(struct clone *clone, struct bio *bio) in process_discard_bio()
536 struct clone *clone; member
582 static int hash_table_init(struct clone *clone) in hash_table_init()
603 static void hash_table_exit(struct clone *clone) in hash_table_exit()
608 static struct hash_table_bucket *get_hash_table_bucket(struct clone *clone, in get_hash_table_bucket()
668 static struct dm_clone_region_hydration *alloc_hydration(struct clone *clone) in alloc_hydration()
710 struct clone *clone = hd->clone; in hydration_update_metadata() local
743 struct clone *clone = hd->clone; in hydration_complete() local
772 struct clone *clone = hd->clone; in hydration_kcopyd_callback() local
804 struct clone *clone = hd->clone; in hydration_copy() local
880 static void hydrate_bio_region(struct clone *clone, struct bio *bio) in hydrate_bio_region()
987 struct clone *clone = hd->clone; in __batch_hydration() local
1022 static unsigned long __start_next_hydration(struct clone *clone, in __start_next_hydration()
1067 static void do_hydration(struct clone *clone) in do_hydration()
1126 static bool need_commit_due_to_time(struct clone *clone) in need_commit_due_to_time()
1135 static int commit_metadata(struct clone *clone, bool *dest_dev_flushed) in commit_metadata()
1185 static void process_deferred_discards(struct clone *clone) in process_deferred_discards()
1223 static void process_deferred_bios(struct clone *clone) in process_deferred_bios()
1238 static void process_deferred_flush_bios(struct clone *clone) in process_deferred_flush_bios()
1290 struct clone *clone = container_of(work, typeof(*clone), worker); in do_worker() local
1317 struct clone *clone = container_of(to_delayed_work(work), struct clone, waker); in do_waker() local
1330 struct clone *clone = ti->private; in clone_map() local
1389 struct clone *clone = ti->private; in clone_endio() local
1396 static void emit_flags(struct clone *clone, char *result, unsigned int maxlen, in emit_flags()
1416 static void emit_core_args(struct clone *clone, char *result, in emit_core_args()
1446 struct clone *clone = ti->private; in clone_status() local
1546 static int parse_feature_args(struct dm_arg_set *as, struct clone *clone) in parse_feature_args()
1584 static int parse_core_args(struct dm_arg_set *as, struct clone *clone) in parse_core_args()
1640 static int parse_region_size(struct clone *clone, struct dm_arg_set *as, char **error) in parse_region_size()
1686 static int parse_metadata_dev(struct clone *clone, struct dm_arg_set *as, char **error) in parse_metadata_dev()
1707 static int parse_dest_dev(struct clone *clone, struct dm_arg_set *as, char **error) in parse_dest_dev()
1729 static int parse_source_dev(struct clone *clone, struct dm_arg_set *as, char **error) in parse_source_dev()
1751 static int copy_ctr_args(struct clone *clone, int argc, const char **argv, char **error) in copy_ctr_args()
1784 struct clone *clone; in clone_ctr() local
1958 struct clone *clone = ti->private; in clone_dtr() local
1983 struct clone *clone = ti->private; in clone_postsuspend() local
2021 struct clone *clone = ti->private; in clone_resume() local
2038 static void disable_passdown_if_not_supported(struct clone *clone) in disable_passdown_if_not_supported()
2060 static void set_discard_limits(struct clone *clone, struct queue_limits *limits) in set_discard_limits()
2087 struct clone *clone = ti->private; in clone_io_hints() local
2108 struct clone *clone = ti->private; in clone_iterate_devices() local
2121 static void set_hydration_threshold(struct clone *clone, unsigned int nr_regions) in set_hydration_threshold()
2133 static void set_hydration_batch_size(struct clone *clone, unsigned int nr_regions) in set_hydration_batch_size()
2138 static void enable_hydration(struct clone *clone) in enable_hydration()
2144 static void disable_hydration(struct clone *clone) in disable_hydration()
2152 struct clone *clone = ti->private; in clone_message() local