| H A D | dm-cache-target.c | 11 #include "dm-cache-metadata.h" 13 #include "dm-cache-background-tracker.h" 27 #define DM_MSG_PREFIX "cache" 30 "A percentage of time allocated for copying to and/or from cache"); 38 * cblock: index of a cache block 39 * promotion: movement of a block from origin to cache 40 * demotion: movement of a block from cache to origin 41 * migration: movement of a block between the origin and cache device, 243 * The block size of the device holding cache data must be 258 * dirty. If you lose the cache devic 298 struct cache { global() struct 308 cmdcache global() argument 323 cache_devcache global() argument 332 origin_sectorscache global() argument 334 cache_sizecache global() argument 339 invalidation_lockcache global() argument 340 invalidation_requestscache global() argument 342 migration_thresholdcache global() argument 348 nr_io_migrationscache global() argument 350 deferred_bioscache global() argument 352 quiesce_lockcache global() argument 376 prisoncache global() argument 382 policycache global() argument 387 featurescache global() argument 389 statscache global() argument 391 need_tick_biocache global() argument 392 sizedcache global() argument 393 invalidatecache global() argument 394 commit_requestedcache global() argument 395 loaded_mappingscache global() argument 396 loaded_discardscache global() argument 399 background_work_allowedcache global() argument 400 background_work_nrcache global() argument 401 background_work_lockcache global() argument 402 background_work_waitcache global() argument 404 committercache global() argument 428 commit_wscache global() argument 430 struct cache *cache; global() member 442 writethrough_mode(struct cache * cache) writethrough_mode() argument 447 writeback_mode(struct cache * cache) writeback_mode() argument 452 passthrough_mode(struct cache * cache) passthrough_mode() argument 459 wake_deferred_bio_worker(struct cache * cache) wake_deferred_bio_worker() argument 464 wake_migration_worker(struct cache * cache) wake_migration_worker() argument 474 alloc_prison_cell(struct cache * cache) alloc_prison_cell() argument 479 free_prison_cell(struct cache * cache,struct dm_bio_prison_cell_v2 * cell) free_prison_cell() argument 484 alloc_migration(struct cache * cache) alloc_migration() argument 559 defer_bio(struct cache * cache,struct bio * bio) defer_bio() argument 568 defer_bios(struct cache * cache,struct bio_list * bios) defer_bios() argument 579 bio_detain_shared(struct cache * cache,dm_oblock_t oblock,struct bio * bio) bio_detain_shared() argument 610 is_dirty(struct cache * cache,dm_cblock_t b) is_dirty() argument 615 set_dirty(struct cache * cache,dm_cblock_t cblock) set_dirty() argument 627 force_set_dirty(struct cache * cache,dm_cblock_t cblock) force_set_dirty() argument 634 force_clear_dirty(struct cache * cache,dm_cblock_t cblock) force_clear_dirty() argument 646 block_size_is_power_of_two(struct cache * cache) block_size_is_power_of_two() argument 658 oblocks_per_dblock(struct cache * cache) oblocks_per_dblock() argument 670 oblock_to_dblock(struct cache * cache,dm_oblock_t oblock) oblock_to_dblock() argument 676 set_discard(struct cache * cache,dm_dblock_t b) set_discard() argument 686 clear_discard(struct cache * cache,dm_dblock_t b) clear_discard() argument 693 is_discarded(struct cache * cache,dm_dblock_t b) is_discarded() argument 704 is_discarded_oblock(struct cache * cache,dm_oblock_t b) is_discarded_oblock() argument 721 remap_to_origin(struct cache * cache,struct bio * bio) remap_to_origin() argument 726 remap_to_cache(struct cache * cache,struct bio * bio,dm_cblock_t cblock) remap_to_cache() argument 743 check_if_tick_bio_needed(struct cache * cache,struct bio * bio) check_if_tick_bio_needed() argument 757 remap_to_origin_clear_discard(struct cache * cache,struct bio * bio,dm_oblock_t oblock) remap_to_origin_clear_discard() argument 767 remap_to_cache_dirty(struct cache * cache,struct bio * bio,dm_oblock_t oblock,dm_cblock_t cblock) remap_to_cache_dirty() argument 778 get_bio_block(struct cache * cache,struct bio * bio) get_bio_block() argument 790 accountable_bio(struct cache * cache,struct bio * bio) accountable_bio() argument 795 accounted_begin(struct cache * cache,struct bio * bio) accounted_begin() argument 806 accounted_complete(struct cache * cache,struct bio * bio) accounted_complete() argument 813 accounted_request(struct cache * cache,struct bio * bio) accounted_request() argument 821 struct cache *cache = context; issue_op() local 830 remap_to_origin_and_cache(struct cache * cache,struct bio * bio,dm_oblock_t oblock,dm_cblock_t cblock) remap_to_origin_and_cache() argument 852 get_cache_mode(struct cache * cache) get_cache_mode() argument 857 cache_device_name(struct cache * cache) cache_device_name() argument 862 notify_mode_switch(struct cache * cache,enum cache_metadata_mode mode) notify_mode_switch() argument 875 set_cache_mode(struct cache * cache,enum cache_metadata_mode new_mode) set_cache_mode() argument 916 abort_transaction(struct cache * cache) abort_transaction() argument 935 metadata_operation_failed(struct cache * cache,const char * op,int r) metadata_operation_failed() argument 945 load_stats(struct cache * cache) load_stats() argument 956 save_stats(struct cache * cache) save_stats() argument 996 inc_io_migrations(struct cache * cache) inc_io_migrations() argument 1001 dec_io_migrations(struct cache * cache) dec_io_migrations() argument 1011 calc_discard_block_range(struct cache * cache,struct bio * bio,dm_dblock_t * b,dm_dblock_t * e) calc_discard_block_range() argument 1027 prevent_background_work(struct cache * cache) prevent_background_work() argument 1037 allow_background_work(struct cache * cache) allow_background_work() argument 1044 background_work_begin(struct cache * cache) background_work_begin() argument 1056 background_work_end(struct cache * cache) background_work_end() argument 1066 bio_writes_complete_block(struct cache * cache,struct bio * bio) bio_writes_complete_block() argument 1072 optimisable_bio(struct cache * cache,struct bio * bio,dm_oblock_t block) optimisable_bio() argument 1105 struct cache *cache = mg->cache; copy() local 1121 bio_drop_shared_lock(struct cache * cache,struct bio * bio) bio_drop_shared_lock() argument 1133 struct cache *cache = mg->cache; overwrite_endio() local 1179 struct cache *cache = mg->cache; mg_complete() local 1248 struct cache *cache = mg->cache; mg_update_metadata() local 1350 struct cache *cache = mg->cache; mg_full_copy() local 1404 struct cache *cache = mg->cache; mg_lock_writes() local 1435 mg_start(struct cache * cache,struct policy_work * op,struct bio * bio) mg_start() argument 1464 struct cache *cache = mg->cache; invalidate_complete() local 1497 invalidate_cblock(struct cache * cache,dm_cblock_t cblock) invalidate_cblock() argument 1525 struct cache *cache = mg->cache; invalidate_committed() local 1544 struct cache *cache = mg->cache; invalidate_remove() local 1561 struct cache *cache = mg->cache; invalidate_lock() local 1602 invalidate_start(struct cache * cache,dm_cblock_t cblock,dm_oblock_t oblock,struct bio * bio) invalidate_start() argument 1630 spare_migration_bandwidth(struct cache * cache) spare_migration_bandwidth() argument 1642 inc_hit_counter(struct cache * cache,struct bio * bio) inc_hit_counter() argument 1648 inc_miss_counter(struct cache * cache,struct bio * bio) inc_miss_counter() argument 1656 map_bio(struct cache * cache,struct bio * bio,dm_oblock_t block,bool * commit_needed) map_bio() argument 1771 process_bio(struct cache * cache,struct bio * bio) process_bio() argument 1784 commit(struct cache * cache,bool clean_shutdown) commit() argument 1804 struct cache *cache = context; commit_op() local 1814 process_flush_bio(struct cache * cache,struct bio * bio) process_flush_bio() argument 1827 process_discard_bio(struct cache * cache,struct bio * bio) process_discard_bio() argument 1853 struct cache *cache = container_of(ws, struct cache, deferred_bio_worker); process_deferred_bios() local 1886 requeue_deferred_bios(struct cache * cache) requeue_deferred_bios() argument 1907 struct cache *cache = container_of(to_delayed_work(ws), struct cache, waker); do_waker() local 1919 struct cache *cache = container_of(ws, struct cache, migration_worker); check_migrations() local 1953 __destroy(struct cache * cache) __destroy() argument 1995 destroy(struct cache * cache) destroy() argument 2010 struct cache *cache = ti->private; cache_dtr() local 2311 process_config_option(struct cache * cache,const char * key,const char * value) process_config_option() argument 2326 set_config_value(struct cache * cache,const char * key,const char * value) set_config_value() argument 2339 set_config_values(struct cache * cache,int argc,const char ** argv) set_config_values() argument 2360 create_cache_policy(struct cache * cache,struct cache_args * ca,char ** error) create_cache_policy() argument 2403 set_cache_size(struct cache * cache,dm_cblock_t size) set_cache_size() argument 2422 struct cache *cache; cache_create() local 2608 copy_ctr_args(struct cache * cache,int argc,const char ** argv) copy_ctr_args() argument 2636 struct cache *cache = NULL; cache_ctr() local 2669 struct cache *cache = ti->private; cache_map() local 2701 struct cache *cache = ti->private; cache_end_io() local 2719 write_dirty_bitset(struct cache * cache) write_dirty_bitset() argument 2733 write_discard_bitset(struct cache * cache) write_discard_bitset() argument 2760 write_hints(struct cache * cache) write_hints() argument 2779 sync_metadata(struct cache * cache) sync_metadata() argument 2811 struct cache *cache = ti->private; cache_postsuspend() local 2833 struct cache *cache = context; load_mapping() local 2853 struct cache *cache = context; load_filtered_mapping() local 2875 struct cache *cache; global() member 2885 discard_load_info_init(struct cache * cache,struct discard_load_info * li) discard_load_info_init() argument 2952 get_cache_dev_size(struct cache * cache) get_cache_dev_size() argument 2959 can_resume(struct cache * cache) can_resume() argument 2997 can_resize(struct cache * cache,dm_cblock_t new_size) can_resize() argument 3023 resize_cache_dev(struct cache * cache,dm_cblock_t new_size) resize_cache_dev() argument 3039 truncate_oblocks(struct cache * cache) truncate_oblocks() argument 3060 struct cache *cache = ti->private; cache_preresume() local 3133 struct cache *cache = ti->private; cache_resume() local 3140 emit_flags(struct cache * cache,char * result,unsigned int maxlen,ssize_t * sz_ptr) emit_flags() argument 3193 struct cache *cache = ti->private; cache_status() local 3329 parse_cblock_range(struct cache * cache,char * str,struct cblock_range * result) parse_cblock_range() argument 3361 validate_cblock_range(struct cache * cache,struct cblock_range * range) validate_cblock_range() argument 3388 request_invalidation(struct cache * cache,struct cblock_range * range) request_invalidation() argument 3410 process_invalidate_cblocks_message(struct cache * cache,unsigned int count,char ** cblock_ranges) process_invalidate_cblocks_message() argument 3454 struct cache *cache = ti->private; cache_message() local 3478 struct cache *cache = ti->private; cache_iterate_devices() local 3491 disable_passdown_if_not_supported(struct cache * cache) disable_passdown_if_not_supported() argument 3513 set_discard_limits(struct cache * cache,struct queue_limits * limits) set_discard_limits() argument 3537 struct cache *cache = ti->private; cache_io_hints() local [all...] |
| H A D | dwarf.c | 38 static void process_linebreak(struct die *cache, int n) in process_linebreak() argument 42 die_map_add_linebreak(cache, n); in process_linebreak() 109 static struct cache srcfile_cache; 147 static bool is_kabi_definition(struct die *cache, Dwarf_Die *die) in is_kabi_definition() argument 154 if (kabi_is_declonly(cache->fqn)) in is_kabi_definition() 163 static void process(struct die *cache, const char *s) in process() argument 176 if (cache) in process() 177 die_debug_r("cache %p string '%s'", cache, s); in process() 178 die_map_add_string(cache, in process() 183 process_fmt(struct die * cache,const char * fmt,...) process_fmt() argument 197 update_fqn(struct die * cache,Dwarf_Die * die) update_fqn() argument 210 process_fqn(struct die * cache,Dwarf_Die * die) process_fqn() argument 266 process_die_container(struct state * state,struct die * cache,Dwarf_Die * die,die_callback_t func,die_match_callback_t match) process_die_container() argument 300 process_type_attr(struct state * state,struct die * cache,Dwarf_Die * die) process_type_attr() argument 314 process_list_comma(struct state * state,struct die * cache) process_list_comma() argument 325 __process_list_type(struct state * state,struct die * cache,Dwarf_Die * die,const char * type) __process_list_type() argument 411 process_array_type(struct state * state,struct die * cache,Dwarf_Die * die) process_array_type() argument 425 __process_subroutine_type(struct state * state,struct die * cache,Dwarf_Die * die,const char * type) __process_subroutine_type() argument 442 process_subroutine_type(struct state * state,struct die * cache,Dwarf_Die * die) process_subroutine_type() argument 448 process_variant_type(struct state * state,struct die * cache,Dwarf_Die * die) process_variant_type() argument 461 process_variant_part_type(struct state * state,struct die * cache,Dwarf_Die * die) process_variant_part_type() argument 667 ___process_structure_type(struct state * state,struct die * cache,Dwarf_Die * die) ___process_structure_type() argument 690 __process_structure_type(struct state * state,struct die * cache,Dwarf_Die * die,const char * type,die_callback_t process_func,die_match_callback_t match_func) __process_structure_type() argument 749 process_enumerator_type(struct state * state,struct die * cache,Dwarf_Die * die) process_enumerator_type() argument 777 process_enumeration_type(struct state * state,struct die * cache,Dwarf_Die * die) process_enumeration_type() argument 784 process_base_type(struct state * state,struct die * cache,Dwarf_Die * die) process_base_type() argument 794 process_unspecified_type(struct state * state,struct die * cache,Dwarf_Die * die) process_unspecified_type() argument 804 process_cached(struct state * state,struct die * cache,Dwarf_Die * die) process_cached() argument 868 struct die *cache; process_type() local 961 struct die *cache; get_symbol_cache() local 975 struct die *cache; process_symbol() local 990 __process_subprogram(struct state * state,struct die * cache,Dwarf_Die * die) __process_subprogram() argument 1002 __process_variable(struct state * state,struct die * cache,Dwarf_Die * die) __process_variable() argument 1040 process_exported_symbols(struct state * unused,struct die * cache,Dwarf_Die * die) process_exported_symbols() argument 1106 struct die *cache; resolve_fqns() local [all...] |