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()
790 static bool is_inactive_blocked(struct r5conf *conf, int hash) in is_inactive_blocked()
802 struct stripe_head *raid5_get_active_stripe(struct r5conf *conf, in raid5_get_active_stripe()
903 struct r5conf *conf = sh->raid_conf; in stripe_can_batch() local
913 static void stripe_add_to_batch_list(struct r5conf *conf, in stripe_add_to_batch_list()
1011 static int use_new_offset(struct r5conf *conf, struct stripe_head *sh) in use_new_offset()
1051 static void dispatch_defer_bios(struct r5conf *conf, int target, in dispatch_defer_bios()
1096 static void flush_deferred_bios(struct r5conf *conf) in flush_deferred_bios()
1111 static void defer_issue_bios(struct r5conf *conf, sector_t sector, in defer_issue_bios()
1140 struct r5conf *conf = sh->raid_conf; in ops_run_io() local
1386 struct r5conf *conf = sh->raid_conf; in async_copy_data() local
1444 struct r5conf *conf = sh->raid_conf; in ops_complete_biofill() local
1483 struct r5conf *conf = sh->raid_conf; in ops_run_biofill() local
1928 struct r5conf *conf = sh->raid_conf; in ops_run_biodrain() local
2285 struct r5conf *conf = sh->raid_conf; in raid_run_ops() local
2364 int disks, struct r5conf *conf) in alloc_stripe()
2396 static int grow_one_stripe(struct r5conf *conf, gfp_t gfp) in grow_one_stripe()
2419 static int grow_stripes(struct r5conf *conf, int num) in grow_stripes()
2489 static int resize_chunks(struct r5conf *conf, int new_disks, int new_sectors) in resize_chunks()
2522 static int resize_stripes(struct r5conf *conf, int newsize) in resize_stripes()
2696 static int drop_one_stripe(struct r5conf *conf) in drop_one_stripe()
2714 static void shrink_stripes(struct r5conf *conf) in shrink_stripes()
2727 struct r5conf *conf = sh->raid_conf; in raid5_end_read_request() local
2855 struct r5conf *conf = sh->raid_conf; in raid5_end_write_request() local
2932 struct r5conf *conf = mddev->private; in raid5_error() local
2968 sector_t raid5_compute_sector(struct r5conf *conf, sector_t r_sector, in raid5_compute_sector()
3172 struct r5conf *conf = sh->raid_conf; in raid5_compute_blocknr() local
3328 static inline bool delay_towrite(struct r5conf *conf, in delay_towrite()
3351 struct r5conf *conf = sh->raid_conf; in schedule_reconstruction() local
3458 struct r5conf *conf = sh->raid_conf; in stripe_bio_overlaps() local
3518 struct r5conf *conf = sh->raid_conf; in __add_stripe_bio() local
3611 static void stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous, in stripe_set_idx()
3628 handle_failed_stripe(struct r5conf *conf, struct stripe_head *sh, in handle_failed_stripe()
3739 handle_failed_sync(struct r5conf *conf, struct stripe_head *sh, in handle_failed_sync()
4036 static void handle_stripe_clean_event(struct r5conf *conf, in handle_stripe_clean_event()
4151 static int handle_stripe_dirtying(struct r5conf *conf, in handle_stripe_dirtying()
4315 static void handle_parity_checks5(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks5()
4408 static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks6()
4585 static void handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh) in handle_stripe_expansion()
4660 struct r5conf *conf = sh->raid_conf; in analyse_stripe() local
4952 struct r5conf *conf = sh->raid_conf; in handle_stripe() local
5346 static void raid5_activate_delayed(struct r5conf *conf) in raid5_activate_delayed()
5364 static void activate_bit_delay(struct r5conf *conf, in activate_bit_delay()
5383 struct r5conf *conf = mddev->private; in in_chunk_boundary() local
5397 static void add_bio_to_retry(struct bio *bi,struct r5conf *conf) in add_bio_to_retry()
5410 static struct bio *remove_bio_from_retry(struct r5conf *conf, in remove_bio_from_retry()
5442 struct r5conf *conf = mddev->private; in raid5_align_endio() local
5463 struct r5conf *conf = mddev->private; in raid5_read_one_chunk() local
5548 struct r5conf *conf = mddev->private; in chunk_aligned_read() local
5571 static struct stripe_head *__get_priority_stripe(struct r5conf *conf, int group) in __get_priority_stripe()
5676 struct r5conf *conf = mddev->private; in raid5_unplug() local
5739 struct r5conf *conf = mddev->private; in make_discard_request() local
5842 static bool stripe_ahead_of_reshape(struct mddev *mddev, struct r5conf *conf, in stripe_ahead_of_reshape()
5869 static int add_all_stripe_bios(struct r5conf *conf, in add_all_stripe_bios()
5919 struct r5conf *conf, struct stripe_request_ctx *ctx, in make_stripe_request()
6035 static sector_t raid5_bio_lowest_chunk_sector(struct r5conf *conf, in raid5_bio_lowest_chunk_sector()
6066 struct r5conf *conf = mddev->private; in raid5_make_request() local
6204 struct r5conf *conf = mddev->private; in reshape_request() local
6467 struct r5conf *conf = mddev->private; in raid5_sync_request() local
6557 static int retry_aligned_read(struct r5conf *conf, struct bio *raid_bio, in retry_aligned_read()
6620 static int handle_active_stripes(struct r5conf *conf, int group, in handle_active_stripes()
6674 struct r5conf *conf = group->conf; in raid5_do_work() local
6724 struct r5conf *conf = mddev->private; in raid5d() local
6804 struct r5conf *conf; in raid5_show_stripe_cache_size() local
6818 struct r5conf *conf = mddev->private; in raid5_set_cache_size() local
6848 struct r5conf *conf; in raid5_store_stripe_cache_size() local
6877 struct r5conf *conf = mddev->private; in raid5_show_rmw_level() local
6887 struct r5conf *conf = mddev->private; in raid5_store_rmw_level() local
6919 struct r5conf *conf; in raid5_show_stripe_size() local
6934 struct r5conf *conf; in raid5_store_stripe_size() local
7012 struct r5conf *conf; in raid5_show_preread_threshold() local
7025 struct r5conf *conf; in raid5_store_preread_threshold() local
7057 struct r5conf *conf; in raid5_show_skip_copy() local
7070 struct r5conf *conf; in raid5_store_skip_copy() local
7107 struct r5conf *conf = mddev->private; in stripe_cache_active_show() local
7120 struct r5conf *conf; in raid5_show_group_thread_cnt() local
7136 struct r5conf *conf; in raid5_store_group_thread_cnt() local
7201 static int alloc_thread_groups(struct r5conf *conf, int cnt, int *group_cnt, in alloc_thread_groups()
7246 static void free_thread_groups(struct r5conf *conf) in free_thread_groups()
7257 struct r5conf *conf = mddev->private; in raid5_size() local
7270 static void free_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu) in free_scratch_buffer()
7278 static int alloc_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu) in alloc_scratch_buffer()
7302 struct r5conf *conf = hlist_entry_safe(node, struct r5conf, node); in raid456_cpu_dead() local
7308 static void raid5_free_percpu(struct r5conf *conf) in raid5_free_percpu()
7317 static void free_conf(struct r5conf *conf) in free_conf()
7339 struct r5conf *conf = hlist_entry_safe(node, struct r5conf, node); in raid456_cpu_up_prepare() local
7350 static int raid5_alloc_percpu(struct r5conf *conf) in raid5_alloc_percpu()
7371 struct r5conf *conf = shrink->private_data; in raid5_cache_scan() local
7392 struct r5conf *conf = shrink->private_data; in raid5_cache_count() local
7402 struct r5conf *conf; in setup_conf() local
7687 static void raid5_set_io_opt(struct r5conf *conf) in raid5_set_io_opt()
7695 struct r5conf *conf; in raid5_run() local
8028 struct r5conf *conf = priv; in raid5_free() local
8036 struct r5conf *conf = mddev->private; in raid5_status() local
8052 static void print_raid5_conf (struct r5conf *conf) in print_raid5_conf()
8080 struct r5conf *conf = mddev->private; in raid5_spare_active() local
8123 struct r5conf *conf = mddev->private; in raid5_remove_disk() local
8203 struct r5conf *conf = mddev->private; in raid5_add_disk() local
8293 struct r5conf *conf = mddev->private; in raid5_resize() local
8328 struct r5conf *conf = mddev->private; in check_stripe_cache() local
8344 struct r5conf *conf = mddev->private; in check_reshape() local
8388 struct r5conf *conf = mddev->private; in raid5_start_reshape() local
8514 static void end_reshape(struct r5conf *conf) in end_reshape()
8544 struct r5conf *conf = mddev->private; in raid5_finish_reshape() local
8575 struct r5conf *conf = mddev->private; in raid5_quiesce() local
8706 struct r5conf *conf = mddev->private; in raid5_check_reshape() local
8849 struct r5conf *conf; in raid5_change_consistency_policy() local
8907 struct r5conf *conf = mddev->private; in raid5_start() local