Lines Matching refs:r5conf
76 static inline struct hlist_head *stripe_hash(struct r5conf *conf, sector_t sect) in stripe_hash()
194 static void print_raid5_conf (struct r5conf *conf);
203 static void do_release_stripe(struct r5conf *conf, struct stripe_head *sh) in do_release_stripe()
236 static void __release_stripe(struct r5conf *conf, struct stripe_head *sh) in __release_stripe()
244 struct r5conf *conf = sh->raid_conf; in release_stripe()
263 static inline void insert_hash(struct r5conf *conf, struct stripe_head *sh) in insert_hash()
275 static struct stripe_head *get_free_stripe(struct r5conf *conf) in get_free_stripe()
323 static void stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous,
328 struct r5conf *conf = sh->raid_conf; in init_stripe()
364 static struct stripe_head *__find_stripe(struct r5conf *conf, sector_t sector, in __find_stripe()
390 static int calc_degraded(struct r5conf *conf) in calc_degraded()
446 static int has_failed(struct r5conf *conf) in has_failed()
460 get_active_stripe(struct r5conf *conf, sector_t sector, in get_active_stripe()
516 static int use_new_offset(struct r5conf *conf, struct stripe_head *sh) in use_new_offset()
541 struct r5conf *conf = sh->raid_conf; in ops_run_io()
1416 struct r5conf *conf = sh->raid_conf; in raid_run_ops()
1477 static int grow_one_stripe(struct r5conf *conf) in grow_one_stripe()
1501 static int grow_stripes(struct r5conf *conf, int num) in grow_stripes()
1550 static int resize_stripes(struct r5conf *conf, int newsize) in resize_stripes()
1692 static int drop_one_stripe(struct r5conf *conf) in drop_one_stripe()
1708 static void shrink_stripes(struct r5conf *conf) in shrink_stripes()
1721 struct r5conf *conf = sh->raid_conf; in raid5_end_read_request()
1841 struct r5conf *conf = sh->raid_conf; in raid5_end_write_request()
1936 struct r5conf *conf = mddev->private; in error()
1962 static sector_t raid5_compute_sector(struct r5conf *conf, sector_t r_sector, in raid5_compute_sector()
2167 struct r5conf *conf = sh->raid_conf; in compute_blocknr()
2292 struct r5conf *conf = sh->raid_conf; in schedule_reconstruction()
2383 struct r5conf *conf = sh->raid_conf; in add_stripe_bio()
2452 static void end_reshape(struct r5conf *conf);
2454 static void stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous, in stripe_set_idx()
2471 handle_failed_stripe(struct r5conf *conf, struct stripe_head *sh, in handle_failed_stripe()
2579 handle_failed_sync(struct r5conf *conf, struct stripe_head *sh, in handle_failed_sync()
2756 static void handle_stripe_clean_event(struct r5conf *conf, in handle_stripe_clean_event()
2813 static void handle_stripe_dirtying(struct r5conf *conf, in handle_stripe_dirtying()
2939 static void handle_parity_checks5(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks5()
3027 static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks6()
3190 static void handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh) in handle_stripe_expansion()
3262 struct r5conf *conf = sh->raid_conf; in analyse_stripe()
3444 struct r5conf *conf = sh->raid_conf; in handle_stripe()
3765 static void raid5_activate_delayed(struct r5conf *conf) in raid5_activate_delayed()
3781 static void activate_bit_delay(struct r5conf *conf) in activate_bit_delay()
3797 struct r5conf *conf = mddev->private; in md_raid5_congested()
3865 static void add_bio_to_retry(struct bio *bi,struct r5conf *conf) in add_bio_to_retry()
3879 static struct bio *remove_bio_from_retry(struct r5conf *conf) in remove_bio_from_retry()
3913 struct r5conf *conf; in raid5_align_endio()
3963 struct r5conf *conf = mddev->private; in chunk_aligned_read()
4056 static struct stripe_head *__get_priority_stripe(struct r5conf *conf) in __get_priority_stripe()
4110 struct r5conf *conf = mddev->private; in raid5_unplug()
4161 struct r5conf *conf = mddev->private; in make_discard_request()
4251 struct r5conf *conf = mddev->private; in make_request()
4416 struct r5conf *conf = mddev->private; in reshape_request()
4636 struct r5conf *conf = mddev->private; in sync_request()
4721 static int retry_aligned_read(struct r5conf *conf, struct bio *raid_bio) in retry_aligned_read()
4787 static int handle_active_stripes(struct r5conf *conf) in handle_active_stripes()
4821 struct r5conf *conf = mddev->private; in raid5d()
4882 struct r5conf *conf = mddev->private; in raid5_show_stripe_cache_size()
4892 struct r5conf *conf = mddev->private; in raid5_set_cache_size()
4918 struct r5conf *conf = mddev->private; in raid5_store_stripe_cache_size()
4943 struct r5conf *conf = mddev->private; in raid5_show_preread_threshold()
4953 struct r5conf *conf = mddev->private; in raid5_store_preread_threshold()
4977 struct r5conf *conf = mddev->private; in stripe_cache_active_show()
5001 struct r5conf *conf = mddev->private; in raid5_size()
5014 static void raid5_free_percpu(struct r5conf *conf) in raid5_free_percpu()
5036 static void free_conf(struct r5conf *conf) in free_conf()
5049 struct r5conf *conf = container_of(nfb, struct r5conf, cpu_notify); in raid456_cpu_notify()
5084 static int raid5_alloc_percpu(struct r5conf *conf) in raid5_alloc_percpu()
5126 static struct r5conf *setup_conf(struct mddev *mddev) in setup_conf()
5128 struct r5conf *conf; in setup_conf()
5163 conf = kzalloc(sizeof(struct r5conf), GFP_KERNEL); in setup_conf()
5304 struct r5conf *conf; in run()
5637 struct r5conf *conf = mddev->private; in stop()
5650 struct r5conf *conf = mddev->private; in status()
5663 static void print_raid5_conf (struct r5conf *conf) in print_raid5_conf()
5690 struct r5conf *conf = mddev->private; in raid5_spare_active()
5732 struct r5conf *conf = mddev->private; in raid5_remove_disk()
5794 struct r5conf *conf = mddev->private; in raid5_add_disk()
5893 struct r5conf *conf = mddev->private; in check_stripe_cache()
5909 struct r5conf *conf = mddev->private; in check_reshape()
5939 struct r5conf *conf = mddev->private; in raid5_start_reshape()
6062 static void end_reshape(struct r5conf *conf) in end_reshape()
6095 struct r5conf *conf = mddev->private; in raid5_finish_reshape()
6129 struct r5conf *conf = mddev->private; in raid5_quiesce()
6258 struct r5conf *conf = mddev->private; in raid5_check_reshape()