Lines Matching refs:r5conf
70 static inline struct hlist_head *stripe_hash(struct r5conf *conf, sector_t sect)
76 static inline int stripe_hash_locks_hash(struct r5conf *conf, sector_t sect)
81 static inline void lock_device_hash_lock(struct r5conf *conf, int hash)
87 static inline void unlock_device_hash_lock(struct r5conf *conf, int hash)
93 static inline void lock_all_device_hash_locks_irq(struct r5conf *conf)
102 static inline void unlock_all_device_hash_locks_irq(struct r5conf *conf)
150 static void print_raid5_conf (struct r5conf *conf);
168 struct r5conf *conf = sh->raid_conf;
212 static void do_release_stripe(struct r5conf *conf, struct stripe_head *sh,
297 static void __release_stripe(struct r5conf *conf, struct stripe_head *sh,
311 static void release_inactive_stripe_list(struct r5conf *conf,
354 static int release_stripe_list(struct r5conf *conf,
384 struct r5conf *conf = sh->raid_conf;
421 static inline void insert_hash(struct r5conf *conf, struct stripe_head *sh)
432 static struct stripe_head *get_free_stripe(struct r5conf *conf, int hash)
490 init_stripe_shared_pages(struct stripe_head *sh, struct r5conf *conf, int disks)
562 static void stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous,
567 struct r5conf *conf = sh->raid_conf;
607 static struct stripe_head *__find_stripe(struct r5conf *conf, sector_t sector,
633 int raid5_calc_degraded(struct r5conf *conf)
689 static bool has_failed(struct r5conf *conf)
703 raid5_get_active_stripe(struct r5conf *conf, sector_t sector,
806 struct r5conf *conf = sh->raid_conf;
816 static void stripe_add_to_batch_list(struct r5conf *conf, struct stripe_head *sh)
930 static int use_new_offset(struct r5conf *conf, struct stripe_head *sh)
970 static void dispatch_defer_bios(struct r5conf *conf, int target,
1015 static void flush_deferred_bios(struct r5conf *conf)
1030 static void defer_issue_bios(struct r5conf *conf, sector_t sector,
1059 struct r5conf *conf = sh->raid_conf;
1316 struct r5conf *conf = sh->raid_conf;
1374 struct r5conf *conf = sh->raid_conf;
1413 struct r5conf *conf = sh->raid_conf;
1858 struct r5conf *conf = sh->raid_conf;
2215 struct r5conf *conf = sh->raid_conf;
2294 int disks, struct r5conf *conf)
2333 static int grow_one_stripe(struct r5conf *conf, gfp_t gfp)
2356 static int grow_stripes(struct r5conf *conf, int num)
2426 static int resize_chunks(struct r5conf *conf, int new_disks, int new_sectors)
2461 static int resize_stripes(struct r5conf *conf, int newsize)
2635 static int drop_one_stripe(struct r5conf *conf)
2653 static void shrink_stripes(struct r5conf *conf)
2666 struct r5conf *conf = sh->raid_conf;
2797 struct r5conf *conf = sh->raid_conf;
2876 struct r5conf *conf = mddev->private;
2912 sector_t raid5_compute_sector(struct r5conf *conf, sector_t r_sector,
3116 struct r5conf *conf = sh->raid_conf;
3272 static inline bool delay_towrite(struct r5conf *conf,
3295 struct r5conf *conf = sh->raid_conf;
3408 struct r5conf *conf = sh->raid_conf;
3529 static void end_reshape(struct r5conf *conf);
3531 static void stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous,
3548 handle_failed_stripe(struct r5conf *conf, struct stripe_head *sh,
3661 handle_failed_sync(struct r5conf *conf, struct stripe_head *sh,
3960 static void handle_stripe_clean_event(struct r5conf *conf,
4075 static int handle_stripe_dirtying(struct r5conf *conf,
4239 static void handle_parity_checks5(struct r5conf *conf, struct stripe_head *sh,
4332 static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh,
4509 static void handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh)
4583 struct r5conf *conf = sh->raid_conf;
4878 struct r5conf *conf = sh->raid_conf;
5270 static void raid5_activate_delayed(struct r5conf *conf)
5287 static void activate_bit_delay(struct r5conf *conf,
5306 struct r5conf *conf = mddev->private;
5322 static void add_bio_to_retry(struct bio *bi,struct r5conf *conf)
5335 static struct bio *remove_bio_from_retry(struct r5conf *conf,
5366 struct r5conf *conf;
5393 struct r5conf *conf = mddev->private;
5489 struct r5conf *conf = mddev->private;
5512 static struct stripe_head *__get_priority_stripe(struct r5conf *conf, int group)
5616 struct r5conf *conf = mddev->private;
5679 struct r5conf *conf = mddev->private;
5766 struct r5conf *conf = mddev->private;
5950 struct r5conf *conf = mddev->private;
6211 struct r5conf *conf = mddev->private;
6302 static int retry_aligned_read(struct r5conf *conf, struct bio *raid_bio,
6365 static int handle_active_stripes(struct r5conf *conf, int group,
6420 struct r5conf *conf = group->conf;
6470 struct r5conf *conf = mddev->private;
6550 struct r5conf *conf;
6564 struct r5conf *conf = mddev->private;
6594 struct r5conf *conf;
6623 struct r5conf *conf = mddev->private;
6633 struct r5conf *conf = mddev->private;
6665 struct r5conf *conf;
6680 struct r5conf *conf;
6760 struct r5conf *conf;
6773 struct r5conf *conf;
6805 struct r5conf *conf;
6818 struct r5conf *conf;
6857 struct r5conf *conf = mddev->private;
6870 struct r5conf *conf;
6880 static int alloc_thread_groups(struct r5conf *conf, int cnt,
6886 struct r5conf *conf;
6954 static int alloc_thread_groups(struct r5conf *conf, int cnt, int *group_cnt,
6999 static void free_thread_groups(struct r5conf *conf)
7010 struct r5conf *conf = mddev->private;
7023 static void free_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu)
7031 static int alloc_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu)
7054 struct r5conf *conf = hlist_entry_safe(node, struct r5conf, node);
7060 static void raid5_free_percpu(struct r5conf *conf)
7069 static void free_conf(struct r5conf *conf)
7091 struct r5conf *conf = hlist_entry_safe(node, struct r5conf, node);
7102 static int raid5_alloc_percpu(struct r5conf *conf)
7123 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker);
7144 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker);
7152 static struct r5conf *setup_conf(struct mddev *mddev)
7154 struct r5conf *conf;
7193 conf = kzalloc(sizeof(struct r5conf), GFP_KERNEL);
7429 static void raid5_set_io_opt(struct r5conf *conf)
7437 struct r5conf *conf;
7788 struct r5conf *conf = priv;
7796 struct r5conf *conf = mddev->private;
7811 static void print_raid5_conf (struct r5conf *conf)
7838 struct r5conf *conf = mddev->private;
7880 struct r5conf *conf = mddev->private;
7965 struct r5conf *conf = mddev->private;
8053 struct r5conf *conf = mddev->private;
8088 struct r5conf *conf = mddev->private;
8104 struct r5conf *conf = mddev->private;
8148 struct r5conf *conf = mddev->private;
8287 static void end_reshape(struct r5conf *conf)
8317 struct r5conf *conf = mddev->private;
8347 struct r5conf *conf = mddev->private;
8420 if ((chunksect<<9) < RAID5_STRIPE_SIZE((struct r5conf *)mddev->private))
8475 struct r5conf *conf = mddev->private;
8618 struct r5conf *conf;
8680 struct r5conf *conf = mddev->private;