Lines Matching defs:conf
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()
248 struct r5conf *conf = sh->raid_conf; in raid5_wakeup_stripe_thread() local
289 static void do_release_stripe(struct r5conf *conf, struct stripe_head *sh, in do_release_stripe()
324 static void __release_stripe(struct r5conf *conf, struct stripe_head *sh, in __release_stripe()
338 static void release_inactive_stripe_list(struct r5conf *conf, in release_inactive_stripe_list()
381 static int release_stripe_list(struct r5conf *conf, in release_stripe_list()
413 struct r5conf *conf = sh->raid_conf; in raid5_release_stripe() local
452 static inline void insert_hash(struct r5conf *conf, struct stripe_head *sh) in insert_hash()
463 static struct stripe_head *get_free_stripe(struct r5conf *conf, int hash) in get_free_stripe()
521 struct r5conf *conf = sh->raid_conf; in init_stripe() local
561 static struct stripe_head *__find_stripe(struct r5conf *conf, sector_t sector, in __find_stripe()
587 static int calc_degraded(struct r5conf *conf) in calc_degraded()
643 static int has_failed(struct r5conf *conf) in has_failed()
657 raid5_get_active_stripe(struct r5conf *conf, sector_t sector, in raid5_get_active_stripe()
749 struct r5conf *conf = sh->raid_conf; in stripe_can_batch() local
759 static void stripe_add_to_batch_list(struct r5conf *conf, struct stripe_head *sh) in stripe_add_to_batch_list()
862 static int use_new_offset(struct r5conf *conf, struct stripe_head *sh) in use_new_offset()
887 struct r5conf *conf = sh->raid_conf; in ops_run_io() local
1918 struct r5conf *conf = sh->raid_conf; in raid_run_ops() local
1997 static int grow_one_stripe(struct r5conf *conf, gfp_t gfp) in grow_one_stripe()
2022 static int grow_stripes(struct r5conf *conf, int num) in grow_stripes()
2080 static int resize_chunks(struct r5conf *conf, int new_disks, int new_sectors) in resize_chunks()
2121 static int resize_stripes(struct r5conf *conf, int newsize) in resize_stripes()
2259 static int drop_one_stripe(struct r5conf *conf) in drop_one_stripe()
2277 static void shrink_stripes(struct r5conf *conf) in shrink_stripes()
2290 struct r5conf *conf = sh->raid_conf; in raid5_end_read_request() local
2412 struct r5conf *conf = sh->raid_conf; in raid5_end_write_request() local
2507 struct r5conf *conf = mddev->private; in error() local
2534 sector_t raid5_compute_sector(struct r5conf *conf, sector_t r_sector, in raid5_compute_sector()
2738 struct r5conf *conf = sh->raid_conf; in raid5_compute_blocknr() local
2861 struct r5conf *conf = sh->raid_conf; in schedule_reconstruction() local
2955 struct r5conf *conf = sh->raid_conf; in add_stripe_bio() local
3054 static void stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous, in stripe_set_idx()
3071 handle_failed_stripe(struct r5conf *conf, struct stripe_head *sh, in handle_failed_stripe()
3192 handle_failed_sync(struct r5conf *conf, struct stripe_head *sh, in handle_failed_sync()
3451 static void handle_stripe_clean_event(struct r5conf *conf, in handle_stripe_clean_event()
3555 static void handle_stripe_dirtying(struct r5conf *conf, in handle_stripe_dirtying()
3687 static void handle_parity_checks5(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks5()
3775 static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks6()
3939 static void handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh) in handle_stripe_expansion()
4012 struct r5conf *conf = sh->raid_conf; in analyse_stripe() local
4294 struct r5conf *conf = sh->raid_conf; in handle_stripe() local
4641 static void raid5_activate_delayed(struct r5conf *conf) in raid5_activate_delayed()
4658 static void activate_bit_delay(struct r5conf *conf, in activate_bit_delay()
4677 struct r5conf *conf = mddev->private; in raid5_congested() local
4695 struct r5conf *conf = mddev->private; in in_chunk_boundary() local
4709 static void add_bio_to_retry(struct bio *bi,struct r5conf *conf) in add_bio_to_retry()
4722 static struct bio *remove_bio_from_retry(struct r5conf *conf) in remove_bio_from_retry()
4755 struct r5conf *conf; in raid5_align_endio() local
4784 struct r5conf *conf = mddev->private; in raid5_read_one_chunk() local
4901 static struct stripe_head *__get_priority_stripe(struct r5conf *conf, int group) in __get_priority_stripe()
4990 struct r5conf *conf = mddev->private; in raid5_unplug() local
5053 struct r5conf *conf = mddev->private; in make_discard_request() local
5145 struct r5conf *conf = mddev->private; in make_request() local
5343 struct r5conf *conf = mddev->private; in reshape_request() local
5585 struct r5conf *conf = mddev->private; in sync_request() local
5675 static int retry_aligned_read(struct r5conf *conf, struct bio *raid_bio) in retry_aligned_read()
5741 static int handle_active_stripes(struct r5conf *conf, int group, in handle_active_stripes()
5794 struct r5conf *conf = group->conf; in raid5_do_work() local
5834 struct r5conf *conf = mddev->private; in raid5d() local
5923 struct r5conf *conf; in raid5_show_stripe_cache_size() local
5936 struct r5conf *conf = mddev->private; in raid5_set_cache_size() local
5967 struct r5conf *conf; in raid5_store_stripe_cache_size() local
5996 struct r5conf *conf = mddev->private; in raid5_show_rmw_level() local
6006 struct r5conf *conf = mddev->private; in raid5_store_rmw_level() local
6039 struct r5conf *conf; in raid5_show_preread_threshold() local
6052 struct r5conf *conf; in raid5_store_preread_threshold() local
6084 struct r5conf *conf; in raid5_show_skip_copy() local
6097 struct r5conf *conf; in raid5_store_skip_copy() local
6136 struct r5conf *conf = mddev->private; in stripe_cache_active_show() local
6149 struct r5conf *conf; in raid5_show_group_thread_cnt() local
6166 struct r5conf *conf; in raid5_store_group_thread_cnt() local
6230 static int alloc_thread_groups(struct r5conf *conf, int cnt, in alloc_thread_groups()
6277 static void free_thread_groups(struct r5conf *conf) in free_thread_groups()
6288 struct r5conf *conf = mddev->private; in raid5_size() local
6301 static void free_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu) in free_scratch_buffer()
6310 static int alloc_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu) in alloc_scratch_buffer()
6330 static void raid5_free_percpu(struct r5conf *conf) in raid5_free_percpu()
6349 static void free_conf(struct r5conf *conf) in free_conf()
6368 struct r5conf *conf = container_of(nfb, struct r5conf, cpu_notify); in raid456_cpu_notify() local
6392 static int raid5_alloc_percpu(struct r5conf *conf) in raid5_alloc_percpu()
6432 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker); in raid5_cache_scan() local
6453 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker); in raid5_cache_count() local
6463 struct r5conf *conf; in setup_conf() local
6688 struct r5conf *conf; in run() local
7054 struct r5conf *conf = priv; in raid5_free() local
7062 struct r5conf *conf = mddev->private; in status() local
7075 static void print_raid5_conf (struct r5conf *conf) in print_raid5_conf()
7102 struct r5conf *conf = mddev->private; in raid5_spare_active() local
7144 struct r5conf *conf = mddev->private; in raid5_remove_disk() local
7215 struct r5conf *conf = mddev->private; in raid5_add_disk() local
7283 struct r5conf *conf = mddev->private; in raid5_resize() local
7320 struct r5conf *conf = mddev->private; in check_stripe_cache() local
7336 struct r5conf *conf = mddev->private; in check_reshape() local
7377 struct r5conf *conf = mddev->private; in raid5_start_reshape() local
7516 static void end_reshape(struct r5conf *conf) in end_reshape()
7550 struct r5conf *conf = mddev->private; in raid5_finish_reshape() local
7584 struct r5conf *conf = mddev->private; in raid5_quiesce() local
7712 struct r5conf *conf = mddev->private; in raid5_check_reshape() local