Lines Matching refs:mddev_t

96 static inline int speed_min(mddev_t *mddev)  in speed_min()
102 static inline int speed_max(mddev_t *mddev) in speed_max()
158 mddev_t *mddev, **mddevp; in mddev_bio_destructor()
167 mddev_t *mddev) in bio_alloc_mddev()
170 mddev_t **mddevp; in bio_alloc_mddev()
187 mddev_t *mddev) in bio_clone_mddev()
190 mddev_t **mddevp; in bio_clone_mddev()
230 void md_new_event(mddev_t *mddev) in md_new_event()
240 static void md_new_event_inintr(mddev_t *mddev) in md_new_event_inintr()
267 mddev_get(list_entry(tmp, mddev_t, all_mddevs));\
270 mddev = list_entry(tmp, mddev_t, all_mddevs); \
287 mddev_t *mddev = q->queuedata; in md_make_request()
339 void mddev_suspend(mddev_t *mddev) in mddev_suspend()
349 void mddev_resume(mddev_t *mddev) in mddev_resume()
357 int mddev_congested(mddev_t *mddev, int bits) in mddev_congested()
370 mddev_t *mddev = rdev->mddev; in md_end_flush()
385 mddev_t *mddev = container_of(ws, mddev_t, flush_work); in submit_flushes()
418 mddev_t *mddev = container_of(ws, mddev_t, flush_work); in md_submit_flush_data()
434 void md_flush_request(mddev_t *mddev, struct bio *bio) in md_flush_request()
458 mddev_t *mddev;
472 int mddev_check_plugged(mddev_t *mddev) in mddev_check_plugged()
504 static inline mddev_t *mddev_get(mddev_t *mddev) in mddev_get()
512 static void mddev_put(mddev_t *mddev) in mddev_put()
541 void mddev_init(mddev_t *mddev) in mddev_init()
564 static mddev_t * mddev_find(dev_t unit) in mddev_find()
566 mddev_t *mddev, *new = NULL; in mddev_find()
638 static inline int mddev_lock(mddev_t * mddev) in mddev_lock()
643 static inline int mddev_is_locked(mddev_t *mddev) in mddev_is_locked()
648 static inline int mddev_trylock(mddev_t * mddev) in mddev_trylock()
655 static void mddev_unlock(mddev_t * mddev) in mddev_unlock()
693 static mdk_rdev_t * find_rdev_nr(mddev_t *mddev, int nr) in find_rdev_nr()
704 static mdk_rdev_t * find_rdev(mddev_t * mddev, dev_t dev) in find_rdev()
763 mddev_t *mddev = rdev->mddev; in super_written()
777 void md_super_write(mddev_t *mddev, mdk_rdev_t *rdev, in md_super_write()
798 void md_super_wait(mddev_t *mddev) in md_super_wait()
978 int (*validate_super)(mddev_t *mddev, mdk_rdev_t *rdev);
979 void (*sync_super)(mddev_t *mddev, mdk_rdev_t *rdev);
992 int md_check_no_bitmap(mddev_t *mddev) in md_check_no_bitmap()
1096 static int super_90_validate(mddev_t *mddev, mdk_rdev_t *rdev) in super_90_validate()
1208 static void super_90_sync(mddev_t *mddev, mdk_rdev_t *rdev) in super_90_sync()
1511 static int super_1_validate(mddev_t *mddev, mdk_rdev_t *rdev) in super_1_validate()
1612 static void super_1_sync(mddev_t *mddev, mdk_rdev_t *rdev) in super_1_sync()
1753 static int match_mddev_units(mddev_t *mddev1, mddev_t *mddev2) in match_mddev_units()
1778 int md_integrity_register(mddev_t *mddev) in md_integrity_register()
1825 void md_integrity_add_rdev(mdk_rdev_t *rdev, mddev_t *mddev) in md_integrity_add_rdev()
1842 static int bind_rdev_to_array(mdk_rdev_t * rdev, mddev_t * mddev) in bind_rdev_to_array()
2006 static void export_array(mddev_t *mddev) in export_array()
2129 mddev_t *mddev; in md_print_devices()
2154 static void sync_sbs(mddev_t * mddev, int nospares) in sync_sbs()
2178 static void md_update_sb(mddev_t * mddev, int force_change) in md_update_sb()
2380 mddev_t *mddev = rdev->mddev; in state_store()
2597 mddev_t *my_mddev = rdev->mddev; in rdev_size_store()
2623 mddev_t *mddev; in rdev_size_store()
2715 mddev_t *mddev = rdev->mddev; in rdev_attr_show()
2739 mddev_t *mddev = rdev->mddev; in rdev_attr_store()
2867 static void analyze_sbs(mddev_t * mddev) in analyze_sbs()
2970 safe_delay_show(mddev_t *mddev, char *page) in safe_delay_show()
2976 safe_delay_store(mddev_t *mddev, const char *cbuf, size_t len) in safe_delay_store()
2998 level_show(mddev_t *mddev, char *page) in level_show()
3012 level_store(mddev_t *mddev, const char *buf, size_t len) in level_store()
3196 layout_show(mddev_t *mddev, char *page) in layout_show()
3207 layout_store(mddev_t *mddev, const char *buf, size_t len) in layout_store()
3237 raid_disks_show(mddev_t *mddev, char *page) in raid_disks_show()
3248 static int update_raid_disks(mddev_t *mddev, int raid_disks);
3251 raid_disks_store(mddev_t *mddev, const char *buf, size_t len) in raid_disks_store()
3274 chunk_size_show(mddev_t *mddev, char *page) in chunk_size_show()
3285 chunk_size_store(mddev_t *mddev, const char *buf, size_t len) in chunk_size_store()
3314 resync_start_show(mddev_t *mddev, char *page) in resync_start_show()
3322 resync_start_store(mddev_t *mddev, const char *buf, size_t len) in resync_start_store()
3392 array_state_show(mddev_t *mddev, char *page) in array_state_show()
3425 static int do_md_stop(mddev_t * mddev, int ro, int is_open);
3426 static int md_set_readonly(mddev_t * mddev, int is_open);
3427 static int do_md_run(mddev_t * mddev);
3428 static int restart_array(mddev_t *mddev);
3431 array_state_store(mddev_t *mddev, const char *buf, size_t len) in array_state_store()
3525 max_corrected_read_errors_show(mddev_t *mddev, char *page) { in max_corrected_read_errors_show()
3531 max_corrected_read_errors_store(mddev_t *mddev, const char *buf, size_t len) in max_corrected_read_errors_store()
3548 null_show(mddev_t *mddev, char *page) in null_show()
3554 new_dev_store(mddev_t *mddev, const char *buf, size_t len) in new_dev_store()
3610 bitmap_store(mddev_t *mddev, const char *buf, size_t len) in bitmap_store()
3639 size_show(mddev_t *mddev, char *page) in size_show()
3645 static int update_size(mddev_t *mddev, sector_t num_sectors);
3648 size_store(mddev_t *mddev, const char *buf, size_t len) in size_store()
3683 metadata_show(mddev_t *mddev, char *page) in metadata_show()
3695 metadata_store(mddev_t *mddev, const char *buf, size_t len) in metadata_store()
3749 action_show(mddev_t *mddev, char *page) in action_show()
3771 static void reap_sync_thread(mddev_t *mddev);
3774 action_store(mddev_t *mddev, const char *page, size_t len) in action_store()
3820 mismatch_cnt_show(mddev_t *mddev, char *page) in mismatch_cnt_show()
3833 sync_min_show(mddev_t *mddev, char *page) in sync_min_show()
3840 sync_min_store(mddev_t *mddev, const char *buf, size_t len) in sync_min_store()
3859 sync_max_show(mddev_t *mddev, char *page) in sync_max_show()
3866 sync_max_store(mddev_t *mddev, const char *buf, size_t len) in sync_max_store()
3885 degraded_show(mddev_t *mddev, char *page) in degraded_show()
3892 sync_force_parallel_show(mddev_t *mddev, char *page) in sync_force_parallel_show()
3898 sync_force_parallel_store(mddev_t *mddev, const char *buf, size_t len) in sync_force_parallel_store()
3922 sync_speed_show(mddev_t *mddev, char *page) in sync_speed_show()
3937 sync_completed_show(mddev_t *mddev, char *page) in sync_completed_show()
3956 min_sync_show(mddev_t *mddev, char *page) in min_sync_show()
3962 min_sync_store(mddev_t *mddev, const char *buf, size_t len) in min_sync_store()
3987 max_sync_show(mddev_t *mddev, char *page) in max_sync_show()
3996 max_sync_store(mddev_t *mddev, const char *buf, size_t len) in max_sync_store()
4027 suspend_lo_show(mddev_t *mddev, char *page) in suspend_lo_show()
4033 suspend_lo_store(mddev_t *mddev, const char *buf, size_t len) in suspend_lo_store()
4061 suspend_hi_show(mddev_t *mddev, char *page) in suspend_hi_show()
4067 suspend_hi_store(mddev_t *mddev, const char *buf, size_t len) in suspend_hi_store()
4094 reshape_position_show(mddev_t *mddev, char *page) in reshape_position_show()
4104 reshape_position_store(mddev_t *mddev, const char *buf, size_t len) in reshape_position_store()
4125 array_size_show(mddev_t *mddev, char *page) in array_size_show()
4135 array_size_store(mddev_t *mddev, const char *buf, size_t len) in array_size_store()
4210 mddev_t *mddev = container_of(kobj, struct mddev_s, kobj); in md_attr_show()
4228 mddev_t *mddev = container_of(kobj, struct mddev_s, kobj); in md_attr_store()
4247 mddev_t *mddev = container_of(ko, mddev_t, kobj); in md_free()
4276 mddev_t *mddev = container_of(ws, mddev_t, del_work); in mddev_delayed_delete()
4286 mddev_t *mddev = mddev_find(dev); in md_alloc()
4313 mddev_t *mddev2; in md_alloc()
4409 mddev_t *mddev = (mddev_t *) data; in md_safemode_timeout()
4421 int md_run(mddev_t *mddev) in md_run()
4628 static int do_md_run(mddev_t *mddev) in do_md_run()
4648 static int restart_array(mddev_t *mddev) in restart_array()
4698 static void md_clean(mddev_t *mddev) in md_clean()
4741 static void __md_stop_writes(mddev_t *mddev) in __md_stop_writes()
4761 void md_stop_writes(mddev_t *mddev) in md_stop_writes()
4769 void md_stop(mddev_t *mddev) in md_stop()
4781 static int md_set_readonly(mddev_t *mddev, int is_open) in md_set_readonly()
4811 static int do_md_stop(mddev_t * mddev, int mode, int is_open) in do_md_stop()
4880 static void autorun_array(mddev_t *mddev) in autorun_array()
4918 mddev_t *mddev; in autorun_devices()
5013 static int get_array_info(mddev_t * mddev, void __user * arg) in get_array_info()
5066 static int get_bitmap_file(mddev_t * mddev, void __user * arg) in get_bitmap_file()
5106 static int get_disk_info(mddev_t * mddev, void __user * arg) in get_disk_info()
5140 static int add_new_disk(mddev_t * mddev, mdu_disk_info_t *info) in add_new_disk()
5299 static int hot_remove_disk(mddev_t * mddev, dev_t dev) in hot_remove_disk()
5322 static int hot_add_disk(mddev_t * mddev, dev_t dev) in hot_add_disk()
5396 static int set_bitmap_file(mddev_t *mddev, int fd) in set_bitmap_file()
5469 static int set_array_info(mddev_t * mddev, mdu_array_info_t *info) in set_array_info()
5539 void md_set_array_sectors(mddev_t *mddev, sector_t array_sectors) in md_set_array_sectors()
5550 static int update_size(mddev_t *mddev, sector_t num_sectors) in update_size()
5588 static int update_raid_disks(mddev_t *mddev, int raid_disks) in update_raid_disks()
5616 static int update_array_info(mddev_t *mddev, mdu_array_info_t *info) in update_array_info()
5709 static int set_disk_faulty(mddev_t *mddev, dev_t dev) in set_disk_faulty()
5732 mddev_t *mddev = bdev->bd_disk->private_data; in md_getgeo()
5745 mddev_t *mddev = NULL; in md_ioctl()
6008 mddev_t *mddev = mddev_find(bdev->bd_dev); in md_open()
6037 mddev_t *mddev = disk->private_data; in md_release()
6048 mddev_t *mddev = disk->private_data; in md_media_changed()
6055 mddev_t *mddev = disk->private_data; in md_revalidate()
6124 mdk_thread_t *md_register_thread(void (*run) (mddev_t *), mddev_t *mddev, in md_register_thread() argument
6159 void md_error(mddev_t *mddev, mdk_rdev_t *rdev) in md_error()
6216 static void status_resync(struct seq_file *seq, mddev_t * mddev) in status_resync()
6307 mddev_t *mddev; in md_seq_start()
6318 mddev = list_entry(tmp, mddev_t, all_mddevs); in md_seq_start()
6332 mddev_t *next_mddev, *mddev = v; in md_seq_next()
6344 next_mddev = mddev_get(list_entry(tmp,mddev_t,all_mddevs)); in md_seq_next()
6359 mddev_t *mddev = v; in md_seq_stop()
6371 mddev_t *mddev = v; in md_seq_show()
6557 static int is_mddev_idle(mddev_t *mddev, int init) in is_mddev_idle()
6601 void md_done_sync(mddev_t *mddev, int blocks, int ok) in md_done_sync()
6619 void md_write_start(mddev_t *mddev, struct bio *bi) in md_write_start()
6654 void md_write_end(mddev_t *mddev) in md_write_end()
6673 int md_allow_write(mddev_t *mddev) in md_allow_write()
6705 void md_do_sync(mddev_t *mddev) in md_do_sync()
6707 mddev_t *mddev2; in md_do_sync()
7034 static int remove_and_add_spares(mddev_t *mddev) in remove_and_add_spares()
7083 static void reap_sync_thread(mddev_t *mddev) in reap_sync_thread()
7143 void md_check_recovery(mddev_t *mddev) in md_check_recovery()
7305 void md_wait_for_blocked_rdev(mdk_rdev_t *rdev, mddev_t *mddev) in md_wait_for_blocked_rdev()
7319 mddev_t *mddev; in md_notify_reboot()
7468 mddev_t *mddev; in md_exit()