Lines Matching refs:r5conf

87 static inline struct hlist_head *stripe_hash(struct r5conf *conf, sector_t sect)  in stripe_hash()
98 static inline void lock_device_hash_lock(struct r5conf *conf, int hash) in lock_device_hash_lock()
104 static inline void unlock_device_hash_lock(struct r5conf *conf, int hash) in unlock_device_hash_lock()
110 static inline void lock_all_device_hash_locks_irq(struct r5conf *conf) in lock_all_device_hash_locks_irq()
120 static inline void unlock_all_device_hash_locks_irq(struct r5conf *conf) in unlock_all_device_hash_locks_irq()
241 static void print_raid5_conf (struct r5conf *conf);
252 struct r5conf *conf = sh->raid_conf; in raid5_wakeup_stripe_thread()
293 static void do_release_stripe(struct r5conf *conf, struct stripe_head *sh, in do_release_stripe()
328 static void __release_stripe(struct r5conf *conf, struct stripe_head *sh, in __release_stripe()
342 static void release_inactive_stripe_list(struct r5conf *conf, in release_inactive_stripe_list()
383 static int release_stripe_list(struct r5conf *conf, in release_stripe_list()
415 struct r5conf *conf = sh->raid_conf; in release_stripe()
454 static inline void insert_hash(struct r5conf *conf, struct stripe_head *sh) in insert_hash()
465 static struct stripe_head *get_free_stripe(struct r5conf *conf, int hash) in get_free_stripe()
518 static void stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous,
523 struct r5conf *conf = sh->raid_conf; in init_stripe()
563 static struct stripe_head *__find_stripe(struct r5conf *conf, sector_t sector, in __find_stripe()
589 static int calc_degraded(struct r5conf *conf) in calc_degraded()
645 static int has_failed(struct r5conf *conf) in has_failed()
659 get_active_stripe(struct r5conf *conf, sector_t sector, in get_active_stripe()
757 static void stripe_add_to_batch_list(struct r5conf *conf, struct stripe_head *sh) in stripe_add_to_batch_list()
860 static int use_new_offset(struct r5conf *conf, struct stripe_head *sh) in use_new_offset()
885 struct r5conf *conf = sh->raid_conf; in ops_run_io()
1916 struct r5conf *conf = sh->raid_conf; in raid_run_ops()
1995 static int grow_one_stripe(struct r5conf *conf, gfp_t gfp) in grow_one_stripe()
2020 static int grow_stripes(struct r5conf *conf, int num) in grow_stripes()
2078 static int resize_chunks(struct r5conf *conf, int new_disks, int new_sectors) in resize_chunks()
2119 static int resize_stripes(struct r5conf *conf, int newsize) in resize_stripes()
2257 static int drop_one_stripe(struct r5conf *conf) in drop_one_stripe()
2275 static void shrink_stripes(struct r5conf *conf) in shrink_stripes()
2289 struct r5conf *conf = sh->raid_conf; in raid5_end_read_request()
2412 struct r5conf *conf = sh->raid_conf; in raid5_end_write_request()
2510 struct r5conf *conf = mddev->private; in error()
2536 static sector_t raid5_compute_sector(struct r5conf *conf, sector_t r_sector, in raid5_compute_sector()
2740 struct r5conf *conf = sh->raid_conf; in compute_blocknr()
2863 struct r5conf *conf = sh->raid_conf; in schedule_reconstruction()
2957 struct r5conf *conf = sh->raid_conf; in add_stripe_bio()
3054 static void end_reshape(struct r5conf *conf);
3056 static void stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous, in stripe_set_idx()
3073 handle_failed_stripe(struct r5conf *conf, struct stripe_head *sh, in handle_failed_stripe()
3188 handle_failed_sync(struct r5conf *conf, struct stripe_head *sh, in handle_failed_sync()
3447 static void handle_stripe_clean_event(struct r5conf *conf, in handle_stripe_clean_event()
3549 static void handle_stripe_dirtying(struct r5conf *conf, in handle_stripe_dirtying()
3681 static void handle_parity_checks5(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks5()
3769 static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks6()
3933 static void handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh) in handle_stripe_expansion()
4006 struct r5conf *conf = sh->raid_conf; in analyse_stripe()
4285 struct r5conf *conf = sh->raid_conf; in handle_stripe()
4621 static void raid5_activate_delayed(struct r5conf *conf) in raid5_activate_delayed()
4638 static void activate_bit_delay(struct r5conf *conf, in activate_bit_delay()
4657 struct r5conf *conf = mddev->private; in raid5_congested()
4718 static void add_bio_to_retry(struct bio *bi,struct r5conf *conf) in add_bio_to_retry()
4731 static struct bio *remove_bio_from_retry(struct r5conf *conf) in remove_bio_from_retry()
4764 struct r5conf *conf; in raid5_align_endio()
4812 struct r5conf *conf = mddev->private; in chunk_aligned_read()
4906 static struct stripe_head *__get_priority_stripe(struct r5conf *conf, int group) in __get_priority_stripe()
4995 struct r5conf *conf = mddev->private; in raid5_unplug()
5058 struct r5conf *conf = mddev->private; in make_discard_request()
5150 struct r5conf *conf = mddev->private; in make_request()
5339 struct r5conf *conf = mddev->private; in reshape_request()
5569 struct r5conf *conf = mddev->private; in sync_request()
5659 static int retry_aligned_read(struct r5conf *conf, struct bio *raid_bio) in retry_aligned_read()
5725 static int handle_active_stripes(struct r5conf *conf, int group, in handle_active_stripes()
5772 struct r5conf *conf = group->conf; in raid5_do_work()
5812 struct r5conf *conf = mddev->private; in raid5d()
5887 struct r5conf *conf; in raid5_show_stripe_cache_size()
5900 struct r5conf *conf = mddev->private; in raid5_set_cache_size()
5931 struct r5conf *conf; in raid5_store_stripe_cache_size()
5960 struct r5conf *conf = mddev->private; in raid5_show_rmw_level()
5970 struct r5conf *conf = mddev->private; in raid5_store_rmw_level()
6003 struct r5conf *conf; in raid5_show_preread_threshold()
6016 struct r5conf *conf; in raid5_store_preread_threshold()
6048 struct r5conf *conf; in raid5_show_skip_copy()
6061 struct r5conf *conf; in raid5_store_skip_copy()
6100 struct r5conf *conf = mddev->private; in stripe_cache_active_show()
6113 struct r5conf *conf; in raid5_show_group_thread_cnt()
6123 static int alloc_thread_groups(struct r5conf *conf, int cnt,
6130 struct r5conf *conf; in raid5_store_group_thread_cnt()
6194 static int alloc_thread_groups(struct r5conf *conf, int cnt, in alloc_thread_groups()
6241 static void free_thread_groups(struct r5conf *conf) in free_thread_groups()
6252 struct r5conf *conf = mddev->private; in raid5_size()
6265 static void free_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu) in free_scratch_buffer()
6274 static int alloc_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu) in alloc_scratch_buffer()
6294 static void raid5_free_percpu(struct r5conf *conf) in raid5_free_percpu()
6313 static void free_conf(struct r5conf *conf) in free_conf()
6329 struct r5conf *conf = container_of(nfb, struct r5conf, cpu_notify); in raid456_cpu_notify()
6353 static int raid5_alloc_percpu(struct r5conf *conf) in raid5_alloc_percpu()
6393 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker); in raid5_cache_scan()
6414 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker); in raid5_cache_count()
6422 static struct r5conf *setup_conf(struct mddev *mddev) in setup_conf()
6424 struct r5conf *conf; in setup_conf()
6462 conf = kzalloc(sizeof(struct r5conf), GFP_KERNEL); in setup_conf()
6644 struct r5conf *conf; in run()
6984 struct r5conf *conf = priv; in raid5_free()
6992 struct r5conf *conf = mddev->private; in status()
7005 static void print_raid5_conf (struct r5conf *conf) in print_raid5_conf()
7032 struct r5conf *conf = mddev->private; in raid5_spare_active()
7074 struct r5conf *conf = mddev->private; in raid5_remove_disk()
7136 struct r5conf *conf = mddev->private; in raid5_add_disk()
7235 struct r5conf *conf = mddev->private; in check_stripe_cache()
7251 struct r5conf *conf = mddev->private; in check_reshape()
7290 struct r5conf *conf = mddev->private; in raid5_start_reshape()
7429 static void end_reshape(struct r5conf *conf) in end_reshape()
7462 struct r5conf *conf = mddev->private; in raid5_finish_reshape()
7496 struct r5conf *conf = mddev->private; in raid5_quiesce()
7623 struct r5conf *conf = mddev->private; in raid5_check_reshape()