Lines Matching refs:r5conf

71 static inline struct hlist_head *stripe_hash(struct r5conf *conf, sector_t sect)  in stripe_hash()
77 static inline int stripe_hash_locks_hash(struct r5conf *conf, sector_t sect) in stripe_hash_locks_hash()
82 static inline void lock_device_hash_lock(struct r5conf *conf, int hash) in lock_device_hash_lock()
88 static inline void unlock_device_hash_lock(struct r5conf *conf, int hash) in unlock_device_hash_lock()
94 static inline void lock_all_device_hash_locks_irq(struct r5conf *conf) in lock_all_device_hash_locks_irq()
103 static inline void unlock_all_device_hash_locks_irq(struct r5conf *conf) in unlock_all_device_hash_locks_irq()
151 static void print_raid5_conf (struct r5conf *conf);
169 struct r5conf *conf = sh->raid_conf; in raid5_wakeup_stripe_thread()
213 static void do_release_stripe(struct r5conf *conf, struct stripe_head *sh, in do_release_stripe()
298 static void __release_stripe(struct r5conf *conf, struct stripe_head *sh, in __release_stripe()
312 static void release_inactive_stripe_list(struct r5conf *conf, in release_inactive_stripe_list()
355 static int release_stripe_list(struct r5conf *conf, in release_stripe_list()
385 struct r5conf *conf = sh->raid_conf; in raid5_release_stripe()
422 static inline void insert_hash(struct r5conf *conf, struct stripe_head *sh) in insert_hash()
433 static struct stripe_head *get_free_stripe(struct r5conf *conf, int hash) in get_free_stripe()
491 init_stripe_shared_pages(struct stripe_head *sh, struct r5conf *conf, int disks) in init_stripe_shared_pages()
563 static void stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous,
568 struct r5conf *conf = sh->raid_conf; in init_stripe()
608 static struct stripe_head *__find_stripe(struct r5conf *conf, sector_t sector, in __find_stripe()
634 int raid5_calc_degraded(struct r5conf *conf) in raid5_calc_degraded()
690 static bool has_failed(struct r5conf *conf) in has_failed()
704 raid5_get_active_stripe(struct r5conf *conf, sector_t sector, in raid5_get_active_stripe()
807 struct r5conf *conf = sh->raid_conf; in stripe_can_batch()
817 static void stripe_add_to_batch_list(struct r5conf *conf, struct stripe_head *sh) in stripe_add_to_batch_list()
931 static int use_new_offset(struct r5conf *conf, struct stripe_head *sh) in use_new_offset()
970 static void dispatch_defer_bios(struct r5conf *conf, int target, in dispatch_defer_bios()
1015 static void flush_deferred_bios(struct r5conf *conf) in flush_deferred_bios()
1030 static void defer_issue_bios(struct r5conf *conf, sector_t sector, in defer_issue_bios()
1059 struct r5conf *conf = sh->raid_conf; in ops_run_io()
1316 struct r5conf *conf = sh->raid_conf; in async_copy_data()
1374 struct r5conf *conf = sh->raid_conf; in ops_complete_biofill()
1413 struct r5conf *conf = sh->raid_conf; in ops_run_biofill()
1858 struct r5conf *conf = sh->raid_conf; in ops_run_biodrain()
2215 struct r5conf *conf = sh->raid_conf; in raid_run_ops()
2294 int disks, struct r5conf *conf) in alloc_stripe()
2333 static int grow_one_stripe(struct r5conf *conf, gfp_t gfp) in grow_one_stripe()
2356 static int grow_stripes(struct r5conf *conf, int num) in grow_stripes()
2426 static int resize_chunks(struct r5conf *conf, int new_disks, int new_sectors) in resize_chunks()
2461 static int resize_stripes(struct r5conf *conf, int newsize) in resize_stripes()
2635 static int drop_one_stripe(struct r5conf *conf) in drop_one_stripe()
2653 static void shrink_stripes(struct r5conf *conf) in shrink_stripes()
2666 struct r5conf *conf = sh->raid_conf; in raid5_end_read_request()
2797 struct r5conf *conf = sh->raid_conf; in raid5_end_write_request()
2876 struct r5conf *conf = mddev->private; in raid5_error()
2912 sector_t raid5_compute_sector(struct r5conf *conf, sector_t r_sector, in raid5_compute_sector()
3116 struct r5conf *conf = sh->raid_conf; in raid5_compute_blocknr()
3272 static inline bool delay_towrite(struct r5conf *conf, in delay_towrite()
3295 struct r5conf *conf = sh->raid_conf; in schedule_reconstruction()
3408 struct r5conf *conf = sh->raid_conf; in add_stripe_bio()
3529 static void end_reshape(struct r5conf *conf);
3531 static void stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous, in stripe_set_idx()
3548 handle_failed_stripe(struct r5conf *conf, struct stripe_head *sh, in handle_failed_stripe()
3661 handle_failed_sync(struct r5conf *conf, struct stripe_head *sh, in handle_failed_sync()
3960 static void handle_stripe_clean_event(struct r5conf *conf, in handle_stripe_clean_event()
4075 static int handle_stripe_dirtying(struct r5conf *conf, in handle_stripe_dirtying()
4239 static void handle_parity_checks5(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks5()
4332 static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks6()
4509 static void handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh) in handle_stripe_expansion()
4583 struct r5conf *conf = sh->raid_conf; in analyse_stripe()
4878 struct r5conf *conf = sh->raid_conf; in handle_stripe()
5270 static void raid5_activate_delayed(struct r5conf *conf) in raid5_activate_delayed()
5287 static void activate_bit_delay(struct r5conf *conf, in activate_bit_delay()
5306 struct r5conf *conf = mddev->private; in in_chunk_boundary()
5322 static void add_bio_to_retry(struct bio *bi,struct r5conf *conf) in add_bio_to_retry()
5335 static struct bio *remove_bio_from_retry(struct r5conf *conf, in remove_bio_from_retry()
5366 struct r5conf *conf; in raid5_align_endio()
5393 struct r5conf *conf = mddev->private; in raid5_read_one_chunk()
5489 struct r5conf *conf = mddev->private; in chunk_aligned_read()
5512 static struct stripe_head *__get_priority_stripe(struct r5conf *conf, int group) in __get_priority_stripe()
5616 struct r5conf *conf = mddev->private; in raid5_unplug()
5679 struct r5conf *conf = mddev->private; in make_discard_request()
5766 struct r5conf *conf = mddev->private; in raid5_make_request()
5950 struct r5conf *conf = mddev->private; in reshape_request()
6211 struct r5conf *conf = mddev->private; in raid5_sync_request()
6302 static int retry_aligned_read(struct r5conf *conf, struct bio *raid_bio, in retry_aligned_read()
6365 static int handle_active_stripes(struct r5conf *conf, int group, in handle_active_stripes()
6420 struct r5conf *conf = group->conf; in raid5_do_work()
6470 struct r5conf *conf = mddev->private; in raid5d()
6561 struct r5conf *conf; in raid5_show_stripe_cache_size()
6575 struct r5conf *conf = mddev->private; in raid5_set_cache_size()
6605 struct r5conf *conf; in raid5_store_stripe_cache_size()
6634 struct r5conf *conf = mddev->private; in raid5_show_rmw_level()
6644 struct r5conf *conf = mddev->private; in raid5_store_rmw_level()
6676 struct r5conf *conf; in raid5_show_stripe_size()
6691 struct r5conf *conf; in raid5_store_stripe_size()
6771 struct r5conf *conf; in raid5_show_preread_threshold()
6784 struct r5conf *conf; in raid5_store_preread_threshold()
6816 struct r5conf *conf; in raid5_show_skip_copy()
6829 struct r5conf *conf; in raid5_store_skip_copy()
6868 struct r5conf *conf = mddev->private; in stripe_cache_active_show()
6881 struct r5conf *conf; in raid5_show_group_thread_cnt()
6891 static int alloc_thread_groups(struct r5conf *conf, int cnt,
6897 struct r5conf *conf; in raid5_store_group_thread_cnt()
6965 static int alloc_thread_groups(struct r5conf *conf, int cnt, int *group_cnt, in alloc_thread_groups()
7010 static void free_thread_groups(struct r5conf *conf) in free_thread_groups()
7021 struct r5conf *conf = mddev->private; in raid5_size()
7034 static void free_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu) in free_scratch_buffer()
7042 static int alloc_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu) in alloc_scratch_buffer()
7065 struct r5conf *conf = hlist_entry_safe(node, struct r5conf, node); in raid456_cpu_dead()
7071 static void raid5_free_percpu(struct r5conf *conf) in raid5_free_percpu()
7080 static void free_conf(struct r5conf *conf) in free_conf()
7102 struct r5conf *conf = hlist_entry_safe(node, struct r5conf, node); in raid456_cpu_up_prepare()
7113 static int raid5_alloc_percpu(struct r5conf *conf) in raid5_alloc_percpu()
7134 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker); in raid5_cache_scan()
7155 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker); in raid5_cache_count()
7163 static struct r5conf *setup_conf(struct mddev *mddev) in setup_conf()
7165 struct r5conf *conf; in setup_conf()
7204 conf = kzalloc(sizeof(struct r5conf), GFP_KERNEL); in setup_conf()
7440 static void raid5_set_io_opt(struct r5conf *conf) in raid5_set_io_opt()
7448 struct r5conf *conf; in raid5_run()
7799 struct r5conf *conf = priv; in raid5_free()
7807 struct r5conf *conf = mddev->private; in raid5_status()
7822 static void print_raid5_conf (struct r5conf *conf) in print_raid5_conf()
7849 struct r5conf *conf = mddev->private; in raid5_spare_active()
7891 struct r5conf *conf = mddev->private; in raid5_remove_disk()
7976 struct r5conf *conf = mddev->private; in raid5_add_disk()
8064 struct r5conf *conf = mddev->private; in raid5_resize()
8099 struct r5conf *conf = mddev->private; in check_stripe_cache()
8115 struct r5conf *conf = mddev->private; in check_reshape()
8159 struct r5conf *conf = mddev->private; in raid5_start_reshape()
8298 static void end_reshape(struct r5conf *conf) in end_reshape()
8328 struct r5conf *conf = mddev->private; in raid5_finish_reshape()
8358 struct r5conf *conf = mddev->private; in raid5_quiesce()
8431 if ((chunksect<<9) < RAID5_STRIPE_SIZE((struct r5conf *)mddev->private)) in raid5_takeover_raid1()
8486 struct r5conf *conf = mddev->private; in raid5_check_reshape()
8629 struct r5conf *conf; in raid5_change_consistency_policy()
8691 struct r5conf *conf = mddev->private; in raid5_start()