H A D | dm-thin.c | 216 struct thin_c; 217 typedef void (*process_bio_fn)(struct thin_c *tc, struct bio *bio); 218 typedef void (*process_cell_fn)(struct thin_c *tc, struct dm_bio_prison_cell *cell); 296 struct thin_c { struct 386 static int issue_discard(struct thin_c *tc, dm_block_t data_b, dm_block_t data_e, issue_discard() 542 struct thin_c *tc; 566 static void error_thin_bio_list(struct thin_c *tc, struct bio_list *master, int error) error_thin_bio_list() 580 static void requeue_deferred_cells(struct thin_c *tc) requeue_deferred_cells() 597 static void requeue_io(struct thin_c *tc) requeue_io() 615 struct thin_c *tc; error_retry_list_with_code() 635 static dm_block_t get_bio_block(struct thin_c *tc, struct bio *bio) get_bio_block() 651 static void get_bio_block_range(struct thin_c *tc, struct bio *bio, get_bio_block_range() 676 static void remap(struct thin_c *tc, struct bio *bio, dm_block_t block) remap() 691 static void remap_to_origin(struct thin_c *tc, struct bio *bio) remap_to_origin() 696 static int bio_triggers_commit(struct thin_c *tc, struct bio *bio) bio_triggers_commit() 713 static void issue(struct thin_c *tc, struct bio *bio) issue() 742 static void remap_to_origin_and_issue(struct thin_c *tc, struct bio *bio) remap_to_origin_and_issue() 748 static void remap_and_issue(struct thin_c *tc, struct bio *bio, remap_and_issue() 774 struct thin_c *tc; 842 static void cell_defer_no_holder(struct thin_c *tc, struct dm_bio_prison_cell *cell) cell_defer_no_holder() 854 static void thin_defer_bio(struct thin_c *tc, struct bio *bio); 857 struct thin_c *tc; 884 static void inc_remap_and_issue_cell(struct thin_c *tc, inc_remap_and_issue_cell() 919 struct thin_c *tc = m->tc; process_prepared_mapping() 965 struct thin_c *tc = m->tc; free_discard_mapping() 986 struct thin_c *tc = m->tc; process_prepared_discard_no_passdown() 1007 struct thin_c *tc = m->tc; passdown_double_checking_shared_status() 1048 struct thin_c *tc = m->tc; process_prepared_discard_passdown() 1133 static void ll_zero(struct thin_c *tc, struct dm_thin_new_mapping *m, ll_zero() 1150 static void remap_and_issue_overwrite(struct thin_c *tc, struct bio *bio, remap_and_issue_overwrite() 1167 static void schedule_copy(struct thin_c *tc, dm_block_t virt_block, schedule_copy() 1240 static void schedule_internal_copy(struct thin_c *tc, dm_block_t virt_block, schedule_internal_copy() 1249 static void schedule_zero(struct thin_c *tc, dm_block_t virt_block, schedule_zero() 1278 static void schedule_external_copy(struct thin_c *tc, dm_block_t virt_block, schedule_external_copy() 1352 static int alloc_data_block(struct thin_c *tc, dm_block_t *result) alloc_data_block() 1406 struct thin_c *tc = h->tc; retry_on_resume() 1467 static void process_discard_cell_no_passdown(struct thin_c *tc, process_discard_cell_no_passdown() 1498 static void break_up_discard_bio(struct thin_c *tc, dm_block_t begin, dm_block_t end, break_up_discard_bio() 1561 static void process_discard_cell_passdown(struct thin_c *tc, struct dm_bio_prison_cell *virt_cell) process_discard_cell_passdown() 1582 static void process_discard_bio(struct thin_c *tc, struct bio *bio) process_discard_bio() 1611 static void break_sharing(struct thin_c *tc, struct bio *bio, dm_block_t block, break_sharing() 1659 static void remap_and_issue_shared_cell(struct thin_c *tc, remap_and_issue_shared_cell() 1680 static void process_shared_bio(struct thin_c *tc, struct bio *bio, process_shared_bio() 1714 static void provision_block(struct thin_c *tc, struct bio *bio, dm_block_t block, provision_block() 1763 static void process_cell(struct thin_c *tc, struct dm_bio_prison_cell *cell) process_cell() 1818 static void process_bio(struct thin_c *tc, struct bio *bio) process_bio() 1836 static void __process_bio_read_only(struct thin_c *tc, struct bio *bio, __process_bio_read_only() 1887 static void process_bio_read_only(struct thin_c *tc, struct bio *bio) process_bio_read_only() 1892 static void process_cell_read_only(struct thin_c *tc, struct dm_bio_prison_cell *cell) process_cell_read_only() 1897 static void process_bio_success(struct thin_c *tc, struct bio *bio) process_bio_success() 1902 static void process_bio_fail(struct thin_c *tc, struct bio *bio) process_bio_fail() 1907 static void process_cell_success(struct thin_c *tc, struct dm_bio_prison_cell *cell) process_cell_success() 1912 static void process_cell_fail(struct thin_c *tc, struct dm_bio_prison_cell *cell) process_cell_fail() 1930 static void __thin_bio_rb_add(struct thin_c *tc, struct bio *bio) __thin_bio_rb_add() 1953 static void __extract_sorted_bios(struct thin_c *tc) __extract_sorted_bios() 1970 static void __sort_thin_deferred_bios(struct thin_c *tc) __sort_thin_deferred_bios() 1991 static void process_thin_deferred_bios(struct thin_c *tc) process_thin_deferred_bios() 2084 static void process_thin_deferred_cells(struct thin_c *tc) process_thin_deferred_cells() 2131 static void thin_get(struct thin_c *tc); 2132 static void thin_put(struct thin_c *tc); 2139 static struct thin_c *get_first_thin(struct pool *pool) get_first_thin() 2141 struct thin_c *tc = NULL; get_first_thin() 2145 tc = list_entry_rcu(pool->active_thins.next, struct thin_c, list); get_first_thin() 2153 static struct thin_c *get_next_thin(struct pool *pool, struct thin_c *tc) get_next_thin() 2155 struct thin_c *old_tc = tc; get_next_thin() 2175 struct thin_c *tc; process_deferred_bios() 2284 struct thin_c *tc; 2307 static void noflush_work(struct thin_c *tc, void (*fn)(struct work_struct *)) noflush_work() 2487 static void thin_defer_bio(struct thin_c *tc, struct bio *bio) thin_defer_bio() 2499 static void thin_defer_bio_with_throttle(struct thin_c *tc, struct bio *bio) thin_defer_bio_with_throttle() 2508 static void thin_defer_cell(struct thin_c *tc, struct dm_bio_prison_cell *cell) thin_defer_cell() 2522 static void thin_hook_bio(struct thin_c *tc, struct bio *bio) thin_hook_bio() 2539 struct thin_c *tc = ti->private; thin_bio_map() 2643 struct thin_c *tc; requeue_bios() 3382 struct thin_c *tc; pool_suspend_active_thins() 3394 struct thin_c *tc; pool_resume_active_thins() 3908 static void thin_get(struct thin_c *tc) thin_get() 3913 static void thin_put(struct thin_c *tc) thin_put() 3921 struct thin_c *tc = ti->private; thin_dtr() 3959 struct thin_c *tc; thin_ctr() 4142 struct thin_c *tc = ti->private; thin_presuspend() 4150 struct thin_c *tc = ti->private; thin_postsuspend() 4161 struct thin_c *tc = ti->private; thin_preresume() 4179 struct thin_c *tc = ti->private; thin_status() 4231 struct thin_c *tc = ti->private; thin_iterate_devices() 4251 struct thin_c *tc = ti->private; thin_io_hints()
|