Lines Matching defs:clone

69 struct clone {  struct
87 struct dm_clone_metadata *cmd; argument
90 struct hash_table_bucket *ht;
92 atomic_t ios_in_flight;
94 wait_queue_head_t hydration_stopped;
96 mempool_t hydration_pool;
98 unsigned long last_commit_jiffies;
107 spinlock_t lock;
108 struct bio_list deferred_bios;
109 struct bio_list deferred_discard_bios;
110 struct bio_list deferred_flush_bios;
111 struct bio_list deferred_flush_completions;
137 enum clone_metadata_mode mode; argument
142 * dm-clone flags argument
153 static enum clone_metadata_mode get_clone_mode(struct clone *clone) in get_clone_mode()
158 static const char *clone_device_name(struct clone *clone) in clone_device_name()
163 static void __set_clone_mode(struct clone *clone, enum clone_metadata_mode new_mode) in __set_clone_mode()
197 static void __abort_transaction(struct clone *clone) in __abort_transaction()
211 static void __reload_in_core_bitset(struct clone *clone) in __reload_in_core_bitset()
226 static void __metadata_operation_failed(struct clone *clone, const char *op, int r) in __metadata_operation_failed()
245 static inline void wakeup_hydration_waiters(struct clone *clone) in wakeup_hydration_waiters()
250 static inline void wake_worker(struct clone *clone) in wake_worker()
260 static inline void remap_to_source(struct clone *clone, struct bio *bio) in remap_to_source()
265 static inline void remap_to_dest(struct clone *clone, struct bio *bio) in remap_to_dest()
270 static bool bio_triggers_commit(struct clone *clone, struct bio *bio) in bio_triggers_commit()
277 static inline sector_t region_to_sector(struct clone *clone, unsigned long region_nr) in region_to_sector()
283 static inline unsigned long bio_to_region(struct clone *clone, struct bio *bio) in bio_to_region()
289 static void bio_region_range(struct clone *clone, struct bio *bio, in bio_region_range()
297 static inline bool is_overwrite_bio(struct clone *clone, struct bio *bio) in is_overwrite_bio()
333 static void issue_bio(struct clone *clone, struct bio *bio) in issue_bio()
368 static void remap_and_issue(struct clone *clone, struct bio *bio) in remap_and_issue()
381 static void issue_deferred_bios(struct clone *clone, struct bio_list *bios) in issue_deferred_bios()
406 static void complete_overwrite_bio(struct clone *clone, struct bio *bio) in complete_overwrite_bio()
451 static void complete_discard_bio(struct clone *clone, struct bio *bio, bool success) in complete_discard_bio()
470 static void process_discard_bio(struct clone *clone, struct bio *bio) in process_discard_bio()
517 struct clone *clone; member
557 static int hash_table_init(struct clone *clone) in hash_table_init()
578 static void hash_table_exit(struct clone *clone) in hash_table_exit()
583 static struct hash_table_bucket *get_hash_table_bucket(struct clone *clone, in get_hash_table_bucket()
643 static struct dm_clone_region_hydration *alloc_hydration(struct clone *clone) in alloc_hydration()
685 struct clone *clone = hd->clone; in hydration_update_metadata() local
718 struct clone *clone = hd->clone; in hydration_complete() local
747 struct clone *clone = hd->clone; in hydration_kcopyd_callback() local
779 struct clone *clone = hd->clone; in hydration_copy() local
852 static void hydrate_bio_region(struct clone *clone, struct bio *bio) in hydrate_bio_region()
960 struct clone *clone = hd->clone; in __batch_hydration() local
995 static unsigned long __start_next_hydration(struct clone *clone, in __start_next_hydration()
1041 static void do_hydration(struct clone *clone) in do_hydration()
1100 static bool need_commit_due_to_time(struct clone *clone) in need_commit_due_to_time()
1109 static int commit_metadata(struct clone *clone) in commit_metadata()
1138 static void process_deferred_discards(struct clone *clone) in process_deferred_discards()
1177 static void process_deferred_bios(struct clone *clone) in process_deferred_bios()
1193 static void process_deferred_flush_bios(struct clone *clone) in process_deferred_flush_bios()
1236 struct clone *clone = container_of(work, typeof(*clone), worker); in do_worker() local
1263 struct clone *clone = container_of(to_delayed_work(work), struct clone, waker); in do_waker() local
1276 struct clone *clone = ti->private; in clone_map() local
1335 struct clone *clone = ti->private; in clone_endio() local
1342 static void emit_flags(struct clone *clone, char *result, unsigned int maxlen, in emit_flags()
1362 static void emit_core_args(struct clone *clone, char *result, in emit_core_args()
1392 struct clone *clone = ti->private; in clone_status() local
1469 struct clone *clone = container_of(cb, struct clone, callbacks); in clone_is_congested() local
1504 static int parse_feature_args(struct dm_arg_set *as, struct clone *clone) in parse_feature_args()
1542 static int parse_core_args(struct dm_arg_set *as, struct clone *clone) in parse_core_args()
1598 static int parse_region_size(struct clone *clone, struct dm_arg_set *as, char **error) in parse_region_size()
1644 static int parse_metadata_dev(struct clone *clone, struct dm_arg_set *as, char **error) in parse_metadata_dev()
1665 static int parse_dest_dev(struct clone *clone, struct dm_arg_set *as, char **error) in parse_dest_dev()
1687 static int parse_source_dev(struct clone *clone, struct dm_arg_set *as, char **error) in parse_source_dev()
1709 static int copy_ctr_args(struct clone *clone, int argc, const char **argv, char **error) in copy_ctr_args()
1741 struct clone *clone; in clone_ctr() local
1907 struct clone *clone = ti->private; in clone_dtr() local
1931 struct clone *clone = ti->private; in clone_postsuspend() local
1969 struct clone *clone = ti->private; in clone_resume() local
1986 static void disable_passdown_if_not_supported(struct clone *clone) in disable_passdown_if_not_supported()
2008 static void set_discard_limits(struct clone *clone, struct queue_limits *limits) in set_discard_limits()
2035 struct clone *clone = ti->private; in clone_io_hints() local
2056 struct clone *clone = ti->private; in clone_iterate_devices() local
2069 static void set_hydration_threshold(struct clone *clone, unsigned int nr_regions) in set_hydration_threshold()
2081 static void set_hydration_batch_size(struct clone *clone, unsigned int nr_regions) in set_hydration_batch_size()
2086 static void enable_hydration(struct clone *clone) in enable_hydration()
2092 static void disable_hydration(struct clone *clone) in disable_hydration()
2100 struct clone *clone = ti->private; in clone_message() local