Lines Matching defs:pool
232 struct pool { struct
234 struct dm_target *ti; /* Only set if a pool target is bound */ argument
236 struct mapped_device *pool_md; argument
239 struct dm_pool_metadata *pmd; argument
245 struct pool_features pf; argument
246 bool low_water_triggered:1; /* A dm event has been sent */
247 bool suspended:1;
248 bool out_of_data_space:1;
250 struct dm_bio_prison *prison;
251 struct dm_kcopyd_client *copier;
253 struct work_struct worker;
254 struct workqueue_struct *wq;
255 struct throttle throttle;
256 struct delayed_work waker;
257 struct delayed_work no_space_timeout;
259 unsigned long last_commit_jiffies;
260 unsigned int ref_count;
262 spinlock_t lock;
263 struct bio_list deferred_flush_bios;
287 mempool_t mapping_pool; argument
290 static void metadata_operation_failed(struct pool *pool, const char *op, int r); argument
292 static enum pool_mode get_pool_mode(struct pool *pool) in get_pool_mode()
297 static void notify_of_pool_mode_change(struct pool *pool) in notify_of_pool_mode_change()
327 struct pool *pool; member
346 struct pool *pool; member
367 static bool block_size_is_power_of_two(struct pool *pool) in block_size_is_power_of_two()
372 static sector_t block_to_sectors(struct pool *pool, dm_block_t b) in block_to_sectors()
436 static void wake_worker(struct pool *pool) in wake_worker()
443 static int bio_detain(struct pool *pool, struct dm_cell_key *key, struct bio *bio, in bio_detain()
466 static void cell_release(struct pool *pool, in cell_release()
474 static void cell_visit_release(struct pool *pool, in cell_visit_release()
483 static void cell_release_no_holder(struct pool *pool, in cell_release_no_holder()
491 static void cell_error_with_code(struct pool *pool, in cell_error_with_code()
498 static blk_status_t get_pool_io_error_code(struct pool *pool) in get_pool_io_error_code()
503 static void cell_error(struct pool *pool, struct dm_bio_prison_cell *cell) in cell_error()
508 static void cell_success(struct pool *pool, struct dm_bio_prison_cell *cell) in cell_success()
513 static void cell_requeue(struct pool *pool, struct dm_bio_prison_cell *cell) in cell_requeue()
539 static void __pool_table_insert(struct pool *pool) in __pool_table_insert()
545 static void __pool_table_remove(struct pool *pool) in __pool_table_remove()
553 struct pool *pool = NULL, *tmp; in __pool_table_lookup() local
569 struct pool *pool = NULL, *tmp; in __pool_table_lookup_metadata_dev() local
626 struct pool *pool = tc->pool; in requeue_deferred_cells() local
655 static void error_retry_list_with_code(struct pool *pool, blk_status_t error) in error_retry_list_with_code()
665 static void error_retry_list(struct pool *pool) in error_retry_list()
679 struct pool *pool = tc->pool; in get_bio_block() local
696 struct pool *pool = tc->pool; in get_bio_block_range() local
720 struct pool *pool = tc->pool; in remap() local
744 static void inc_all_io_entry(struct pool *pool, struct bio *bio) in inc_all_io_entry()
757 struct pool *pool = tc->pool; in issue() local
832 struct pool *pool = m->tc->pool; in __complete_mapping_preparation() local
843 struct pool *pool = m->tc->pool; in complete_mapping_preparation() local
885 struct pool *pool = tc->pool; in cell_defer_no_holder() local
965 struct pool *pool = tc->pool; in complete_overwrite_bio() local
998 struct pool *pool = tc->pool; in process_prepared_mapping() local
1090 struct pool *pool = tc->pool; in passdown_double_checking_shared_status() local
1132 struct pool *pool = m->tc->pool; in queue_passdown_pt2() local
1154 struct pool *pool = tc->pool; in process_prepared_discard_passdown_pt1() local
1203 struct pool *pool = tc->pool; in process_prepared_discard_passdown_pt2() local
1221 static void process_prepared(struct pool *pool, struct list_head *head, in process_prepared()
1239 static int io_overlaps_block(struct pool *pool, struct bio *bio) in io_overlaps_block()
1245 static int io_overwrites_block(struct pool *pool, struct bio *bio) in io_overwrites_block()
1258 static int ensure_next_mapping(struct pool *pool) in ensure_next_mapping()
1268 static struct dm_thin_new_mapping *get_next_mapping(struct pool *pool) in get_next_mapping()
1299 struct pool *pool = tc->pool; in remap_and_issue_overwrite() local
1318 struct pool *pool = tc->pool; in schedule_copy() local
1386 struct pool *pool = tc->pool; in schedule_zero() local
1415 struct pool *pool = tc->pool; in schedule_external_copy() local
1442 static bool is_read_only(struct pool *pool) in is_read_only()
1447 static void check_for_metadata_space(struct pool *pool) in check_for_metadata_space()
1465 static void check_for_data_space(struct pool *pool) in check_for_data_space()
1487 static int commit(struct pool *pool) in commit()
1505 static void check_low_water_mark(struct pool *pool, dm_block_t free_blocks) in check_low_water_mark()
1521 struct pool *pool = tc->pool; in alloc_data_block() local
1594 static blk_status_t should_error_unserviceable_bio(struct pool *pool) in should_error_unserviceable_bio()
1618 static void handle_unserviceable_bio(struct pool *pool, struct bio *bio) in handle_unserviceable_bio()
1629 static void retry_bios_on_resume(struct pool *pool, struct dm_bio_prison_cell *cell) in retry_bios_on_resume()
1651 struct pool *pool = tc->pool; in process_discard_cell_no_passdown() local
1671 struct pool *pool = tc->pool; in break_up_discard_bio() local
1810 struct pool *pool = tc->pool; in break_sharing() local
1878 struct pool *pool = tc->pool; in process_shared_bio() local
1911 struct pool *pool = tc->pool; in provision_block() local
1958 struct pool *pool = tc->pool; in process_cell() local
2012 struct pool *pool = tc->pool; in process_bio() local
2113 static int need_commit_due_to_time(struct pool *pool) in need_commit_due_to_time()
2185 struct pool *pool = tc->pool; in process_thin_deferred_bios() local
2259 static unsigned int sort_cells(struct pool *pool, struct list_head *cells) in sort_cells()
2279 struct pool *pool = tc->pool; in process_thin_deferred_cells() local
2332 static struct thin_c *get_first_thin(struct pool *pool) in get_first_thin()
2346 static struct thin_c *get_next_thin(struct pool *pool, struct thin_c *tc) in get_next_thin()
2363 static void process_deferred_bios(struct pool *pool) in process_deferred_bios()
2421 struct pool *pool = container_of(ws, struct pool, worker); in do_worker() local
2442 struct pool *pool = container_of(to_delayed_work(ws), struct pool, waker); in do_waker() local
2455 struct pool *pool = container_of(to_delayed_work(ws), struct pool, in do_no_space_timeout() local
2482 static void pool_work_wait(struct pool_work *pw, struct pool *pool, in pool_work_wait()
2530 static void set_discard_callbacks(struct pool *pool) in set_discard_callbacks()
2544 static void set_pool_mode(struct pool *pool, enum pool_mode new_mode) in set_pool_mode()
2642 static void abort_transaction(struct pool *pool) in abort_transaction()
2658 static void metadata_operation_failed(struct pool *pool, const char *op, int r) in metadata_operation_failed()
2678 struct pool *pool = tc->pool; in thin_defer_bio() local
2689 struct pool *pool = tc->pool; in thin_defer_bio_with_throttle() local
2698 struct pool *pool = tc->pool; in thin_defer_cell() local
2815 static void requeue_bios(struct pool *pool) in requeue_bios()
2845 struct pool *pool = pt->pool; in disable_discard_passdown_if_not_supported() local
2865 static int bind_control_target(struct pool *pool, struct dm_target *ti) in bind_control_target()
2891 static void unbind_control_target(struct pool *pool, struct dm_target *ti) in unbind_control_target()
2912 static void __pool_destroy(struct pool *pool) in __pool_destroy()
2946 struct pool *pool; in pool_create() local
3074 static void __pool_inc(struct pool *pool) in __pool_inc()
3080 static void __pool_dec(struct pool *pool) in __pool_dec()
3094 struct pool *pool = __pool_table_lookup_metadata_dev(metadata_dev); in __pool_find() local
3197 struct pool *pool = context; in metadata_low_callback() local
3218 struct pool *pool = context; in metadata_pre_commit_callback() local
3291 struct pool *pool; in pool_ctr() local
3445 struct pool *pool = pt->pool; in pool_map() local
3461 struct pool *pool = pt->pool; in maybe_resize_data_dev() local
3509 struct pool *pool = pt->pool; in maybe_resize_metadata_dev() local
3572 struct pool *pool = pt->pool; in pool_preresume() local
3603 static void pool_suspend_active_thins(struct pool *pool) in pool_suspend_active_thins()
3615 static void pool_resume_active_thins(struct pool *pool) in pool_resume_active_thins()
3630 struct pool *pool = pt->pool; in pool_resume() local
3650 struct pool *pool = pt->pool; in pool_presuspend() local
3662 struct pool *pool = pt->pool; in pool_presuspend_undo() local
3674 struct pool *pool = pt->pool; in pool_postsuspend() local
3705 static int process_create_thin_mesg(unsigned int argc, char **argv, struct pool *pool) in process_create_thin_mesg()
3728 static int process_create_snap_mesg(unsigned int argc, char **argv, struct pool *pool) in process_create_snap_mesg()
3756 static int process_delete_mesg(unsigned int argc, char **argv, struct pool *pool) in process_delete_mesg()
3776 static int process_set_transaction_id_mesg(unsigned int argc, char **argv, struct pool *pool) in process_set_transaction_id_mesg()
3805 static int process_reserve_metadata_snap_mesg(unsigned int argc, char **argv, struct pool *pool) in process_reserve_metadata_snap_mesg()
3822 static int process_release_metadata_snap_mesg(unsigned int argc, char **argv, struct pool *pool) in process_release_metadata_snap_mesg()
3851 struct pool *pool = pt->pool; in pool_message() local
3931 struct pool *pool = pt->pool; in pool_status() local
4057 struct pool *pool = pt->pool; in pool_io_hints() local
4344 struct pool *pool = h->tc->pool; in thin_endio() local
4472 struct pool *pool = tc->pool; in thin_iterate_devices() local
4492 struct pool *pool = tc->pool; in thin_io_hints() local