Home
last modified time | relevance | path

Searched refs:mddev (Results 1 – 17 of 17) sorted by relevance

/linux/drivers/md/
H A Dmd.c97 static int remove_and_add_spares(struct mddev *mddev,
99 static void mddev_detach(struct mddev *mddev);
123 * a) if mddev is idle, then no limit;
124 * b) if mddev is busy handling normal IO, then limit inflight sync IO
136 static int speed_min(struct mddev *mddev) in speed_min() argument
138 return mddev->sync_speed_min ? in speed_min()
139 mddev in speed_min()
142 speed_max(struct mddev * mddev) speed_max() argument
148 sync_io_depth(struct mddev * mddev) sync_io_depth() argument
163 rdevs_uninit_serial(struct mddev * mddev) rdevs_uninit_serial() argument
198 rdevs_init_serial(struct mddev * mddev) rdevs_init_serial() argument
233 mddev_create_serial_pool(struct mddev * mddev,struct md_rdev * rdev) mddev_create_serial_pool() argument
270 mddev_destroy_serial_pool(struct mddev * mddev,struct md_rdev * rdev) mddev_destroy_serial_pool() argument
370 is_md_suspended(struct mddev * mddev) is_md_suspended() argument
381 is_suspended(struct mddev * mddev,struct bio * bio) is_suspended() argument
396 md_handle_request(struct mddev * mddev,struct bio * bio) md_handle_request() argument
432 struct mddev *mddev = bio->bi_bdev->bd_disk->private_data; md_submit_bio() local
465 mddev_suspend(struct mddev * mddev,bool interruptible) mddev_suspend() argument
525 __mddev_resume(struct mddev * mddev,bool recovery_needed) __mddev_resume() argument
547 mddev_resume(struct mddev * mddev) mddev_resume() argument
554 mddev_set_closing_and_sync_blockdev(struct mddev * mddev,int opener_num) mddev_set_closing_and_sync_blockdev() argument
591 md_flush_request(struct mddev * mddev,struct bio * bio) md_flush_request() argument
626 mddev_get(struct mddev * mddev) mddev_get() argument
638 __mddev_put(struct mddev * mddev) __mddev_put() argument
657 mddev_put_locked(struct mddev * mddev) mddev_put_locked() argument
663 mddev_put(struct mddev * mddev) mddev_put() argument
677 struct mddev *mddev = container_of(ref, struct mddev, active_io); active_io_release() local
684 md_bitmap_sysfs_add(struct mddev * mddev) md_bitmap_sysfs_add() argument
697 md_bitmap_sysfs_del(struct mddev * mddev) md_bitmap_sysfs_del() argument
710 mddev_set_bitmap_ops_nosysfs(struct mddev * mddev) mddev_set_bitmap_ops_nosysfs() argument
740 mddev_init(struct mddev * mddev) mddev_init() argument
813 mddev_destroy(struct mddev * mddev) mddev_destroy() argument
825 struct mddev *mddev; mddev_find_locked() local
903 mddev_free(struct mddev * mddev) mddev_free() argument
915 mddev_unlock(struct mddev * mddev) mddev_unlock() argument
990 md_find_rdev_nr_rcu(struct mddev * mddev,int nr) md_find_rdev_nr_rcu() argument
1002 find_rdev(struct mddev * mddev,dev_t dev) find_rdev() argument
1013 md_find_rdev_rcu(struct mddev * mddev,dev_t dev) md_find_rdev_rcu() argument
1095 struct mddev *mddev = rdev->mddev; super_written() local
1133 md_write_metadata(struct mddev * mddev,struct md_rdev * rdev,sector_t sector,int size,struct page * page,unsigned int offset) md_write_metadata() argument
1167 md_super_wait(struct mddev * mddev) md_super_wait() argument
1347 md_check_no_bitmap(struct mddev * mddev) md_check_no_bitmap() argument
1459 md_bitmap_events_cleared(struct mddev * mddev) md_bitmap_events_cleared() argument
1478 super_90_validate(struct mddev * mddev,struct md_rdev * freshest,struct md_rdev * rdev) super_90_validate() argument
1604 super_90_sync(struct mddev * mddev,struct md_rdev * rdev) super_90_sync() argument
1993 super_1_validate(struct mddev * mddev,struct md_rdev * freshest,struct md_rdev * rdev) super_1_validate() argument
2199 super_1_sync(struct mddev * mddev,struct md_rdev * rdev) super_1_sync() argument
2439 struct mddev *mddev = rdev->mddev; super_1_allow_new_offset() local
2496 sync_super(struct mddev * mddev,struct md_rdev * rdev) sync_super() argument
2542 md_integrity_register(struct mddev * mddev) md_integrity_register() argument
2560 bind_rdev_to_array(struct md_rdev * rdev,struct mddev * mddev) bind_rdev_to_array() argument
2664 struct mddev *mddev = rdev->mddev; md_kick_rdev_from_array() local
2690 export_array(struct mddev * mddev) export_array() argument
2703 set_in_sync(struct mddev * mddev) set_in_sync() argument
2730 sync_sbs(struct mddev * mddev,int nospares) sync_sbs() argument
2753 does_sb_need_changing(struct mddev * mddev) does_sb_need_changing() argument
2794 md_update_sb(struct mddev * mddev,int force_change) md_update_sb() argument
2986 struct mddev *mddev = rdev->mddev; add_bound_rdev() local
3099 struct mddev *mddev = rdev->mddev; state_store() local
3409 struct mddev *mddev = rdev->mddev; new_offset_store() local
3474 struct mddev *mddev; md_rdev_overlaps() local
3745 struct mddev *mddev = READ_ONCE(rdev->mddev); rdev_attr_store() local
3899 analyze_sbs(struct mddev * mddev) analyze_sbs() argument
3992 safe_delay_show(struct mddev * mddev,char * page) safe_delay_show() argument
3999 safe_delay_store(struct mddev * mddev,const char * cbuf,size_t len) safe_delay_store() argument
4028 level_show(struct mddev * mddev,char * page) level_show() argument
4047 level_store(struct mddev * mddev,const char * buf,size_t len) level_store() argument
4249 new_level_show(struct mddev * mddev,char * page) new_level_show() argument
4255 new_level_store(struct mddev * mddev,const char * buf,size_t len) new_level_store() argument
4277 bitmap_type_show(struct mddev * mddev,char * page) bitmap_type_show() argument
4305 bitmap_type_store(struct mddev * mddev,const char * buf,size_t len) bitmap_type_store() argument
4357 layout_show(struct mddev * mddev,char * page) layout_show() argument
4368 layout_store(struct mddev * mddev,const char * buf,size_t len) layout_store() argument
4403 raid_disks_show(struct mddev * mddev,char * page) raid_disks_show() argument
4417 raid_disks_store(struct mddev * mddev,const char * buf,size_t len) raid_disks_store() argument
4462 uuid_show(struct mddev * mddev,char * page) uuid_show() argument
4470 chunk_size_show(struct mddev * mddev,char * page) chunk_size_show() argument
4481 chunk_size_store(struct mddev * mddev,const char * buf,size_t len) chunk_size_store() argument
4516 resync_start_show(struct mddev * mddev,char * page) resync_start_show() argument
4524 resync_start_store(struct mddev * mddev,const char * buf,size_t len) resync_start_store() argument
4613 array_state_show(struct mddev * mddev,char * page) array_state_show() argument
4656 array_state_store(struct mddev * mddev,const char * buf,size_t len) array_state_store() argument
4790 max_corrected_read_errors_show(struct mddev * mddev,char * page) max_corrected_read_errors_show() argument
4796 max_corrected_read_errors_store(struct mddev * mddev,const char * buf,size_t len) max_corrected_read_errors_store() argument
4815 null_show(struct mddev * mddev,char * page) null_show() argument
4821 new_dev_store(struct mddev * mddev,const char * buf,size_t len) new_dev_store() argument
4889 bitmap_store(struct mddev * mddev,const char * buf,size_t len) bitmap_store() argument
4932 size_show(struct mddev * mddev,char * page) size_show() argument
4941 size_store(struct mddev * mddev,const char * buf,size_t len) size_store() argument
4980 metadata_show(struct mddev * mddev,char * page) metadata_show() argument
4992 metadata_store(struct mddev * mddev,const char * buf,size_t len) metadata_store() argument
5066 md_get_active_sync_action(struct mddev * mddev) md_get_active_sync_action() argument
5089 md_sync_action(struct mddev * mddev) md_sync_action() argument
5169 action_show(struct mddev * mddev,char * page) action_show() argument
5183 stop_sync_thread(struct mddev * mddev,bool locked) stop_sync_thread() argument
5213 md_idle_sync_thread(struct mddev * mddev) md_idle_sync_thread() argument
5222 md_frozen_sync_thread(struct mddev * mddev) md_frozen_sync_thread() argument
5231 md_unfrozen_sync_thread(struct mddev * mddev) md_unfrozen_sync_thread() argument
5242 mddev_start_reshape(struct mddev * mddev) mddev_start_reshape() argument
5270 action_store(struct mddev * mddev,const char * page,size_t len) action_store() argument
5378 last_sync_action_show(struct mddev * mddev,char * page) last_sync_action_show() argument
5387 mismatch_cnt_show(struct mddev * mddev,char * page) mismatch_cnt_show() argument
5397 sync_min_show(struct mddev * mddev,char * page) sync_min_show() argument
5404 sync_min_store(struct mddev * mddev,const char * buf,size_t len) sync_min_store() argument
5426 sync_max_show(struct mddev * mddev,char * page) sync_max_show() argument
5433 sync_max_store(struct mddev * mddev,const char * buf,size_t len) sync_max_store() argument
5455 sync_io_depth_show(struct mddev * mddev,char * page) sync_io_depth_show() argument
5462 sync_io_depth_store(struct mddev * mddev,const char * buf,size_t len) sync_io_depth_store() argument
5484 degraded_show(struct mddev * mddev,char * page) degraded_show() argument
5491 sync_force_parallel_show(struct mddev * mddev,char * page) sync_force_parallel_show() argument
5497 sync_force_parallel_store(struct mddev * mddev,const char * buf,size_t len) sync_force_parallel_store() argument
5521 sync_speed_show(struct mddev * mddev,char * page) sync_speed_show() argument
5536 sync_completed_show(struct mddev * mddev,char * page) sync_completed_show() argument
5561 min_sync_show(struct mddev * mddev,char * page) min_sync_show() argument
5567 min_sync_store(struct mddev * mddev,const char * buf,size_t len) min_sync_store() argument
5597 max_sync_show(struct mddev * mddev,char * page) max_sync_show() argument
5606 max_sync_store(struct mddev * mddev,const char * buf,size_t len) max_sync_store() argument
5649 suspend_lo_show(struct mddev * mddev,char * page) suspend_lo_show() argument
5656 suspend_lo_store(struct mddev * mddev,const char * buf,size_t len) suspend_lo_store() argument
5680 suspend_hi_show(struct mddev * mddev,char * page) suspend_hi_show() argument
5687 suspend_hi_store(struct mddev * mddev,const char * buf,size_t len) suspend_hi_store() argument
5711 reshape_position_show(struct mddev * mddev,char * page) reshape_position_show() argument
5721 reshape_position_store(struct mddev * mddev,const char * buf,size_t len) reshape_position_store() argument
5757 reshape_direction_show(struct mddev * mddev,char * page) reshape_direction_show() argument
5764 reshape_direction_store(struct mddev * mddev,const char * buf,size_t len) reshape_direction_store() argument
5798 array_size_show(struct mddev * mddev,char * page) array_size_show() argument
5808 array_size_store(struct mddev * mddev,const char * buf,size_t len) array_size_store() argument
5854 consistency_policy_show(struct mddev * mddev,char * page) consistency_policy_show() argument
5877 consistency_policy_store(struct mddev * mddev,const char * buf,size_t len) consistency_policy_store() argument
5899 fail_last_dev_show(struct mddev * mddev,char * page) fail_last_dev_show() argument
5909 fail_last_dev_store(struct mddev * mddev,const char * buf,size_t len) fail_last_dev_store() argument
5929 serialize_policy_show(struct mddev * mddev,char * page) serialize_policy_show() argument
5943 serialize_policy_store(struct mddev * mddev,const char * buf,size_t len) serialize_policy_store() argument
5980 mddev_set_logical_block_size(struct mddev * mddev,unsigned int lbs) mddev_set_logical_block_size() argument
6007 lbs_show(struct mddev * mddev,char * page) lbs_show() argument
6013 lbs_store(struct mddev * mddev,const char * buf,size_t len) lbs_store() argument
6116 struct mddev *mddev = container_of(kobj, struct mddev, kobj); md_attr_show() local
6138 struct mddev *mddev = container_of(kobj, struct mddev, kobj); md_attr_store() local
6175 struct mddev *mddev = container_of(ko, struct mddev, kobj); md_kobj_release() local
6200 mddev_stack_rdev_limits(struct mddev * mddev,struct queue_limits * lim,unsigned int flags) mddev_stack_rdev_limits() argument
6249 mddev_stack_new_rdev(struct mddev * mddev,struct md_rdev * rdev) mddev_stack_new_rdev() argument
6279 mddev_update_io_opt(struct mddev * mddev,unsigned int nr_stripes) mddev_update_io_opt() argument
6298 struct mddev *mddev = container_of(ws, struct mddev, del_work); mddev_delayed_delete() local
6323 struct mddev *mddev; md_alloc() local
6423 struct mddev *mddev = md_alloc(dev, name); md_alloc_and_put() local
6473 struct mddev *mddev = timer_container_of(mddev, t, safemode_timer); md_safemode_timeout() local
6489 md_bitmap_get_id_from_sb(struct mddev * mddev) md_bitmap_get_id_from_sb() argument
6559 md_bitmap_create_nosysfs(struct mddev * mddev) md_bitmap_create_nosysfs() argument
6608 md_bitmap_create(struct mddev * mddev) md_bitmap_create() argument
6622 md_bitmap_destroy_nosysfs(struct mddev * mddev) md_bitmap_destroy_nosysfs() argument
6631 md_bitmap_destroy(struct mddev * mddev) md_bitmap_destroy() argument
6640 md_bitmap_set_none(struct mddev * mddev) md_bitmap_set_none() argument
6650 md_run(struct mddev * mddev) md_run() argument
6875 do_md_run(struct mddev * mddev) do_md_run() argument
6912 md_start(struct mddev * mddev) md_start() argument
6926 restart_array(struct mddev * mddev) restart_array() argument
6967 md_clean(struct mddev * mddev) md_clean() argument
7032 __md_stop_writes(struct mddev * mddev) __md_stop_writes() argument
7059 md_stop_writes(struct mddev * mddev) md_stop_writes() argument
7069 mddev_detach(struct mddev * mddev) mddev_detach() argument
7084 __md_stop(struct mddev * mddev) __md_stop() argument
7100 md_stop(struct mddev * mddev) md_stop() argument
7114 md_set_readonly(struct mddev * mddev) md_set_readonly() argument
7162 do_md_stop(struct mddev * mddev,int mode) do_md_stop() argument
7234 autorun_array(struct mddev * mddev) autorun_array() argument
7271 struct mddev *mddev; autorun_devices() local
7357 get_array_info(struct mddev * mddev,void __user * arg) get_array_info() argument
7417 get_bitmap_file(struct mddev * mddev,void __user * arg) get_bitmap_file() argument
7449 get_disk_info(struct mddev * mddev,void __user * arg) get_disk_info() argument
7489 md_add_new_disk(struct mddev * mddev,struct mdu_disk_info_s * info) md_add_new_disk() argument
7694 hot_remove_disk(struct mddev * mddev,dev_t dev) hot_remove_disk() argument
7732 hot_add_disk(struct mddev * mddev,dev_t dev) hot_add_disk() argument
7802 set_bitmap_file(struct mddev * mddev,int fd) set_bitmap_file() argument
7907 md_set_array_info(struct mddev * mddev,struct mdu_array_info_s * info) md_set_array_info() argument
7981 md_set_array_sectors(struct mddev * mddev,sector_t array_sectors) md_set_array_sectors() argument
7992 update_size(struct mddev * mddev,sector_t num_sectors) update_size() argument
8034 update_raid_disks(struct mddev * mddev,int raid_disks) update_raid_disks() argument
8074 get_cluster_ops(struct mddev * mddev) get_cluster_ops() argument
8086 put_cluster_ops(struct mddev * mddev) put_cluster_ops() argument
8104 update_array_info(struct mddev * mddev,mdu_array_info_t * info) update_array_info() argument
8230 set_disk_faulty(struct mddev * mddev,dev_t dev) set_disk_faulty() argument
8259 struct mddev *mddev = disk->private_data; md_getgeo() local
8308 __md_set_array_info(struct mddev * mddev,void __user * argp) __md_set_array_info() argument
8348 struct mddev *mddev = NULL; md_ioctl() local
8566 struct mddev *mddev = bdev->bd_disk->private_data; md_set_read_only() local
8596 struct mddev *mddev; md_open() local
8628 struct mddev *mddev = disk->private_data; md_release() local
8637 struct mddev *mddev = disk->private_data; md_check_events() local
8648 struct mddev *mddev = disk->private_data; md_free_disk() local
8738 md_register_thread(void (* run)(struct md_thread *),struct mddev * mddev,const char * name) md_register_thread() argument
8763 md_unregister_thread(struct mddev * mddev,struct md_thread __rcu ** threadp) md_unregister_thread() argument
8780 md_error(struct mddev * mddev,struct md_rdev * rdev) md_error() argument
8842 status_resync(struct seq_file * seq,struct mddev * mddev) status_resync() argument
9000 md_bitmap_status(struct seq_file * seq,struct mddev * mddev) md_bitmap_status() argument
9032 struct mddev *mddev; md_seq_show() local
9196 md_setup_cluster(struct mddev * mddev,int nodes) md_setup_cluster() argument
9217 md_cluster_stop(struct mddev * mddev) md_cluster_stop() argument
9249 is_mddev_idle(struct mddev * mddev,int init) is_mddev_idle() argument
9274 md_done_sync(struct mddev * mddev,int blocks) md_done_sync() argument
9282 md_sync_error(struct mddev * mddev) md_sync_error() argument
9297 md_write_start(struct mddev * mddev,struct bio * bi) md_write_start() argument
9348 md_write_inc(struct mddev * mddev,struct bio * bi) md_write_inc() argument
9357 md_write_end(struct mddev * mddev) md_write_end() argument
9375 md_submit_discard_bio(struct mddev * mddev,struct md_rdev * rdev,struct bio * bio,sector_t start,sector_t size) md_submit_discard_bio() argument
9395 mddev_bio_split_at_reshape_offset(struct mddev * mddev,struct bio * bio,unsigned int * max_sectors,struct bio_set * bs) mddev_bio_split_at_reshape_offset() argument
9434 md_bitmap_prepare_range(struct mddev * mddev,sector_t * offset,unsigned long * sectors,bool discard) md_bitmap_prepare_range() argument
9440 md_bitmap_start(struct mddev * mddev,struct md_io_clone * md_io_clone) md_bitmap_start() argument
9454 md_bitmap_end(struct mddev * mddev,struct md_io_clone * md_io_clone) md_bitmap_end() argument
9468 struct mddev *mddev = md_io_clone->mddev; md_end_clone_io() local
9489 md_clone_bio(struct mddev * mddev,struct bio ** bio) md_clone_bio() argument
9518 md_account_bio(struct mddev * mddev,struct bio ** bio) md_account_bio() argument
9531 md_allow_write(struct mddev * mddev) md_allow_write() argument
9559 md_sync_max_sectors(struct mddev * mddev,enum sync_action action) md_sync_max_sectors() argument
9582 mddev_select_lazy_recover_rdev(struct mddev * mddev) mddev_select_lazy_recover_rdev() argument
9610 md_sync_position(struct mddev * mddev,enum sync_action action) md_sync_position() argument
9667 sync_io_within_limit(struct mddev * mddev) sync_io_within_limit() argument
9680 md_finish_sync(struct mddev * mddev,enum sync_action action) md_finish_sync() argument
9729 struct mddev *mddev = thread->mddev; md_do_sync() local
10105 struct mddev *mddev; rdev_addable() local
10134 md_spares_need_change(struct mddev * mddev) md_spares_need_change() argument
10149 remove_spares(struct mddev * mddev,struct md_rdev * this) remove_spares() argument
10170 remove_and_add_spares(struct mddev * mddev,struct md_rdev * this) remove_and_add_spares() argument
10209 md_choose_sync_action(struct mddev * mddev,int * spares) md_choose_sync_action() argument
10258 struct mddev *mddev = container_of(ws, struct mddev, sync_work); md_start_sync() local
10365 unregister_sync_thread(struct mddev * mddev) unregister_sync_thread() argument
10379 md_should_do_recovery(struct mddev * mddev) md_should_do_recovery() argument
10447 md_check_recovery(struct mddev * mddev) md_check_recovery() argument
10570 md_reap_sync_thread(struct mddev * mddev) md_reap_sync_thread() argument
10631 md_wait_for_blocked_rdev(struct md_rdev * rdev,struct mddev * mddev) md_wait_for_blocked_rdev() argument
10640 md_finish_reshape(struct mddev * mddev) md_finish_reshape() argument
10661 struct mddev *mddev = rdev->mddev; rdev_set_badblocks() local
10717 struct mddev *mddev; md_notify_reboot() local
10794 check_sb_changes(struct mddev * mddev,struct md_rdev * rdev) check_sb_changes() argument
10907 read_rdev(struct mddev * mddev,struct md_rdev * rdev) read_rdev() argument
10954 md_reload_sb(struct mddev * mddev,int nr) md_reload_sb() argument
11057 struct mddev *mddev; md_exit() local
[all...]
H A Dmd.h138 struct mddev *mddev; /* RAID array if running */ member
393 * mddev->curr_resync stores the current sector of the resync but
407 struct mddev { struct
620 void (*sync_super)(struct mddev *mddev, struct md_rdev *rdev); argument
685 static inline bool md_is_rdwr(struct mddev *mddev) in md_is_rdwr() argument
687 return (mddev->ro == MD_RDWR); in md_is_rdwr()
690 static inline bool reshape_interrupted(struct mddev *mdde argument
408 privatemddev global() argument
409 persmddev global() argument
410 unitmddev global() argument
411 md_minormddev global() argument
412 disksmddev global() argument
413 flagsmddev global() argument
414 sb_flagsmddev global() argument
416 suspendedmddev global() argument
417 suspend_mutexmddev global() argument
418 active_iomddev global() argument
419 romddev global() argument
420 sysfs_activemddev global() argument
424 gendiskmddev global() argument
425 dm_gendiskmddev global() argument
427 kobjmddev global() argument
428 hold_activemddev global() argument
433 major_versionmddev global() argument
434 minor_versionmddev global() argument
435 patch_versionmddev global() argument
436 persistentmddev global() argument
437 externalmddev global() argument
439 metadata_typemddev global() argument
440 chunk_sectorsmddev global() argument
441 utimemddev global() argument
442 layoutmddev global() argument
443 clevelmddev global() argument
444 raid_disksmddev global() argument
445 max_disksmddev global() argument
446 dev_sectorsmddev global() argument
448 array_sectorsmddev global() argument
449 external_sizemddev global() argument
451 logical_block_sizemddev global() argument
452 eventsmddev global() argument
458 can_decrease_eventsmddev global() argument
460 uuidmddev global() argument
467 reshape_positionmddev global() argument
468 new_layoutmddev global() argument
469 new_chunk_sectorsmddev global() argument
470 reshape_backwardsmddev global() argument
472 threadmddev global() argument
473 sync_threadmddev global() argument
480 last_sync_actionmddev global() argument
481 curr_resyncmddev global() argument
488 curr_resync_completedmddev global() argument
489 resync_markmddev global() argument
490 resync_mark_cntmddev global() argument
491 curr_mark_cntmddev global() argument
493 resync_max_sectorsmddev global() argument
495 resync_mismatchesmddev global() argument
500 suspend_lomddev global() argument
501 suspend_himddev global() argument
503 sync_speed_minmddev global() argument
504 sync_speed_maxmddev global() argument
505 sync_io_depthmddev global() argument
508 parallel_resyncmddev global() argument
510 ok_start_degradedmddev global() argument
512 recoverymddev global() argument
514 in_syncmddev global() argument
524 open_mutexmddev global() argument
525 reconfig_mutexmddev global() argument
526 activemddev global() argument
527 openersmddev global() argument
529 changedmddev global() argument
531 degradedmddev global() argument
535 normal_io_eventsmddev global() argument
536 recovery_activemddev global() argument
537 recovery_waitmddev global() argument
538 resync_offsetmddev global() argument
539 resync_minmddev global() argument
541 resync_maxmddev global() argument
544 sysfs_statemddev global() argument
547 sysfs_actionmddev global() argument
548 sysfs_completedmddev global() argument
549 sysfs_degradedmddev global() argument
550 sysfs_levelmddev global() argument
553 del_workmddev global() argument
555 sync_workmddev global() argument
568 lockmddev global() argument
569 sb_waitmddev global() argument
570 pending_writesmddev global() argument
572 safemodemddev global() argument
575 safemode_delaymddev global() argument
576 safemode_timermddev global() argument
577 writes_pendingmddev global() argument
578 sync_checkersmddev global() argument
580 bitmap_idmddev global() argument
581 bitmapmddev global() argument
582 bitmap_opsmddev global() argument
583 __anonab355d6b0408mddev global() argument
608 all_mddevsmddev global() argument
621 cluster_infomddev global() argument
622 cluster_opsmddev global() argument
623 good_device_nrmddev global() argument
629 deletingmddev global() argument
632 sync_seqmddev global() argument
709 mddev_lock(struct mddev * mddev) mddev_lock() argument
732 mddev_lock_nointr(struct mddev * mddev) mddev_lock_nointr() argument
737 mddev_trylock(struct mddev * mddev) mddev_trylock() argument
824 mdname(struct mddev * mddev) mdname() argument
829 sysfs_link_rdev(struct mddev * mddev,struct md_rdev * rdev) sysfs_link_rdev() argument
841 sysfs_unlink_rdev(struct mddev * mddev,struct md_rdev * rdev) sysfs_unlink_rdev() argument
862 rdev_for_each(rdev,mddev) global() argument
865 rdev_for_each_safe(rdev,tmp,mddev) global() argument
868 rdev_for_each_rcu(rdev,mddev) global() argument
873 struct mddev *mddev; global() member
882 struct mddev *mddev; global() member
983 rdev_dec_pending(struct md_rdev * rdev,struct mddev * mddev) rdev_dec_pending() argument
992 mddev_is_clustered(struct mddev * mddev) mddev_is_clustered() argument
998 mddev_clear_unsupported_flags(struct mddev * mddev,unsigned long unsupported_flags) mddev_clear_unsupported_flags() argument
1004 mddev_check_write_zeroes(struct mddev * mddev,struct bio * bio) mddev_check_write_zeroes() argument
1011 mddev_suspend_and_lock(struct mddev * mddev) mddev_suspend_and_lock() argument
1026 mddev_suspend_and_lock_nointr(struct mddev * mddev) mddev_suspend_and_lock_nointr() argument
1032 mddev_unlock_and_resume(struct mddev * mddev) mddev_unlock_and_resume() argument
1054 md_cloned_bio(struct mddev * mddev,struct bio * bio) md_cloned_bio() argument
1062 mddev_is_dm(struct mddev * mddev) mddev_is_dm() argument
1067 raid_is_456(struct mddev * mddev) raid_is_456() argument
1073 mddev_trace_remap(struct mddev * mddev,struct bio * bio,sector_t sector) mddev_trace_remap() argument
1104 mddev_add_trace_msg(mddev,fmt,args...) global() argument
[all...]
H A Dmd-cluster.h9 struct mddev;
15 int (*join)(struct mddev *mddev, int nodes);
16 int (*leave)(struct mddev *mddev);
17 int (*slot_number)(struct mddev *mddev);
18 int (*resync_info_update)(struct mddev *mddev, sector_t lo, sector_t hi);
19 int (*resync_start_notify)(struct mddev *mddev);
20 int (*resync_status_get)(struct mddev *mddev);
21 void (*resync_info_get)(struct mddev *mddev, sector_t *lo, sector_t *hi);
22 int (*metadata_update_start)(struct mddev *mddev);
23 int (*metadata_update_finish)(struct mddev *mddev);
[all …]
H A Dmd-bitmap.h81 typedef void (md_bitmap_fn)(struct mddev *mddev, sector_t offset,
88 int (*create)(struct mddev *mddev);
89 int (*resize)(struct mddev *mddev, sector_t blocks, int chunksize);
91 int (*load)(struct mddev *mddev);
92 void (*destroy)(struct mddev *mddev);
93 void (*flush)(struct mddev *mddev);
94 void (*write_all)(struct mddev *mddev);
95 void (*dirty_bits)(struct mddev *mddev, unsigned long s,
98 void (*prepare_range)(struct mddev *mddev,
102 void (*reshape_finish)(struct mddev *mddev);
[all …]
H A Draid0.c38 static void dump_zones(struct mddev *mddev) in dump_zones() argument
43 struct r0conf *conf = mddev->private; in dump_zones()
46 mdname(mddev), in dump_zones()
66 static int create_strip_zones(struct mddev *mddev, struct r0conf **private_conf) in create_strip_zones() argument
76 if (!mddev_is_dm(mddev)) in create_strip_zones()
77 blksize = queue_logical_block_size(mddev->gendisk->queue); in create_strip_zones()
84 rdev_for_each(rdev1, mddev) { in create_strip_zones()
87 mdname(mddev), in create_strip_zones()
325 map_sector(struct mddev * mddev,struct strip_zone * zone,sector_t sector,sector_t * sector_offset) map_sector() argument
358 raid0_size(struct mddev * mddev,sector_t sectors,int raid_disks) raid0_size() argument
373 raid0_free(struct mddev * mddev,void * priv) raid0_free() argument
382 raid0_set_limits(struct mddev * mddev) raid0_set_limits() argument
404 raid0_run(struct mddev * mddev) raid0_run() argument
457 raid0_handle_discard(struct mddev * mddev,struct bio * bio) raid0_handle_discard() argument
558 raid0_map_submit_bio(struct mddev * mddev,struct bio * bio) raid0_map_submit_bio() argument
596 raid0_make_request(struct mddev * mddev,struct bio * bio) raid0_make_request() argument
630 raid0_status(struct seq_file * seq,struct mddev * mddev) raid0_status() argument
636 raid0_error(struct mddev * mddev,struct md_rdev * rdev) raid0_error() argument
646 raid0_takeover_raid45(struct mddev * mddev) raid0_takeover_raid45() argument
683 raid0_takeover_raid10(struct mddev * mddev) raid0_takeover_raid10() argument
725 raid0_takeover_raid1(struct mddev * mddev) raid0_takeover_raid1() argument
768 raid0_takeover(struct mddev * mddev) raid0_takeover() argument
805 raid0_quiesce(struct mddev * mddev,int quiesce) raid0_quiesce() argument
[all...]
H A Dmd-cluster.c28 struct mddev *mddev; /* pointing back to mddev. */ member
63 struct mddev *mddev; /* the md device which md_cluster_info belongs to */ member
159 struct mddev *mddev) in dlm_lock_sync_interruptible() argument
171 || test_bit(MD_CLOSING, &mddev->flags)); in dlm_lock_sync_interruptible()
192 static struct dlm_lock_resource *lockres_init(struct mddev *mddev, in lockres_init() argument
197 struct md_cluster_info *cinfo = mddev->cluster_info; in lockres_init()
205 res->mddev = mddev; in lockres_init()
277 static int read_resync_info(struct mddev *mddev, in read_resync_info() argument
281 struct md_cluster_info *cinfo = mddev->cluster_info; in read_resync_info()
297 struct mddev *mddev = thread->mddev; in recover_bitmaps() local
[all …]
H A Dmd-linear.c30 static inline struct dev_info *which_dev(struct mddev *mddev, sector_t sector) in which_dev() argument
36 hi = mddev->raid_disks - 1; in which_dev()
37 conf = mddev->private; in which_dev()
55 static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disks) in linear_size() argument
60 conf = mddev->private; in linear_size()
68 static int linear_set_limits(struct mddev *mddev) in linear_set_limits() argument
75 lim.max_hw_sectors = mddev->chunk_sectors; in linear_set_limits()
76 lim.logical_block_size = mddev->logical_block_size; in linear_set_limits()
77 lim.max_write_zeroes_sectors = mddev->chunk_sectors; in linear_set_limits()
78 lim.max_hw_wzeroes_unmap_sectors = mddev->chunk_sectors; in linear_set_limits()
[all …]
H A Dmd-llbitmap.c278 struct mddev *mddev; member
427 static void __llbitmap_flush(struct mddev *mddev);
428 static void llbitmap_flush(struct mddev *mddev);
431 static void llbitmap_calculate_chunks(struct mddev *mddev, sector_t blocks, in llbitmap_calculate_chunks() argument
436 while (*chunks > mddev->bitmap_info.space << SECTOR_SHIFT) { in llbitmap_calculate_chunks()
445 struct mddev *mddev = llbitmap->mddev; in llbitmap_personality_sync_size() local
447 if (READ_ONCE(mddev->reshape_position) == MaxSector || in llbitmap_personality_sync_size()
448 !mddev->private || !mddev->pers || in llbitmap_personality_sync_size()
449 !mddev->pers->bitmap_sync_size) in llbitmap_personality_sync_size()
451 return mddev->pers->bitmap_sync_size(mddev, previous); in llbitmap_personality_sync_size()
[all …]
H A Dmd-bitmap.c151 /* the main bitmap structure - one per mddev */
167 struct mddev *mddev; /* the md device that the bitmap is for */ member
226 return bitmap->mddev ? mdname(bitmap->mddev) : "mdX"; in bmname()
348 static int read_sb_page(struct mddev *mddev, loff_t offset, in read_sb_page() argument
352 sector_t sector = mddev->bitmap_info.offset + offset + in read_sb_page()
356 rdev_for_each(rdev, mddev) { in read_sb_page()
370 static struct md_rdev *next_active_rdev(struct md_rdev *rdev, struct mddev *mdde argument
432 struct mddev *mddev = bitmap->mddev; __write_sb_page() local
488 struct mddev *mddev = bitmap->mddev; write_sb_page() local
1297 bitmap_unplug(struct mddev * mddev,bool sync) bitmap_unplug() argument
1326 struct mddev *mddev = bitmap->mddev; md_bitmap_init_from_disk() local
1446 bitmap_write_all(struct mddev * mddev) bitmap_write_all() argument
1486 mddev_set_timeout(struct mddev * mddev,unsigned long timeout,bool force) mddev_set_timeout() argument
1508 bitmap_daemon_work(struct mddev * mddev) bitmap_daemon_work() argument
1679 bitmap_start_write(struct mddev * mddev,sector_t offset,unsigned long sectors) bitmap_start_write() argument
1733 bitmap_prepare_range(struct mddev * mddev,sector_t * offset,unsigned long * sectors,bool discard) bitmap_prepare_range() argument
1740 bitmap_end_write(struct mddev * mddev,sector_t offset,unsigned long sectors) bitmap_end_write() argument
1813 bitmap_start_sync(struct mddev * mddev,sector_t offset,sector_t * blocks,bool degraded) bitmap_start_sync() argument
1864 bitmap_end_sync(struct mddev * mddev,sector_t offset,sector_t * blocks) bitmap_end_sync() argument
1870 bitmap_close_sync(struct mddev * mddev) bitmap_close_sync() argument
1889 bitmap_cond_end_sync(struct mddev * mddev,sector_t sector,bool force) bitmap_cond_end_sync() argument
1920 bitmap_sync_with_cluster(struct mddev * mddev,sector_t old_lo,sector_t old_hi,sector_t new_lo,sector_t new_hi) bitmap_sync_with_cluster() argument
1967 bitmap_dirty_bits(struct mddev * mddev,unsigned long s,unsigned long e) bitmap_dirty_bits() argument
1990 bitmap_flush(struct mddev * mddev) bitmap_flush() argument
2049 bitmap_start_behind_write(struct mddev * mddev) bitmap_start_behind_write() argument
2063 bitmap_end_behind_write(struct mddev * mddev) bitmap_end_behind_write() argument
2074 bitmap_wait_behind_writes(struct mddev * mddev) bitmap_wait_behind_writes() argument
2088 bitmap_destroy(struct mddev * mddev) bitmap_destroy() argument
2114 __bitmap_create(struct mddev * mddev,int slot) __bitmap_create() argument
2202 bitmap_create(struct mddev * mddev) bitmap_create() argument
2213 bitmap_load(struct mddev * mddev) bitmap_load() argument
2271 bitmap_get_from_slot(struct mddev * mddev,int slot) bitmap_get_from_slot() argument
2294 bitmap_copy_from_slot(struct mddev * mddev,int slot,sector_t * low,sector_t * high,bool clear_bits) bitmap_copy_from_slot() argument
2582 bitmap_resize(struct mddev * mddev,sector_t blocks,int chunksize) bitmap_resize() argument
2597 bitmap_none_create(struct mddev * mddev) bitmap_none_create() argument
2602 bitmap_none_load(struct mddev * mddev) bitmap_none_load() argument
2607 bitmap_none_destroy(struct mddev * mddev) bitmap_none_destroy() argument
2617 location_show(struct mddev * mddev,char * page) location_show() argument
2631 location_store(struct mddev * mddev,const char * buf,size_t len) location_store() argument
2757 space_show(struct mddev * mddev,char * page) space_show() argument
2763 space_store(struct mddev * mddev,const char * buf,size_t len) space_store() argument
2791 timeout_show(struct mddev * mddev,char * page) timeout_show() argument
2805 timeout_store(struct mddev * mddev,const char * buf,size_t len) timeout_store() argument
2835 backlog_show(struct mddev * mddev,char * page) backlog_show() argument
2841 backlog_store(struct mddev * mddev,const char * buf,size_t len) backlog_store() argument
2895 chunksize_show(struct mddev * mddev,char * page) chunksize_show() argument
2901 chunksize_store(struct mddev * mddev,const char * buf,size_t len) chunksize_store() argument
2924 metadata_show(struct mddev * mddev,char * page) metadata_show() argument
2932 metadata_store(struct mddev * mddev,const char * buf,size_t len) metadata_store() argument
2951 can_clear_show(struct mddev * mddev,char * page) can_clear_show() argument
2967 can_clear_store(struct mddev * mddev,const char * buf,size_t len) can_clear_store() argument
2993 behind_writes_used_show(struct mddev * mddev,char * page) behind_writes_used_show() argument
3010 behind_writes_used_reset(struct mddev * mddev,const char * buf,size_t len) behind_writes_used_reset() argument
[all...]
H A Draid10.c74 static sector_t reshape_request(struct mddev *mddev, sector_t sector_nr,
76 static void reshape_request_write(struct mddev *mddev, struct r10bio *r10_bio);
154 if (test_bit(MD_RECOVERY_SYNC, &conf->mddev->recovery) || in r10buf_pool_alloc()
155 test_bit(MD_RECOVERY_RESHAPE, &conf->mddev->recovery)) in r10buf_pool_alloc()
201 &conf->mddev->recovery)) { in r10buf_pool_alloc()
287 struct r10conf *conf = r10_bio->mddev->private; in free_r10bio()
295 struct r10conf *conf = r10_bio->mddev->private; in put_buf()
311 struct mddev *mdde in reschedule_retry() local
448 struct mddev *mddev = r10_bio->mddev; close_write() local
1091 struct mddev *mddev = plug->cb.data; raid10_unplug() local
1126 regular_request_wait(struct mddev * mddev,struct r10conf * conf,struct bio * bio,sector_t sectors) regular_request_wait() argument
1144 raid10_read_request(struct mddev * mddev,struct bio * bio,struct r10bio * r10_bio) raid10_read_request() argument
1246 raid10_write_one_disk(struct mddev * mddev,struct r10bio * r10_bio,struct bio * bio,bool replacement,int n_copy) raid10_write_one_disk() argument
1287 wait_blocked_dev(struct mddev * mddev,struct r10bio * r10_bio) wait_blocked_dev() argument
1343 raid10_write_request(struct mddev * mddev,struct bio * bio,struct r10bio * r10_bio) raid10_write_request() argument
1503 __make_request(struct mddev * mddev,struct bio * bio,int sectors) __make_request() argument
1582 raid10_handle_discard(struct mddev * mddev,struct bio * bio) raid10_handle_discard() argument
1847 raid10_make_request(struct mddev * mddev,struct bio * bio) raid10_make_request() argument
1894 raid10_status(struct seq_file * seq,struct mddev * mddev) raid10_status() argument
1988 raid10_error(struct mddev * mddev,struct md_rdev * rdev) raid10_error() argument
2050 raid10_spare_active(struct mddev * mddev) raid10_spare_active() argument
2098 raid10_add_disk(struct mddev * mddev,struct md_rdev * rdev) raid10_add_disk() argument
2161 raid10_remove_disk(struct mddev * mddev,struct md_rdev * rdev) raid10_remove_disk() argument
2257 struct mddev *mddev = r10_bio->mddev; end_sync_request() local
2285 struct mddev *mddev = r10_bio->mddev; end_sync_write() local
2334 sync_request_write(struct mddev * mddev,struct r10bio * r10_bio) sync_request_write() argument
2468 struct mddev *mddev = r10_bio->mddev; fix_recovery_read_error() local
2540 recovery_request_write(struct mddev * mddev,struct r10bio * r10_bio) recovery_request_write() argument
2606 fix_read_error(struct r10conf * conf,struct mddev * mddev,struct r10bio * r10_bio) fix_read_error() argument
2764 struct mddev *mddev = r10_bio->mddev; narrow_write_error() local
2824 handle_read_error(struct mddev * mddev,struct r10bio * r10_bio) handle_read_error() argument
2955 struct mddev *mddev = thread->mddev; raid10d() local
3141 raid10_sync_request(struct mddev * mddev,sector_t sector_nr,sector_t max_sector,int * skipped) raid10_sync_request() argument
3706 raid10_size(struct mddev * mddev,sector_t sectors,int raid_disks) raid10_size() argument
3756 setup_geo(struct geom * geo,struct mddev * mddev,enum geo_type new) setup_geo() argument
3828 setup_conf(struct mddev * mddev) setup_conf() argument
3922 raid10_set_queue_limits(struct mddev * mddev) raid10_set_queue_limits() argument
3943 raid10_run(struct mddev * mddev) raid10_run() argument
4117 raid10_free(struct mddev * mddev,void * priv) raid10_free() argument
4122 raid10_quiesce(struct mddev * mddev,int quiesce) raid10_quiesce() argument
4132 raid10_resize(struct mddev * mddev,sector_t sectors) raid10_resize() argument
4180 raid10_takeover_raid0(struct mddev * mddev,sector_t size,int devs) raid10_takeover_raid0() argument
4215 raid10_takeover(struct mddev * mddev) raid10_takeover() argument
4237 raid10_check_reshape(struct mddev * mddev) raid10_check_reshape() argument
4345 raid10_start_reshape(struct mddev * mddev) raid10_start_reshape() argument
4574 reshape_request(struct mddev * mddev,sector_t sector_nr,int * skipped) reshape_request() argument
4857 reshape_request_write(struct mddev * mddev,struct r10bio * r10_bio) reshape_request_write() argument
4903 struct mddev *mddev = conf->mddev; end_reshape() local
4928 raid10_update_reshape_pos(struct mddev * mddev) raid10_update_reshape_pos() argument
4941 handle_reshape_read_error(struct mddev * mddev,struct r10bio * r10_bio) handle_reshape_read_error() argument
5015 struct mddev *mddev = r10_bio->mddev; end_reshape_write() local
5044 raid10_finish_reshape(struct mddev * mddev) raid10_finish_reshape() argument
5082 raid10_bitmap_sync_size(struct mddev * mddev,bool previous) raid10_bitmap_sync_size() argument
[all...]
H A Draid1.c49 static void raid1_free(struct mddev *mddev, void *priv);
92 struct mddev *mddev = rdev->mddev; in wait_for_serialization() local
95 if (WARN_ON(!mddev->serial_info_pool)) in wait_for_serialization()
97 si = mempool_alloc(mddev->serial_info_pool, GFP_NOIO); in wait_for_serialization()
112 struct mddev *mddev = rdev->mddev; in remove_serial() local
302 struct mddev *mddev = r1_bio->mddev; reschedule_retry() local
439 struct mddev *mddev = r1_bio->mddev; close_write() local
1279 struct mddev *mddev = plug->cb.data; raid1_unplug() local
1299 init_r1bio(struct r1bio * r1_bio,struct mddev * mddev,struct bio * bio) init_r1bio() argument
1309 alloc_r1bio(struct mddev * mddev,struct bio * bio) alloc_r1bio() argument
1320 raid1_read_request(struct mddev * mddev,struct bio * bio,int max_read_sectors,struct r1bio * r1_bio) raid1_read_request() argument
1426 wait_blocked_rdev(struct mddev * mddev,struct bio * bio) wait_blocked_rdev() argument
1455 raid1_start_write_behind(struct mddev * mddev,struct r1bio * r1_bio,struct bio * bio) raid1_start_write_behind() argument
1479 raid1_write_request(struct mddev * mddev,struct bio * bio,int max_sectors) raid1_write_request() argument
1674 raid1_make_request(struct mddev * mddev,struct bio * bio) raid1_make_request() argument
1702 raid1_status(struct seq_file * seq,struct mddev * mddev) raid1_status() argument
1736 raid1_error(struct mddev * mddev,struct md_rdev * rdev) raid1_error() argument
1804 raid1_spare_active(struct mddev * mddev) raid1_spare_active() argument
1901 raid1_add_disk(struct mddev * mddev,struct md_rdev * rdev) raid1_add_disk() argument
1956 raid1_remove_disk(struct mddev * mddev,struct md_rdev * rdev) raid1_remove_disk() argument
2031 abort_sync_write(struct mddev * mddev,struct r1bio * r1_bio) abort_sync_write() argument
2048 struct mddev *mddev = r1_bio->mddev; put_sync_write_buf() local
2064 struct mddev *mddev = r1_bio->mddev; end_sync_write() local
2115 struct mddev *mddev = r1_bio->mddev; fix_sync_read_error() local
2237 struct mddev *mddev = r1_bio->mddev; process_checks() local
2314 sync_request_write(struct mddev * mddev,struct r1bio * r1_bio) sync_request_write() argument
2381 struct mddev *mddev = conf->mddev; fix_read_error() local
2463 struct mddev *mddev = r1_bio->mddev; narrow_write_error() local
2597 struct mddev *mddev = conf->mddev; handle_read_error() local
2639 struct mddev *mddev = thread->mddev; raid1d() local
2745 raid1_sync_request(struct mddev * mddev,sector_t sector_nr,sector_t max_sector,int * skipped) raid1_sync_request() argument
3037 raid1_size(struct mddev * mddev,sector_t sectors,int raid_disks) raid1_size() argument
3045 setup_conf(struct mddev * mddev) setup_conf() argument
3167 raid1_set_limits(struct mddev * mddev) raid1_set_limits() argument
3185 raid1_run(struct mddev * mddev) raid1_run() argument
3267 raid1_free(struct mddev * mddev,void * priv) raid1_free() argument
3282 raid1_resize(struct mddev * mddev,sector_t sectors) raid1_resize() argument
3315 raid1_reshape(struct mddev * mddev) raid1_reshape() argument
3411 raid1_quiesce(struct mddev * mddev,int quiesce) raid1_quiesce() argument
3421 raid1_takeover(struct mddev * mddev) raid1_takeover() argument
[all...]
H A Draid5.c76 static void raid5_quiesce(struct mddev *mddev, int quiesce);
203 md_wakeup_thread(conf->mddev->thread); in raid5_wakeup_stripe_thread()
276 md_wakeup_thread(conf->mddev->thread); in do_release_stripe()
282 md_wakeup_thread(conf->mddev->thread); in do_release_stripe()
364 md_wakeup_thread(conf->mddev->thread); in release_inactive_stripe_list()
410 if (unlikely(!conf->mddev->thread) || in raid5_release_stripe()
415 md_wakeup_thread(conf->mddev->thread); in raid5_release_stripe()
751 int degraded = conf->mddev->degraded; in has_failed()
753 if (test_bit(MD_BROKEN, &conf->mddev in has_failed()
1137 raid5_discard_limits(struct mddev * mddev,struct bio * bi) raid5_discard_limits() argument
2922 raid5_error(struct mddev * mddev,struct md_rdev * rdev) raid5_error() argument
3839 struct mddev *mddev = sh->raid_conf->mddev; need_this_block() local
4192 struct mddev *mddev = conf->mddev; handle_stripe_dirtying() local
5431 in_chunk_boundary(struct mddev * mddev,struct bio * bio) in_chunk_boundary() argument
5491 struct mddev *mddev = rdev->mddev; raid5_align_endio() local
5511 raid5_read_one_chunk(struct mddev * mddev,struct bio * raid_bio) raid5_read_one_chunk() argument
5587 chunk_aligned_read(struct mddev * mddev,struct bio * raid_bio) chunk_aligned_read() argument
5722 struct mddev *mddev = cb->cb.data; raid5_unplug() local
5756 release_stripe_plug(struct mddev * mddev,struct stripe_head * sh) release_stripe_plug() argument
5784 make_discard_request(struct mddev * mddev,struct bio * bi) make_discard_request() argument
5889 ahead_of_reshape(struct mddev * mddev,sector_t sector,sector_t reshape_sector) ahead_of_reshape() argument
5896 range_ahead_of_reshape(struct mddev * mddev,sector_t min,sector_t max,sector_t reshape_sector) range_ahead_of_reshape() argument
5903 stripe_ahead_of_reshape(struct mddev * mddev,struct r5conf * conf,struct stripe_head * sh) stripe_ahead_of_reshape() argument
5989 get_reshape_loc(struct mddev * mddev,struct r5conf * conf,sector_t logical_sector) get_reshape_loc() argument
6018 raid5_bitmap_sector_map(struct mddev * mddev,sector_t * offset,unsigned long * sectors,bool previous) raid5_bitmap_sector_map() argument
6046 raid5_bitmap_sector(struct mddev * mddev,sector_t * offset,unsigned long * sectors) raid5_bitmap_sector() argument
6080 make_stripe_request(struct mddev * mddev,struct r5conf * conf,struct stripe_request_ctx * ctx,sector_t logical_sector,struct bio * bi) make_stripe_request() argument
6218 raid5_make_request(struct mddev * mddev,struct bio * bi) raid5_make_request() argument
6379 reshape_request(struct mddev * mddev,sector_t sector_nr,int * skipped) reshape_request() argument
6670 raid5_sync_request(struct mddev * mddev,sector_t sector_nr,sector_t max_sector,int * skipped) raid5_sync_request() argument
6887 struct mddev *mddev = conf->mddev; raid5_do_work() local
6935 struct mddev *mddev = thread->mddev; raid5d() local
7021 raid5_show_stripe_cache_size(struct mddev * mddev,char * page) raid5_show_stripe_cache_size() argument
7034 raid5_set_cache_size(struct mddev * mddev,int size) raid5_set_cache_size() argument
7065 raid5_store_stripe_cache_size(struct mddev * mddev,const char * page,size_t len) raid5_store_stripe_cache_size() argument
7094 raid5_show_rmw_level(struct mddev * mddev,char * page) raid5_show_rmw_level() argument
7104 raid5_store_rmw_level(struct mddev * mddev,const char * page,size_t len) raid5_store_rmw_level() argument
7136 raid5_show_stripe_size(struct mddev * mddev,char * page) raid5_show_stripe_size() argument
7151 raid5_store_stripe_size(struct mddev * mddev,const char * page,size_t len) raid5_store_stripe_size() argument
7230 raid5_show_preread_threshold(struct mddev * mddev,char * page) raid5_show_preread_threshold() argument
7243 raid5_store_preread_threshold(struct mddev * mddev,const char * page,size_t len) raid5_store_preread_threshold() argument
7275 raid5_show_skip_copy(struct mddev * mddev,char * page) raid5_show_skip_copy() argument
7288 raid5_store_skip_copy(struct mddev * mddev,const char * page,size_t len) raid5_store_skip_copy() argument
7327 stripe_cache_active_show(struct mddev * mddev,char * page) stripe_cache_active_show() argument
7340 raid5_show_group_thread_cnt(struct mddev * mddev,char * page) raid5_show_group_thread_cnt() argument
7356 raid5_store_group_thread_cnt(struct mddev * mddev,const char * page,size_t len) raid5_store_group_thread_cnt() argument
7483 raid5_size(struct mddev * mddev,sector_t sectors,int raid_disks) raid5_size() argument
7633 setup_conf(struct mddev * mddev) setup_conf() argument
7934 raid5_set_limits(struct mddev * mddev) raid5_set_limits() argument
7989 raid5_run(struct mddev * mddev) raid5_run() argument
8272 raid5_free(struct mddev * mddev,void * priv) raid5_free() argument
8280 raid5_status(struct seq_file * seq,struct mddev * mddev) raid5_status() argument
8321 raid5_spare_active(struct mddev * mddev) raid5_spare_active() argument
8365 raid5_remove_disk(struct mddev * mddev,struct md_rdev * rdev) raid5_remove_disk() argument
8444 raid5_add_disk(struct mddev * mddev,struct md_rdev * rdev) raid5_add_disk() argument
8524 raid5_resize(struct mddev * mddev,sector_t sectors) raid5_resize() argument
8562 check_stripe_cache(struct mddev * mddev) check_stripe_cache() argument
8586 check_reshape(struct mddev * mddev) check_reshape() argument
8635 raid5_start_reshape(struct mddev * mddev) raid5_start_reshape() argument
8774 struct mddev *mddev = conf->mddev; end_reshape() local
8809 raid5_finish_reshape(struct mddev * mddev) raid5_finish_reshape() argument
8848 raid5_quiesce(struct mddev * mddev,int quiesce) raid5_quiesce() argument
8883 raid45_takeover_raid0(struct mddev * mddev,int level) raid45_takeover_raid0() argument
8909 raid5_takeover_raid1(struct mddev * mddev) raid5_takeover_raid1() argument
8941 raid5_takeover_raid6(struct mddev * mddev) raid5_takeover_raid6() argument
8974 raid5_check_reshape(struct mddev * mddev) raid5_check_reshape() argument
9014 raid6_check_reshape(struct mddev * mddev) raid6_check_reshape() argument
9034 raid5_takeover(struct mddev * mddev) raid5_takeover() argument
9057 raid4_takeover(struct mddev * mddev) raid4_takeover() argument
9076 raid6_takeover(struct mddev * mddev) raid6_takeover() argument
9122 raid5_change_consistency_policy(struct mddev * mddev,const char * buf) raid5_change_consistency_policy() argument
9183 raid5_start(struct mddev * mddev) raid5_start() argument
9195 raid5_prepare_suspend(struct mddev * mddev) raid5_prepare_suspend() argument
9202 raid5_bitmap_sync_size(struct mddev * mddev,bool previous) raid5_bitmap_sync_size() argument
9207 raid5_bitmap_array_sectors(struct mddev * mddev,bool previous) raid5_bitmap_array_sectors() argument
[all...]
H A Draid1-10.c128 static inline bool raid1_add_bio_to_plug(struct mddev *mddev, struct bio *bio, in raid1_add_bio_to_plug() argument
138 if (!md_bitmap_enabled(mddev, true)) { in raid1_add_bio_to_plug()
143 cb = blk_check_plugged(unplug, mddev, sizeof(*plug)); in raid1_add_bio_to_plug()
174 static inline void raid1_prepare_flush_writes(struct mddev *mddev) in check_decay_read_errors() argument
176 mddev->bitmap_ops->unplug(mddev, current->bio_list == NULL); in check_decay_read_errors()
179 static inline void flush_bio_list(struct mddev *mddev, struc in check_decay_read_errors()
164 raid1_prepare_flush_writes(struct mddev * mddev) raid1_prepare_flush_writes() argument
204 exceed_read_errors(struct mddev * mddev,struct md_rdev * rdev) exceed_read_errors() argument
278 raid1_should_read_first(struct mddev * mddev,sector_t this_sector,int len) raid1_should_read_first() argument
[all...]
H A Draid5-ppl.c88 struct mddev *mddev; member
408 md_error(ppl_conf->mddev, log->rdev); in ppl_log_endio()
551 struct r5conf *conf = ppl_conf->mddev->private; in ppl_io_unit_finished()
586 struct r5conf *conf = ppl_conf->mddev->private; in ppl_flush_endio()
594 rdev = md_find_rdev_rcu(conf->mddev, bio_dev(bio)); in ppl_flush_endio()
596 md_error(rdev->mddev, rdev); in ppl_flush_endio()
604 md_wakeup_thread(conf->mddev->thread); in ppl_flush_endio()
612 struct r5conf *conf = ppl_conf->mddev->private; in ppl_do_flush()
790 struct mddev *mdde in ppl_recover_entry() local
966 struct mddev *mddev = rdev->mddev; ppl_recover() local
1074 struct mddev *mddev = rdev->mddev; ppl_load_distributed() local
1320 struct mddev *mddev = conf->mddev; ppl_init_log() local
1488 ppl_write_hint_show(struct mddev * mddev,char * buf) ppl_write_hint_show() argument
1494 ppl_write_hint_store(struct mddev * mddev,const char * page,size_t len) ppl_write_hint_store() argument
[all...]
H A Draid10.h24 struct mddev *mddev; member
121 struct mddev *mddev; member
H A Draid5.h461 * 1/ when holding mddev->reconfig_mutex
574 struct mddev *mddev; member
806 int raid5_set_cache_size(struct mddev *mddev, int size);
824 int r5c_journal_mode_set(struct mddev *mddev, int journal_mode);
H A Draid5-log.h30 void r5c_update_on_rdev_error(struct mddev *mddev, struct md_rdev *rdev);
49 return test_bit(MD_HAS_JOURNAL, &conf->mddev->flags); in raid5_has_log()
54 return test_bit(MD_HAS_PPL, &conf->mddev->flags); in raid5_has_ppl()