Lines Matching refs:r5conf

73 static inline struct hlist_head *stripe_hash(struct r5conf *conf, sector_t sect)
79 static inline int stripe_hash_locks_hash(struct r5conf *conf, sector_t sect)
84 static inline void lock_device_hash_lock(struct r5conf *conf, int hash)
91 static inline void unlock_device_hash_lock(struct r5conf *conf, int hash)
98 static inline void lock_all_device_hash_locks_irq(struct r5conf *conf)
108 static inline void unlock_all_device_hash_locks_irq(struct r5conf *conf)
157 static void print_raid5_conf (struct r5conf *conf);
176 struct r5conf *conf = sh->raid_conf;
220 static void do_release_stripe(struct r5conf *conf, struct stripe_head *sh,
306 static void __release_stripe(struct r5conf *conf, struct stripe_head *sh,
321 static void release_inactive_stripe_list(struct r5conf *conf,
363 static int release_stripe_list(struct r5conf *conf,
394 struct r5conf *conf = sh->raid_conf;
431 static inline void insert_hash(struct r5conf *conf, struct stripe_head *sh)
442 static struct stripe_head *get_free_stripe(struct r5conf *conf, int hash)
500 init_stripe_shared_pages(struct stripe_head *sh, struct r5conf *conf, int disks)
572 static void stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous,
577 struct r5conf *conf = sh->raid_conf;
617 static struct stripe_head *__find_stripe(struct r5conf *conf, sector_t sector,
630 static struct stripe_head *find_get_stripe(struct r5conf *conf,
690 int raid5_calc_degraded(struct r5conf *conf)
746 static bool has_failed(struct r5conf *conf)
791 static bool is_inactive_blocked(struct r5conf *conf, int hash)
803 struct stripe_head *raid5_get_active_stripe(struct r5conf *conf,
904 struct r5conf *conf = sh->raid_conf;
914 static void stripe_add_to_batch_list(struct r5conf *conf,
1012 static int use_new_offset(struct r5conf *conf, struct stripe_head *sh)
1052 static void dispatch_defer_bios(struct r5conf *conf, int target,
1097 static void flush_deferred_bios(struct r5conf *conf)
1112 static void defer_issue_bios(struct r5conf *conf, sector_t sector,
1141 struct r5conf *conf = sh->raid_conf;
1394 struct r5conf *conf = sh->raid_conf;
1452 struct r5conf *conf = sh->raid_conf;
1491 struct r5conf *conf = sh->raid_conf;
1936 struct r5conf *conf = sh->raid_conf;
2293 struct r5conf *conf = sh->raid_conf;
2372 int disks, struct r5conf *conf)
2404 static int grow_one_stripe(struct r5conf *conf, gfp_t gfp)
2427 static int grow_stripes(struct r5conf *conf, int num)
2497 static int resize_chunks(struct r5conf *conf, int new_disks, int new_sectors)
2532 static int resize_stripes(struct r5conf *conf, int newsize)
2706 static int drop_one_stripe(struct r5conf *conf)
2724 static void shrink_stripes(struct r5conf *conf)
2759 struct r5conf *conf = sh->raid_conf;
2887 struct r5conf *conf = sh->raid_conf;
2964 struct r5conf *conf = mddev->private;
3000 sector_t raid5_compute_sector(struct r5conf *conf, sector_t r_sector,
3204 struct r5conf *conf = sh->raid_conf;
3360 static inline bool delay_towrite(struct r5conf *conf,
3383 struct r5conf *conf = sh->raid_conf;
3490 struct r5conf *conf = sh->raid_conf;
3550 struct r5conf *conf = sh->raid_conf;
3641 static void end_reshape(struct r5conf *conf);
3643 static void stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous,
3660 handle_failed_stripe(struct r5conf *conf, struct stripe_head *sh,
3773 handle_failed_sync(struct r5conf *conf, struct stripe_head *sh,
4072 static void handle_stripe_clean_event(struct r5conf *conf,
4187 static int handle_stripe_dirtying(struct r5conf *conf,
4351 static void handle_parity_checks5(struct r5conf *conf, struct stripe_head *sh,
4444 static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh,
4621 static void handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh)
4696 struct r5conf *conf = sh->raid_conf;
4991 struct r5conf *conf = sh->raid_conf;
5385 static void raid5_activate_delayed(struct r5conf *conf)
5403 static void activate_bit_delay(struct r5conf *conf,
5422 struct r5conf *conf = mddev->private;
5436 static void add_bio_to_retry(struct bio *bi,struct r5conf *conf)
5449 static struct bio *remove_bio_from_retry(struct r5conf *conf,
5481 struct r5conf *conf = mddev->private;
5502 struct r5conf *conf = mddev->private;
5593 struct r5conf *conf = mddev->private;
5616 static struct stripe_head *__get_priority_stripe(struct r5conf *conf, int group)
5721 struct r5conf *conf = mddev->private;
5784 struct r5conf *conf = mddev->private;
5887 static bool stripe_ahead_of_reshape(struct mddev *mddev, struct r5conf *conf,
5914 static int add_all_stripe_bios(struct r5conf *conf,
5977 struct r5conf *conf, struct stripe_request_ctx *ctx,
6103 static sector_t raid5_bio_lowest_chunk_sector(struct r5conf *conf,
6134 struct r5conf *conf = mddev->private;
6272 struct r5conf *conf = mddev->private;
6535 struct r5conf *conf = mddev->private;
6627 static int retry_aligned_read(struct r5conf *conf, struct bio *raid_bio,
6690 static int handle_active_stripes(struct r5conf *conf, int group,
6744 struct r5conf *conf = group->conf;
6794 struct r5conf *conf = mddev->private;
6885 struct r5conf *conf;
6899 struct r5conf *conf = mddev->private;
6929 struct r5conf *conf;
6958 struct r5conf *conf = mddev->private;
6968 struct r5conf *conf = mddev->private;
7000 struct r5conf *conf;
7015 struct r5conf *conf;
7095 struct r5conf *conf;
7108 struct r5conf *conf;
7140 struct r5conf *conf;
7153 struct r5conf *conf;
7192 struct r5conf *conf = mddev->private;
7205 struct r5conf *conf;
7215 static int alloc_thread_groups(struct r5conf *conf, int cnt,
7221 struct r5conf *conf;
7289 static int alloc_thread_groups(struct r5conf *conf, int cnt, int *group_cnt,
7334 static void free_thread_groups(struct r5conf *conf)
7345 struct r5conf *conf = mddev->private;
7358 static void free_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu)
7366 static int alloc_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu)
7390 struct r5conf *conf = hlist_entry_safe(node, struct r5conf, node);
7396 static void raid5_free_percpu(struct r5conf *conf)
7405 static void free_conf(struct r5conf *conf)
7427 struct r5conf *conf = hlist_entry_safe(node, struct r5conf, node);
7438 static int raid5_alloc_percpu(struct r5conf *conf)
7459 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker);
7480 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker);
7490 static struct r5conf *setup_conf(struct mddev *mddev)
7492 struct r5conf *conf;
7531 conf = kzalloc(sizeof(struct r5conf), GFP_KERNEL);
7773 static void raid5_set_io_opt(struct r5conf *conf)
7781 struct r5conf *conf;
8129 struct r5conf *conf = priv;
8137 struct r5conf *conf = mddev->private;
8152 static void print_raid5_conf (struct r5conf *conf)
8180 struct r5conf *conf = mddev->private;
8224 struct r5conf *conf = mddev->private;
8317 struct r5conf *conf = mddev->private;
8407 struct r5conf *conf = mddev->private;
8442 struct r5conf *conf = mddev->private;
8458 struct r5conf *conf = mddev->private;
8502 struct r5conf *conf = mddev->private;
8649 static void end_reshape(struct r5conf *conf)
8679 struct r5conf *conf = mddev->private;
8712 struct r5conf *conf = mddev->private;
8788 if ((chunksect<<9) < RAID5_STRIPE_SIZE((struct r5conf *)mddev->private))
8843 struct r5conf *conf = mddev->private;
8986 struct r5conf *conf;
9051 struct r5conf *conf = mddev->private;
9058 struct r5conf *conf = mddev->private;