Lines Matching defs:pool
215 struct pool { struct
217 struct dm_target *ti; /* Only set if a pool target is bound */ argument
219 struct mapped_device *pool_md; argument
221 struct dm_pool_metadata *pmd; argument
227 struct pool_features pf; argument
228 bool low_water_triggered:1; /* A dm event has been sent */
229 bool suspended:1;
253 mempool_t *mapping_pool; argument
267 static enum pool_mode get_pool_mode(struct pool *pool); argument
275 struct pool *pool; member
295 struct pool *pool; member
320 static void wake_worker(struct pool *pool) in wake_worker()
327 static int bio_detain(struct pool *pool, struct dm_cell_key *key, struct bio *bio, in bio_detain()
350 static void cell_release(struct pool *pool, in cell_release()
358 static void cell_visit_release(struct pool *pool, in cell_visit_release()
367 static void cell_release_no_holder(struct pool *pool, in cell_release_no_holder()
375 static void cell_error_with_code(struct pool *pool, in cell_error_with_code()
382 static void cell_error(struct pool *pool, struct dm_bio_prison_cell *cell) in cell_error()
387 static void cell_success(struct pool *pool, struct dm_bio_prison_cell *cell) in cell_success()
392 static void cell_requeue(struct pool *pool, struct dm_bio_prison_cell *cell) in cell_requeue()
413 static void __pool_table_insert(struct pool *pool) in __pool_table_insert()
419 static void __pool_table_remove(struct pool *pool) in __pool_table_remove()
427 struct pool *pool = NULL, *tmp; in __pool_table_lookup() local
443 struct pool *pool = NULL, *tmp; in __pool_table_lookup_metadata_dev() local
497 struct pool *pool = tc->pool; in requeue_deferred_cells() local
528 static void error_retry_list(struct pool *pool) in error_retry_list()
545 static bool block_size_is_power_of_two(struct pool *pool) in block_size_is_power_of_two()
552 struct pool *pool = tc->pool; in get_bio_block() local
565 struct pool *pool = tc->pool; in remap() local
589 static void inc_all_io_entry(struct pool *pool, struct bio *bio) in inc_all_io_entry()
602 struct pool *pool = tc->pool; in issue() local
678 struct pool *pool = m->tc->pool; in __complete_mapping_preparation() local
689 struct pool *pool = m->tc->pool; in complete_mapping_preparation() local
729 struct pool *pool = tc->pool; in cell_defer_no_holder() local
809 struct pool *pool = tc->pool; in process_prepared_mapping() local
902 static void process_prepared(struct pool *pool, struct list_head *head, in process_prepared()
921 static int io_overlaps_block(struct pool *pool, struct bio *bio) in io_overlaps_block()
927 static int io_overwrites_block(struct pool *pool, struct bio *bio) in io_overwrites_block()
940 static int ensure_next_mapping(struct pool *pool) in ensure_next_mapping()
950 static struct dm_thin_new_mapping *get_next_mapping(struct pool *pool) in get_next_mapping()
986 struct pool *pool = tc->pool; in remap_and_issue_overwrite() local
1006 struct pool *pool = tc->pool; in schedule_copy() local
1084 struct pool *pool = tc->pool; in schedule_zero() local
1114 struct pool *pool = tc->pool; in schedule_external_copy() local
1134 static void check_for_space(struct pool *pool) in check_for_space()
1154 static int commit(struct pool *pool) in commit()
1170 static void check_low_water_mark(struct pool *pool, dm_block_t free_blocks) in check_low_water_mark()
1188 struct pool *pool = tc->pool; in alloc_data_block() local
1246 static int should_error_unserviceable_bio(struct pool *pool) in should_error_unserviceable_bio()
1269 static void handle_unserviceable_bio(struct pool *pool, struct bio *bio) in handle_unserviceable_bio()
1279 static void retry_bios_on_resume(struct pool *pool, struct dm_bio_prison_cell *cell) in retry_bios_on_resume()
1302 struct pool *pool = tc->pool; in process_discard_cell() local
1400 struct pool *pool = tc->pool; in break_sharing() local
1468 struct pool *pool = tc->pool; in process_shared_bio() local
1501 struct pool *pool = tc->pool; in provision_block() local
1548 struct pool *pool = tc->pool; in process_cell() local
1602 struct pool *pool = tc->pool; in process_bio() local
1703 static int need_commit_due_to_time(struct pool *pool) in need_commit_due_to_time()
1775 struct pool *pool = tc->pool; in process_thin_deferred_bios() local
1848 static unsigned sort_cells(struct pool *pool, struct list_head *cells) in sort_cells()
1868 struct pool *pool = tc->pool; in process_thin_deferred_cells() local
1921 static struct thin_c *get_first_thin(struct pool *pool) in get_first_thin()
1935 static struct thin_c *get_next_thin(struct pool *pool, struct thin_c *tc) in get_next_thin()
1952 static void process_deferred_bios(struct pool *pool) in process_deferred_bios()
1993 struct pool *pool = container_of(ws, struct pool, worker); in do_worker() local
2012 struct pool *pool = container_of(to_delayed_work(ws), struct pool, waker); in do_waker() local
2024 struct pool *pool = container_of(to_delayed_work(ws), struct pool, in do_no_space_timeout() local
2048 static void pool_work_wait(struct pool_work *pw, struct pool *pool, in pool_work_wait()
2094 static enum pool_mode get_pool_mode(struct pool *pool) in get_pool_mode()
2099 static void notify_of_pool_mode_change(struct pool *pool, const char *new_mode) in notify_of_pool_mode_change()
2106 static void set_pool_mode(struct pool *pool, enum pool_mode new_mode) in set_pool_mode()
2205 static void abort_transaction(struct pool *pool) in abort_transaction()
2221 static void metadata_operation_failed(struct pool *pool, const char *op, int r) in metadata_operation_failed()
2242 struct pool *pool = tc->pool; in thin_defer_bio() local
2253 struct pool *pool = tc->pool; in thin_defer_bio_with_throttle() local
2263 struct pool *pool = tc->pool; in thin_defer_cell() local
2390 static void requeue_bios(struct pool *pool) in requeue_bios()
2426 struct pool *pool = pt->pool; in disable_passdown_if_not_supported() local
2454 static int bind_control_target(struct pool *pool, struct dm_target *ti) in bind_control_target()
2480 static void unbind_control_target(struct pool *pool, struct dm_target *ti) in unbind_control_target()
2499 static void __pool_destroy(struct pool *pool) in __pool_destroy()
2530 struct pool *pool; in pool_create() local
2652 static void __pool_inc(struct pool *pool) in __pool_inc()
2658 static void __pool_dec(struct pool *pool) in __pool_dec()
2671 struct pool *pool = __pool_table_lookup_metadata_dev(metadata_dev); in __pool_find() local
2768 struct pool *pool = context; in metadata_low_callback() local
2844 struct pool *pool; in pool_ctr() local
2989 struct pool *pool = pt->pool; in pool_map() local
3007 struct pool *pool = pt->pool; in maybe_resize_data_dev() local
3055 struct pool *pool = pt->pool; in maybe_resize_metadata_dev() local
3114 struct pool *pool = pt->pool; in pool_preresume() local
3137 static void pool_suspend_active_thins(struct pool *pool) in pool_suspend_active_thins()
3149 static void pool_resume_active_thins(struct pool *pool) in pool_resume_active_thins()
3164 struct pool *pool = pt->pool; in pool_resume() local
3185 struct pool *pool = pt->pool; in pool_presuspend() local
3198 struct pool *pool = pt->pool; in pool_presuspend_undo() local
3211 struct pool *pool = pt->pool; in pool_postsuspend() local
3242 static int process_create_thin_mesg(unsigned argc, char **argv, struct pool *pool) in process_create_thin_mesg()
3265 static int process_create_snap_mesg(unsigned argc, char **argv, struct pool *pool) in process_create_snap_mesg()
3293 static int process_delete_mesg(unsigned argc, char **argv, struct pool *pool) in process_delete_mesg()
3313 static int process_set_transaction_id_mesg(unsigned argc, char **argv, struct pool *pool) in process_set_transaction_id_mesg()
3342 static int process_reserve_metadata_snap_mesg(unsigned argc, char **argv, struct pool *pool) in process_reserve_metadata_snap_mesg()
3359 static int process_release_metadata_snap_mesg(unsigned argc, char **argv, struct pool *pool) in process_release_metadata_snap_mesg()
3387 struct pool *pool = pt->pool; in pool_message() local
3465 struct pool *pool = pt->pool; in pool_status() local
3592 struct pool *pool = pt->pool; in set_discard_limits() local
3611 struct pool *pool = pt->pool; in pool_io_hints() local
3890 struct pool *pool = h->tc->pool; in thin_endio() local
4026 struct pool *pool = tc->pool; in thin_iterate_devices() local