Lines Matching defs:conf
74 static inline struct hlist_head *stripe_hash(struct r5conf *conf, sector_t sect) in stripe_hash()
80 static inline int stripe_hash_locks_hash(struct r5conf *conf, sector_t sect) in stripe_hash_locks_hash()
85 static inline void lock_device_hash_lock(struct r5conf *conf, int hash) in lock_device_hash_lock()
92 static inline void unlock_device_hash_lock(struct r5conf *conf, int hash) in unlock_device_hash_lock()
99 static inline void lock_all_device_hash_locks_irq(struct r5conf *conf) in lock_all_device_hash_locks_irq()
109 static inline void unlock_all_device_hash_locks_irq(struct r5conf *conf) in unlock_all_device_hash_locks_irq()
177 struct r5conf *conf = sh->raid_conf; in raid5_wakeup_stripe_thread() local
221 static void do_release_stripe(struct r5conf *conf, struct stripe_head *sh, in do_release_stripe()
307 static void __release_stripe(struct r5conf *conf, struct stripe_head *sh, in __release_stripe()
322 static void release_inactive_stripe_list(struct r5conf *conf, in release_inactive_stripe_list()
364 static int release_stripe_list(struct r5conf *conf, in release_stripe_list()
395 struct r5conf *conf = sh->raid_conf; in raid5_release_stripe() local
432 static inline void insert_hash(struct r5conf *conf, struct stripe_head *sh) in insert_hash()
443 static struct stripe_head *get_free_stripe(struct r5conf *conf, int hash) in get_free_stripe()
501 init_stripe_shared_pages(struct stripe_head *sh, struct r5conf *conf, int disks) in init_stripe_shared_pages()
578 struct r5conf *conf = sh->raid_conf; in init_stripe() local
618 static struct stripe_head *__find_stripe(struct r5conf *conf, sector_t sector, in __find_stripe()
631 static struct stripe_head *find_get_stripe(struct r5conf *conf, in find_get_stripe()
691 int raid5_calc_degraded(struct r5conf *conf) in raid5_calc_degraded()
745 static bool has_failed(struct r5conf *conf) in has_failed()
791 static bool is_inactive_blocked(struct r5conf *conf, int hash) in is_inactive_blocked()
803 struct stripe_head *raid5_get_active_stripe(struct r5conf *conf, in raid5_get_active_stripe()
904 struct r5conf *conf = sh->raid_conf; in stripe_can_batch() local
914 static void stripe_add_to_batch_list(struct r5conf *conf, in stripe_add_to_batch_list()
1012 static int use_new_offset(struct r5conf *conf, struct stripe_head *sh) in use_new_offset()
1052 static void dispatch_defer_bios(struct r5conf *conf, int target, in dispatch_defer_bios()
1097 static void flush_deferred_bios(struct r5conf *conf) in flush_deferred_bios()
1112 static void defer_issue_bios(struct r5conf *conf, sector_t sector, in defer_issue_bios()
1141 struct r5conf *conf = sh->raid_conf; in ops_run_io() local
1379 struct r5conf *conf = sh->raid_conf; in async_copy_data() local
1437 struct r5conf *conf = sh->raid_conf; in ops_complete_biofill() local
1476 struct r5conf *conf = sh->raid_conf; in ops_run_biofill() local
1921 struct r5conf *conf = sh->raid_conf; in ops_run_biodrain() local
2278 struct r5conf *conf = sh->raid_conf; in raid_run_ops() local
2357 int disks, struct r5conf *conf) in alloc_stripe()
2389 static int grow_one_stripe(struct r5conf *conf, gfp_t gfp) in grow_one_stripe()
2412 static int grow_stripes(struct r5conf *conf, int num) in grow_stripes()
2482 static int resize_chunks(struct r5conf *conf, int new_disks, int new_sectors) in resize_chunks()
2515 static int resize_stripes(struct r5conf *conf, int newsize) in resize_stripes()
2689 static int drop_one_stripe(struct r5conf *conf) in drop_one_stripe()
2707 static void shrink_stripes(struct r5conf *conf) in shrink_stripes()
2720 struct r5conf *conf = sh->raid_conf; in raid5_end_read_request() local
2848 struct r5conf *conf = sh->raid_conf; in raid5_end_write_request() local
2921 struct r5conf *conf = mddev->private; in raid5_error() local
2957 sector_t raid5_compute_sector(struct r5conf *conf, sector_t r_sector, in raid5_compute_sector()
3161 struct r5conf *conf = sh->raid_conf; in raid5_compute_blocknr() local
3317 static inline bool delay_towrite(struct r5conf *conf, in delay_towrite()
3340 struct r5conf *conf = sh->raid_conf; in schedule_reconstruction() local
3447 struct r5conf *conf = sh->raid_conf; in stripe_bio_overlaps() local
3507 struct r5conf *conf = sh->raid_conf; in __add_stripe_bio() local
3600 static void stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous, in stripe_set_idx()
3617 handle_failed_stripe(struct r5conf *conf, struct stripe_head *sh, in handle_failed_stripe()
3730 handle_failed_sync(struct r5conf *conf, struct stripe_head *sh, in handle_failed_sync()
4027 static void handle_stripe_clean_event(struct r5conf *conf, in handle_stripe_clean_event()
4142 static int handle_stripe_dirtying(struct r5conf *conf, in handle_stripe_dirtying()
4306 static void handle_parity_checks5(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks5()
4399 static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks6()
4576 static void handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh) in handle_stripe_expansion()
4651 struct r5conf *conf = sh->raid_conf; in analyse_stripe() local
4936 struct r5conf *conf = sh->raid_conf; in handle_stripe() local
5330 static void raid5_activate_delayed(struct r5conf *conf) in raid5_activate_delayed()
5348 static void activate_bit_delay(struct r5conf *conf, in activate_bit_delay()
5367 struct r5conf *conf = mddev->private; in in_chunk_boundary() local
5381 static void add_bio_to_retry(struct bio *bi,struct r5conf *conf) in add_bio_to_retry()
5394 static struct bio *remove_bio_from_retry(struct r5conf *conf, in remove_bio_from_retry()
5426 struct r5conf *conf = mddev->private; in raid5_align_endio() local
5447 struct r5conf *conf = mddev->private; in raid5_read_one_chunk() local
5529 struct r5conf *conf = mddev->private; in chunk_aligned_read() local
5552 static struct stripe_head *__get_priority_stripe(struct r5conf *conf, int group) in __get_priority_stripe()
5657 struct r5conf *conf = mddev->private; in raid5_unplug() local
5720 struct r5conf *conf = mddev->private; in make_discard_request() local
5819 static bool stripe_ahead_of_reshape(struct mddev *mddev, struct r5conf *conf, in stripe_ahead_of_reshape()
5846 static int add_all_stripe_bios(struct r5conf *conf, in add_all_stripe_bios()
5906 struct r5conf *conf, sector_t logical_sector) in get_reshape_loc()
5932 struct r5conf *conf, struct stripe_request_ctx *ctx, in make_stripe_request()
6041 static sector_t raid5_bio_lowest_chunk_sector(struct r5conf *conf, in raid5_bio_lowest_chunk_sector()
6073 struct r5conf *conf = mddev->private; in raid5_make_request() local
6220 struct r5conf *conf = mddev->private; in reshape_request() local
6489 struct r5conf *conf = mddev->private; in raid5_sync_request() local
6580 static int retry_aligned_read(struct r5conf *conf, struct bio *raid_bio, in retry_aligned_read()
6643 static int handle_active_stripes(struct r5conf *conf, int group, in handle_active_stripes()
6697 struct r5conf *conf = group->conf; in raid5_do_work() local
6747 struct r5conf *conf = mddev->private; in raid5d() local
6830 struct r5conf *conf; in raid5_show_stripe_cache_size() local
6844 struct r5conf *conf = mddev->private; in raid5_set_cache_size() local
6874 struct r5conf *conf; in raid5_store_stripe_cache_size() local
6903 struct r5conf *conf = mddev->private; in raid5_show_rmw_level() local
6913 struct r5conf *conf = mddev->private; in raid5_store_rmw_level() local
6945 struct r5conf *conf; in raid5_show_stripe_size() local
6960 struct r5conf *conf; in raid5_store_stripe_size() local
7036 struct r5conf *conf; in raid5_show_preread_threshold() local
7049 struct r5conf *conf; in raid5_store_preread_threshold() local
7081 struct r5conf *conf; in raid5_show_skip_copy() local
7094 struct r5conf *conf; in raid5_store_skip_copy() local
7133 struct r5conf *conf = mddev->private; in stripe_cache_active_show() local
7146 struct r5conf *conf; in raid5_show_group_thread_cnt() local
7162 struct r5conf *conf; in raid5_store_group_thread_cnt() local
7231 static int alloc_thread_groups(struct r5conf *conf, int cnt, int *group_cnt, in alloc_thread_groups()
7276 static void free_thread_groups(struct r5conf *conf) in free_thread_groups()
7287 struct r5conf *conf = mddev->private; in raid5_size() local
7300 static void free_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu) in free_scratch_buffer()
7308 static int alloc_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu) in alloc_scratch_buffer()
7332 struct r5conf *conf = hlist_entry_safe(node, struct r5conf, node); in raid456_cpu_dead() local
7338 static void raid5_free_percpu(struct r5conf *conf) in raid5_free_percpu()
7347 static void free_conf(struct r5conf *conf) in free_conf()
7369 struct r5conf *conf = hlist_entry_safe(node, struct r5conf, node); in raid456_cpu_up_prepare() local
7380 static int raid5_alloc_percpu(struct r5conf *conf) in raid5_alloc_percpu()
7401 struct r5conf *conf = shrink->private_data; in raid5_cache_scan() local
7422 struct r5conf *conf = shrink->private_data; in raid5_cache_count() local
7434 struct r5conf *conf; in setup_conf() local
7721 struct r5conf *conf = mddev->private; in raid5_set_limits() local
7782 struct r5conf *conf; in raid5_run() local
8060 struct r5conf *conf = priv; in raid5_free() local
8068 struct r5conf *conf = mddev->private; in raid5_status() local
8084 static void print_raid5_conf(struct r5conf *conf) in print_raid5_conf()
8110 struct r5conf *conf = mddev->private; in raid5_spare_active() local
8153 struct r5conf *conf = mddev->private; in raid5_remove_disk() local
8233 struct r5conf *conf = mddev->private; in raid5_add_disk() local
8323 struct r5conf *conf = mddev->private; in raid5_resize() local
8359 struct r5conf *conf = mddev->private; in check_stripe_cache() local
8375 struct r5conf *conf = mddev->private; in check_reshape() local
8419 struct r5conf *conf = mddev->private; in raid5_start_reshape() local
8545 static void end_reshape(struct r5conf *conf) in end_reshape()
8575 struct r5conf *conf = mddev->private; in raid5_finish_reshape() local
8606 struct r5conf *conf = mddev->private; in raid5_quiesce() local
8737 struct r5conf *conf = mddev->private; in raid5_check_reshape() local
8880 struct r5conf *conf; in raid5_change_consistency_policy() local
8938 struct r5conf *conf = mddev->private; in raid5_start() local
8950 struct r5conf *conf = mddev->private; in raid5_prepare_suspend() local