Lines Matching defs:mddev
117 static inline int speed_min(struct mddev *mddev) in speed_min()
123 static inline int speed_max(struct mddev *mddev) in speed_max()
138 static void rdevs_uninit_serial(struct mddev *mddev) in rdevs_uninit_serial()
174 static int rdevs_init_serial(struct mddev *mddev) in rdevs_init_serial()
209 void mddev_create_serial_pool(struct mddev *mddev, struct md_rdev *rdev, in mddev_create_serial_pool()
253 void mddev_destroy_serial_pool(struct mddev *mddev, struct md_rdev *rdev, in mddev_destroy_serial_pool()
344 struct mddev *mddev) in bio_alloc_mddev()
353 static struct bio *md_bio_alloc_sync(struct mddev *mddev) in md_bio_alloc_sync()
373 void md_new_event(struct mddev *mddev) in md_new_event()
416 static bool is_suspended(struct mddev *mddev, struct bio *bio) in is_suspended()
431 void md_handle_request(struct mddev *mddev, struct bio *bio) in md_handle_request()
465 struct mddev *mddev = bio->bi_disk->private_data; in md_submit_bio() local
500 void mddev_suspend(struct mddev *mddev) in mddev_suspend()
521 void mddev_resume(struct mddev *mddev) in mddev_resume()
544 struct mddev *mddev = rdev->mddev; in md_end_flush() local
560 struct mddev *mddev = container_of(ws, struct mddev, flush_work); in submit_flushes() local
595 struct mddev *mddev = container_of(ws, struct mddev, flush_work); in md_submit_flush_data() local
625 bool md_flush_request(struct mddev *mddev, struct bio *bio) in md_flush_request()
657 static inline struct mddev *mddev_get(struct mddev *mddev) in mddev_get()
665 static void mddev_put(struct mddev *mddev) in mddev_put()
688 void mddev_init(struct mddev *mddev) in mddev_init()
715 struct mddev *mddev; in mddev_find_locked() local
726 struct mddev *mddev; in mddev_find() local
742 struct mddev *mddev, *new = NULL; in mddev_find_or_alloc() local
811 void mddev_unlock(struct mddev *mddev) in mddev_unlock()
862 struct md_rdev *md_find_rdev_nr_rcu(struct mddev *mddev, int nr) in md_find_rdev_nr_rcu()
874 static struct md_rdev *find_rdev(struct mddev *mddev, dev_t dev) in find_rdev()
885 struct md_rdev *md_find_rdev_rcu(struct mddev *mddev, dev_t dev) in md_find_rdev_rcu()
944 struct mddev *mddev = rdev->mddev; in super_written() local
966 void md_super_write(struct mddev *mddev, struct md_rdev *rdev, in md_super_write()
1004 int md_super_wait(struct mddev *mddev) in md_super_wait()
1188 int md_check_no_bitmap(struct mddev *mddev) in md_check_no_bitmap()
1311 static int super_90_validate(struct mddev *mddev, struct md_rdev *freshest, struct md_rdev *rdev) in super_90_validate()
1440 static void super_90_sync(struct mddev *mddev, struct md_rdev *rdev) in super_90_sync()
1826 static int super_1_validate(struct mddev *mddev, struct md_rdev *freshest, struct md_rdev *rdev) in super_1_validate()
2031 static void super_1_sync(struct mddev *mddev, struct md_rdev *rdev) in super_1_sync()
2321 static void sync_super(struct mddev *mddev, struct md_rdev *rdev) in sync_super()
2367 int md_integrity_register(struct mddev *mddev) in md_integrity_register()
2414 int md_integrity_add_rdev(struct md_rdev *rdev, struct mddev *mddev) in md_integrity_add_rdev()
2437 static int bind_rdev_to_array(struct md_rdev *rdev, struct mddev *mddev) in bind_rdev_to_array()
2612 static void export_array(struct mddev *mddev) in export_array()
2625 static bool set_in_sync(struct mddev *mddev) in set_in_sync()
2652 static void sync_sbs(struct mddev *mddev, int nospares) in sync_sbs()
2675 static bool does_sb_need_changing(struct mddev *mddev) in does_sb_need_changing()
2716 void md_update_sb(struct mddev *mddev, int force_change) in md_update_sb()
2912 struct mddev *mddev = rdev->mddev; in add_bound_rdev() local
3030 struct mddev *mddev = rdev->mddev; in state_store() local
3344 struct mddev *mddev = rdev->mddev; in new_offset_store() local
3464 struct mddev *mddev; in rdev_size_store() local
3682 struct mddev *mddev = rdev->mddev; in rdev_attr_store() local
3812 static int analyze_sbs(struct mddev *mddev) in analyze_sbs()
3914 safe_delay_show(struct mddev *mddev, char *page) in safe_delay_show()
3921 safe_delay_store(struct mddev *mddev, const char *cbuf, size_t len) in safe_delay_store()
3950 level_show(struct mddev *mddev, char *page) in level_show()
3969 level_store(struct mddev *mddev, const char *buf, size_t len) in level_store()
4176 layout_show(struct mddev *mddev, char *page) in layout_show()
4187 layout_store(struct mddev *mddev, const char *buf, size_t len) in layout_store()
4222 raid_disks_show(struct mddev *mddev, char *page) in raid_disks_show()
4236 raid_disks_store(struct mddev *mddev, const char *buf, size_t len) in raid_disks_store()
4277 uuid_show(struct mddev *mddev, char *page) in uuid_show()
4285 chunk_size_show(struct mddev *mddev, char *page) in chunk_size_show()
4296 chunk_size_store(struct mddev *mddev, const char *buf, size_t len) in chunk_size_store()
4331 resync_start_show(struct mddev *mddev, char *page) in resync_start_show()
4339 resync_start_store(struct mddev *mddev, const char *buf, size_t len) in resync_start_store()
4429 array_state_show(struct mddev *mddev, char *page) in array_state_show()
4472 array_state_store(struct mddev *mddev, const char *buf, size_t len) in array_state_store()
4586 max_corrected_read_errors_show(struct mddev *mddev, char *page) { in max_corrected_read_errors_show()
4592 max_corrected_read_errors_store(struct mddev *mddev, const char *buf, size_t len) in max_corrected_read_errors_store()
4611 null_show(struct mddev *mddev, char *page) in null_show()
4617 static void flush_rdev_wq(struct mddev *mddev) in flush_rdev_wq()
4631 new_dev_store(struct mddev *mddev, const char *buf, size_t len) in new_dev_store()
4696 bitmap_store(struct mddev *mddev, const char *buf, size_t len) in bitmap_store()
4730 size_show(struct mddev *mddev, char *page) in size_show()
4739 size_store(struct mddev *mddev, const char *buf, size_t len) in size_store()
4778 metadata_show(struct mddev *mddev, char *page) in metadata_show()
4790 metadata_store(struct mddev *mddev, const char *buf, size_t len) in metadata_store()
4856 action_show(struct mddev *mddev, char *page) in action_show()
4882 action_store(struct mddev *mddev, const char *page, size_t len) in action_store()
4963 last_sync_action_show(struct mddev *mddev, char *page) in last_sync_action_show()
4971 mismatch_cnt_show(struct mddev *mddev, char *page) in mismatch_cnt_show()
4981 sync_min_show(struct mddev *mddev, char *page) in sync_min_show()
4988 sync_min_store(struct mddev *mddev, const char *buf, size_t len) in sync_min_store()
5010 sync_max_show(struct mddev *mddev, char *page) in sync_max_show()
5017 sync_max_store(struct mddev *mddev, const char *buf, size_t len) in sync_max_store()
5039 degraded_show(struct mddev *mddev, char *page) in degraded_show()
5046 sync_force_parallel_show(struct mddev *mddev, char *page) in sync_force_parallel_show()
5052 sync_force_parallel_store(struct mddev *mddev, const char *buf, size_t len) in sync_force_parallel_store()
5076 sync_speed_show(struct mddev *mddev, char *page) in sync_speed_show()
5091 sync_completed_show(struct mddev *mddev, char *page) in sync_completed_show()
5116 min_sync_show(struct mddev *mddev, char *page) in min_sync_show()
5122 min_sync_store(struct mddev *mddev, const char *buf, size_t len) in min_sync_store()
5152 max_sync_show(struct mddev *mddev, char *page) in max_sync_show()
5161 max_sync_store(struct mddev *mddev, const char *buf, size_t len) in max_sync_store()
5205 suspend_lo_show(struct mddev *mddev, char *page) in suspend_lo_show()
5211 suspend_lo_store(struct mddev *mddev, const char *buf, size_t len) in suspend_lo_store()
5242 suspend_hi_show(struct mddev *mddev, char *page) in suspend_hi_show()
5248 suspend_hi_store(struct mddev *mddev, const char *buf, size_t len) in suspend_hi_store()
5279 reshape_position_show(struct mddev *mddev, char *page) in reshape_position_show()
5289 reshape_position_store(struct mddev *mddev, const char *buf, size_t len) in reshape_position_store()
5325 reshape_direction_show(struct mddev *mddev, char *page) in reshape_direction_show()
5332 reshape_direction_store(struct mddev *mddev, const char *buf, size_t len) in reshape_direction_store()
5366 array_size_show(struct mddev *mddev, char *page) in array_size_show()
5376 array_size_store(struct mddev *mddev, const char *buf, size_t len) in array_size_store()
5423 consistency_policy_show(struct mddev *mddev, char *page) in consistency_policy_show()
5446 consistency_policy_store(struct mddev *mddev, const char *buf, size_t len) in consistency_policy_store()
5468 static ssize_t fail_last_dev_show(struct mddev *mddev, char *page) in fail_last_dev_show()
5478 fail_last_dev_store(struct mddev *mddev, const char *buf, size_t len) in fail_last_dev_store()
5496 static ssize_t serialize_policy_show(struct mddev *mddev, char *page) in serialize_policy_show()
5509 serialize_policy_store(struct mddev *mddev, const char *buf, size_t len) in serialize_policy_store()
5595 struct mddev *mddev = container_of(kobj, struct mddev, kobj); in md_attr_show() local
5618 struct mddev *mddev = container_of(kobj, struct mddev, kobj); in md_attr_store() local
5639 struct mddev *mddev = container_of(ko, struct mddev, kobj); in md_free() local
5673 struct mddev *mddev = container_of(ws, struct mddev, del_work); in mddev_delayed_delete() local
5682 int mddev_init_writes_pending(struct mddev *mddev) in mddev_init_writes_pending()
5707 struct mddev *mddev = mddev_find_or_alloc(dev); in md_alloc() local
5847 struct mddev *mddev = from_timer(mddev, t, safemode_timer); in md_safemode_timeout() local
5858 int md_run(struct mddev *mddev) in md_run()
6128 int do_md_run(struct mddev *mddev) in do_md_run()
6164 int md_start(struct mddev *mddev) in md_start()
6179 static int restart_array(struct mddev *mddev) in restart_array()
6221 static void md_clean(struct mddev *mddev) in md_clean()
6270 static void __md_stop_writes(struct mddev *mddev) in __md_stop_writes()
6301 void md_stop_writes(struct mddev *mddev) in md_stop_writes()
6309 static void mddev_detach(struct mddev *mddev) in mddev_detach()
6321 static void __md_stop(struct mddev *mddev) in __md_stop()
6340 void md_stop(struct mddev *mddev) in md_stop()
6355 static int md_set_readonly(struct mddev *mddev, struct block_device *bdev) in md_set_readonly()
6417 static int do_md_stop(struct mddev *mddev, int mode, in do_md_stop()
6506 static void autorun_array(struct mddev *mddev) in autorun_array()
6544 struct mddev *mddev; in autorun_devices() local
6632 static int get_array_info(struct mddev *mddev, void __user *arg) in get_array_info()
6692 static int get_bitmap_file(struct mddev *mddev, void __user * arg) in get_bitmap_file()
6724 static int get_disk_info(struct mddev *mddev, void __user * arg) in get_disk_info()
6764 int md_add_new_disk(struct mddev *mddev, struct mdu_disk_info_s *info) in md_add_new_disk()
6971 static int hot_remove_disk(struct mddev *mddev, dev_t dev) in hot_remove_disk()
7013 static int hot_add_disk(struct mddev *mddev, dev_t dev) in hot_add_disk()
7085 static int set_bitmap_file(struct mddev *mddev, int fd) in set_bitmap_file()
7182 int md_set_array_info(struct mddev *mddev, struct mdu_array_info_s *info) in md_set_array_info()
7256 void md_set_array_sectors(struct mddev *mddev, sector_t array_sectors) in md_set_array_sectors()
7267 static int update_size(struct mddev *mddev, sector_t num_sectors) in update_size()
7311 static int update_raid_disks(struct mddev *mddev, int raid_disks) in update_raid_disks()
7360 static int update_array_info(struct mddev *mddev, mdu_array_info_t *info) in update_array_info()
7487 static int set_disk_faulty(struct mddev *mddev, dev_t dev) in set_disk_faulty()
7516 struct mddev *mddev = bdev->bd_disk->private_data; in md_getgeo() local
7554 struct mddev *mddev = NULL; in md_ioctl() local
7866 struct mddev *mddev = mddev_find(bdev->bd_dev); in md_open() local
7906 struct mddev *mddev = disk->private_data; in md_release() local
7915 struct mddev *mddev = disk->private_data; in md_check_events() local
7992 struct mddev *mddev, const char *name) in md_register_thread()
8040 void md_error(struct mddev *mddev, struct md_rdev *rdev) in md_error()
8081 static int status_resync(struct seq_file *seq, struct mddev *mddev) in status_resync()
8213 struct mddev *mddev; in md_seq_start() local
8242 struct mddev *next_mddev, *mddev = v; in md_seq_next() local
8269 struct mddev *mddev = v; in md_seq_stop() local
8277 struct mddev *mddev = v; in md_seq_show() local
8466 int md_setup_cluster(struct mddev *mddev, int nodes) in md_setup_cluster()
8486 void md_cluster_stop(struct mddev *mddev) in md_cluster_stop()
8494 static int is_mddev_idle(struct mddev *mddev, int init) in is_mddev_idle()
8537 void md_done_sync(struct mddev *mddev, int blocks, int ok) in md_done_sync()
8558 bool md_write_start(struct mddev *mddev, struct bio *bi) in md_write_start()
8615 void md_write_inc(struct mddev *mddev, struct bio *bi) in md_write_inc()
8624 void md_write_end(struct mddev *mddev) in md_write_end()
8647 void md_allow_write(struct mddev *mddev) in md_allow_write()
8680 struct mddev *mddev = thread->mddev; in md_do_sync() local
9098 static int remove_and_add_spares(struct mddev *mddev, in remove_and_add_spares()
9193 struct mddev *mddev = container_of(ws, struct mddev, del_work); in md_start_sync() local
9240 void md_check_recovery(struct mddev *mddev) in md_check_recovery()
9418 void md_reap_sync_thread(struct mddev *mddev) in md_reap_sync_thread()
9481 void md_wait_for_blocked_rdev(struct md_rdev *rdev, struct mddev *mddev) in md_wait_for_blocked_rdev()
9492 void md_finish_reshape(struct mddev *mddev) in md_finish_reshape()
9513 struct mddev *mddev = rdev->mddev; in rdev_set_badblocks() local
9553 struct mddev *mddev; in md_notify_reboot() local
9637 static void check_sb_changes(struct mddev *mddev, struct md_rdev *rdev) in check_sb_changes()
9736 static int read_rdev(struct mddev *mddev, struct md_rdev *rdev) in read_rdev()
9783 void md_reload_sb(struct mddev *mddev, int nr) in md_reload_sb()
9886 struct mddev *mddev; in md_exit() local