Lines Matching refs:thin_c
208 struct thin_c;
209 typedef void (*process_bio_fn)(struct thin_c *tc, struct bio *bio);
210 typedef void (*process_cell_fn)(struct thin_c *tc, struct dm_bio_prison_cell *cell);
288 struct thin_c { struct
460 struct thin_c *tc;
481 static void error_thin_bio_list(struct thin_c *tc, struct bio_list *master, int error) in error_thin_bio_list()
495 static void requeue_deferred_cells(struct thin_c *tc) in requeue_deferred_cells()
512 static void requeue_io(struct thin_c *tc) in requeue_io()
530 struct thin_c *tc; in error_retry_list()
550 static dm_block_t get_bio_block(struct thin_c *tc, struct bio *bio) in get_bio_block()
563 static void remap(struct thin_c *tc, struct bio *bio, dm_block_t block) in remap()
578 static void remap_to_origin(struct thin_c *tc, struct bio *bio) in remap_to_origin()
583 static int bio_triggers_commit(struct thin_c *tc, struct bio *bio) in bio_triggers_commit()
600 static void issue(struct thin_c *tc, struct bio *bio) in issue()
629 static void remap_to_origin_and_issue(struct thin_c *tc, struct bio *bio) in remap_to_origin_and_issue()
635 static void remap_and_issue(struct thin_c *tc, struct bio *bio, in remap_and_issue()
661 struct thin_c *tc;
727 static void cell_defer_no_holder(struct thin_c *tc, struct dm_bio_prison_cell *cell) in cell_defer_no_holder()
739 static void thin_defer_bio(struct thin_c *tc, struct bio *bio);
742 struct thin_c *tc;
769 static void inc_remap_and_issue_cell(struct thin_c *tc, in inc_remap_and_issue_cell()
808 struct thin_c *tc = m->tc; in process_prepared_mapping()
858 struct thin_c *tc = m->tc; in process_prepared_discard_fail()
868 struct thin_c *tc = m->tc; in process_prepared_discard_passdown()
893 struct thin_c *tc = m->tc; in process_prepared_discard()
965 static void ll_zero(struct thin_c *tc, struct dm_thin_new_mapping *m, in ll_zero()
982 static void remap_and_issue_overwrite(struct thin_c *tc, struct bio *bio, in remap_and_issue_overwrite()
999 static void schedule_copy(struct thin_c *tc, dm_block_t virt_block, in schedule_copy()
1071 static void schedule_internal_copy(struct thin_c *tc, dm_block_t virt_block, in schedule_internal_copy()
1080 static void schedule_zero(struct thin_c *tc, dm_block_t virt_block, in schedule_zero()
1110 static void schedule_external_copy(struct thin_c *tc, dm_block_t virt_block, in schedule_external_copy()
1184 static int alloc_data_block(struct thin_c *tc, dm_block_t *result) in alloc_data_block()
1238 struct thin_c *tc = h->tc; in retry_on_resume()
1298 static void process_discard_cell(struct thin_c *tc, struct dm_bio_prison_cell *cell) in process_discard_cell()
1380 static void process_discard_bio(struct thin_c *tc, struct bio *bio) in process_discard_bio()
1393 static void break_sharing(struct thin_c *tc, struct bio *bio, dm_block_t block, in break_sharing()
1441 static void remap_and_issue_shared_cell(struct thin_c *tc, in remap_and_issue_shared_cell()
1462 static void process_shared_bio(struct thin_c *tc, struct bio *bio, in process_shared_bio()
1496 static void provision_block(struct thin_c *tc, struct bio *bio, dm_block_t block, in provision_block()
1545 static void process_cell(struct thin_c *tc, struct dm_bio_prison_cell *cell) in process_cell()
1600 static void process_bio(struct thin_c *tc, struct bio *bio) in process_bio()
1618 static void __process_bio_read_only(struct thin_c *tc, struct bio *bio, in __process_bio_read_only()
1669 static void process_bio_read_only(struct thin_c *tc, struct bio *bio) in process_bio_read_only()
1674 static void process_cell_read_only(struct thin_c *tc, struct dm_bio_prison_cell *cell) in process_cell_read_only()
1679 static void process_bio_success(struct thin_c *tc, struct bio *bio) in process_bio_success()
1684 static void process_bio_fail(struct thin_c *tc, struct bio *bio) in process_bio_fail()
1689 static void process_cell_success(struct thin_c *tc, struct dm_bio_prison_cell *cell) in process_cell_success()
1694 static void process_cell_fail(struct thin_c *tc, struct dm_bio_prison_cell *cell) in process_cell_fail()
1712 static void __thin_bio_rb_add(struct thin_c *tc, struct bio *bio) in __thin_bio_rb_add()
1735 static void __extract_sorted_bios(struct thin_c *tc) in __extract_sorted_bios()
1752 static void __sort_thin_deferred_bios(struct thin_c *tc) in __sort_thin_deferred_bios()
1773 static void process_thin_deferred_bios(struct thin_c *tc) in process_thin_deferred_bios()
1866 static void process_thin_deferred_cells(struct thin_c *tc) in process_thin_deferred_cells()
1913 static void thin_get(struct thin_c *tc);
1914 static void thin_put(struct thin_c *tc);
1921 static struct thin_c *get_first_thin(struct pool *pool) in get_first_thin()
1923 struct thin_c *tc = NULL; in get_first_thin()
1927 tc = list_entry_rcu(pool->active_thins.next, struct thin_c, list); in get_first_thin()
1935 static struct thin_c *get_next_thin(struct pool *pool, struct thin_c *tc) in get_next_thin()
1937 struct thin_c *old_tc = tc; in get_next_thin()
1957 struct thin_c *tc; in process_deferred_bios()
2061 struct thin_c *tc;
2084 static void noflush_work(struct thin_c *tc, void (*fn)(struct work_struct *)) in noflush_work()
2239 static void thin_defer_bio(struct thin_c *tc, struct bio *bio) in thin_defer_bio()
2251 static void thin_defer_bio_with_throttle(struct thin_c *tc, struct bio *bio) in thin_defer_bio_with_throttle()
2260 static void thin_defer_cell(struct thin_c *tc, struct dm_bio_prison_cell *cell) in thin_defer_cell()
2274 static void thin_hook_bio(struct thin_c *tc, struct bio *bio) in thin_hook_bio()
2290 struct thin_c *tc = ti->private; in thin_bio_map()
2393 struct thin_c *tc; in requeue_bios()
3139 struct thin_c *tc; in pool_suspend_active_thins()
3151 struct thin_c *tc; in pool_resume_active_thins()
3689 static void thin_get(struct thin_c *tc) in thin_get()
3694 static void thin_put(struct thin_c *tc) in thin_put()
3702 struct thin_c *tc = ti->private; in thin_dtr()
3740 struct thin_c *tc; in thin_ctr()
3921 struct thin_c *tc = ti->private; in thin_presuspend()
3929 struct thin_c *tc = ti->private; in thin_postsuspend()
3940 struct thin_c *tc = ti->private; in thin_preresume()
3958 struct thin_c *tc = ti->private; in thin_status()
4009 struct thin_c *tc = ti->private; in thin_merge()
4025 struct thin_c *tc = ti->private; in thin_iterate_devices()