Lines Matching defs:clone

69 struct clone {  struct
86 struct dm_clone_metadata *cmd; argument
89 struct hash_table_bucket *ht;
91 atomic_t ios_in_flight;
93 wait_queue_head_t hydration_stopped;
95 mempool_t hydration_pool;
97 unsigned long last_commit_jiffies;
106 spinlock_t lock;
107 struct bio_list deferred_bios;
108 struct bio_list deferred_discard_bios;
109 struct bio_list deferred_flush_bios;
110 struct bio_list deferred_flush_completions;
136 enum clone_metadata_mode mode; argument
141 * dm-clone flags argument
152 static enum clone_metadata_mode get_clone_mode(struct clone *clone) in get_clone_mode()
157 static const char *clone_device_name(struct clone *clone) in clone_device_name()
162 static void __set_clone_mode(struct clone *clone, enum clone_metadata_mode new_mode) in __set_clone_mode()
196 static void __abort_transaction(struct clone *clone) in __abort_transaction()
210 static void __reload_in_core_bitset(struct clone *clone) in __reload_in_core_bitset()
225 static void __metadata_operation_failed(struct clone *clone, const char *op, int r) in __metadata_operation_failed()
244 static inline void wakeup_hydration_waiters(struct clone *clone) in wakeup_hydration_waiters()
249 static inline void wake_worker(struct clone *clone) in wake_worker()
259 static inline void remap_to_source(struct clone *clone, struct bio *bio) in remap_to_source()
264 static inline void remap_to_dest(struct clone *clone, struct bio *bio) in remap_to_dest()
269 static bool bio_triggers_commit(struct clone *clone, struct bio *bio) in bio_triggers_commit()
276 static inline sector_t region_to_sector(struct clone *clone, unsigned long region_nr) in region_to_sector()
282 static inline unsigned long bio_to_region(struct clone *clone, struct bio *bio) in bio_to_region()
288 static void bio_region_range(struct clone *clone, struct bio *bio, in bio_region_range()
303 static inline bool is_overwrite_bio(struct clone *clone, struct bio *bio) in is_overwrite_bio()
339 static void issue_bio(struct clone *clone, struct bio *bio) in issue_bio()
372 static void remap_and_issue(struct clone *clone, struct bio *bio) in remap_and_issue()
385 static void issue_deferred_bios(struct clone *clone, struct bio_list *bios) in issue_deferred_bios()
410 static void complete_overwrite_bio(struct clone *clone, struct bio *bio) in complete_overwrite_bio()
455 static void complete_discard_bio(struct clone *clone, struct bio *bio, bool success) in complete_discard_bio()
474 static void process_discard_bio(struct clone *clone, struct bio *bio) in process_discard_bio()
530 struct clone *clone; member
576 static int hash_table_init(struct clone *clone) in hash_table_init()
597 static void hash_table_exit(struct clone *clone) in hash_table_exit()
602 static struct hash_table_bucket *get_hash_table_bucket(struct clone *clone, in get_hash_table_bucket()
662 static struct dm_clone_region_hydration *alloc_hydration(struct clone *clone) in alloc_hydration()
704 struct clone *clone = hd->clone; in hydration_update_metadata() local
737 struct clone *clone = hd->clone; in hydration_complete() local
766 struct clone *clone = hd->clone; in hydration_kcopyd_callback() local
798 struct clone *clone = hd->clone; in hydration_copy() local
874 static void hydrate_bio_region(struct clone *clone, struct bio *bio) in hydrate_bio_region()
981 struct clone *clone = hd->clone; in __batch_hydration() local
1016 static unsigned long __start_next_hydration(struct clone *clone, in __start_next_hydration()
1061 static void do_hydration(struct clone *clone) in do_hydration()
1120 static bool need_commit_due_to_time(struct clone *clone) in need_commit_due_to_time()
1129 static int commit_metadata(struct clone *clone, bool *dest_dev_flushed) in commit_metadata()
1175 static void process_deferred_discards(struct clone *clone) in process_deferred_discards()
1213 static void process_deferred_bios(struct clone *clone) in process_deferred_bios()
1228 static void process_deferred_flush_bios(struct clone *clone) in process_deferred_flush_bios()
1280 struct clone *clone = container_of(work, typeof(*clone), worker); in do_worker() local
1307 struct clone *clone = container_of(to_delayed_work(work), struct clone, waker); in do_waker() local
1320 struct clone *clone = ti->private; in clone_map() local
1379 struct clone *clone = ti->private; in clone_endio() local
1386 static void emit_flags(struct clone *clone, char *result, unsigned int maxlen, in emit_flags()
1406 static void emit_core_args(struct clone *clone, char *result, in emit_core_args()
1436 struct clone *clone = ti->private; in clone_status() local
1541 static int parse_feature_args(struct dm_arg_set *as, struct clone *clone) in parse_feature_args()
1579 static int parse_core_args(struct dm_arg_set *as, struct clone *clone) in parse_core_args()
1635 static int parse_region_size(struct clone *clone, struct dm_arg_set *as, char **error) in parse_region_size()
1681 static int parse_metadata_dev(struct clone *clone, struct dm_arg_set *as, char **error) in parse_metadata_dev()
1701 static int parse_dest_dev(struct clone *clone, struct dm_arg_set *as, char **error) in parse_dest_dev()
1723 static int parse_source_dev(struct clone *clone, struct dm_arg_set *as, char **error) in parse_source_dev()
1745 static int copy_ctr_args(struct clone *clone, int argc, const char **argv, char **error) in copy_ctr_args()
1778 struct clone *clone; in clone_ctr() local
1951 struct clone *clone = ti->private; in clone_dtr() local
1976 struct clone *clone = ti->private; in clone_postsuspend() local
2014 struct clone *clone = ti->private; in clone_resume() local
2024 static void disable_passdown_if_not_supported(struct clone *clone) in disable_passdown_if_not_supported()
2045 static void set_discard_limits(struct clone *clone, struct queue_limits *limits) in set_discard_limits()
2072 struct clone *clone = ti->private; in clone_io_hints() local
2093 struct clone *clone = ti->private; in clone_iterate_devices() local
2106 static void set_hydration_threshold(struct clone *clone, unsigned int nr_regions) in set_hydration_threshold()
2118 static void set_hydration_batch_size(struct clone *clone, unsigned int nr_regions) in set_hydration_batch_size()
2123 static void enable_hydration(struct clone *clone) in enable_hydration()
2129 static void disable_hydration(struct clone *clone) in disable_hydration()
2137 struct clone *clone = ti->private; in clone_message() local