Lines Matching refs:md_rdev

93 				 struct md_rdev *this);
131 static void rdev_uninit_serial(struct md_rdev *rdev) in rdev_uninit_serial()
142 struct md_rdev *rdev; in rdevs_uninit_serial()
148 static int rdev_init_serial(struct md_rdev *rdev) in rdev_init_serial()
178 struct md_rdev *rdev; in rdevs_init_serial()
199 static int rdev_need_serial(struct md_rdev *rdev) in rdev_need_serial()
211 void mddev_create_serial_pool(struct mddev *mddev, struct md_rdev *rdev, in mddev_create_serial_pool()
255 void mddev_destroy_serial_pool(struct mddev *mddev, struct md_rdev *rdev, in mddev_destroy_serial_pool()
262 struct md_rdev *temp; in mddev_destroy_serial_pool()
511 struct md_rdev *rdev = bio->bi_private; in md_end_flush()
529 struct md_rdev *rdev; in submit_flushes()
824 struct md_rdev *md_find_rdev_nr_rcu(struct mddev *mddev, int nr) in md_find_rdev_nr_rcu()
826 struct md_rdev *rdev; in md_find_rdev_nr_rcu()
836 static struct md_rdev *find_rdev(struct mddev *mddev, dev_t dev) in find_rdev()
838 struct md_rdev *rdev; in find_rdev()
847 struct md_rdev *md_find_rdev_rcu(struct mddev *mddev, dev_t dev) in md_find_rdev_rcu()
849 struct md_rdev *rdev; in md_find_rdev_rcu()
872 static inline sector_t calc_dev_sboffset(struct md_rdev *rdev) in calc_dev_sboffset()
877 static int alloc_disk_sb(struct md_rdev *rdev) in alloc_disk_sb()
885 void md_rdev_clear(struct md_rdev *rdev) in md_rdev_clear()
904 struct md_rdev *rdev = bio->bi_private; in super_written()
927 void md_super_write(struct mddev *mddev, struct md_rdev *rdev, in md_super_write()
974 int sync_page_io(struct md_rdev *rdev, sector_t sector, int size, in sync_page_io()
1001 static int read_disk_sb(struct md_rdev *rdev, int size) in read_disk_sb()
1123 int (*load_super)(struct md_rdev *rdev,
1124 struct md_rdev *refdev,
1127 struct md_rdev *rdev);
1129 struct md_rdev *rdev);
1130 unsigned long long (*rdev_size_change)(struct md_rdev *rdev,
1132 int (*allow_new_offset)(struct md_rdev *rdev,
1157 static int super_90_load(struct md_rdev *rdev, struct md_rdev *refdev, int minor_version) in super_90_load()
1265 static int super_90_validate(struct mddev *mddev, struct md_rdev *rdev) in super_90_validate()
1394 static void super_90_sync(struct mddev *mddev, struct md_rdev *rdev) in super_90_sync()
1397 struct md_rdev *rdev2; in super_90_sync()
1539 super_90_rdev_size_change(struct md_rdev *rdev, sector_t num_sectors) in super_90_rdev_size_change()
1561 super_90_allow_new_offset(struct md_rdev *rdev, unsigned long long new_offset) in super_90_allow_new_offset()
1593 static int super_1_load(struct md_rdev *rdev, struct md_rdev *refdev, int minor_version) in super_1_load()
1777 static int super_1_validate(struct mddev *mddev, struct md_rdev *rdev) in super_1_validate()
1950 static void super_1_sync(struct mddev *mddev, struct md_rdev *rdev) in super_1_sync()
1953 struct md_rdev *rdev2; in super_1_sync()
2137 super_1_rdev_size_change(struct md_rdev *rdev, sector_t num_sectors) in super_1_rdev_size_change()
2186 super_1_allow_new_offset(struct md_rdev *rdev, in super_1_allow_new_offset()
2239 static void sync_super(struct mddev *mddev, struct md_rdev *rdev) in sync_super()
2253 struct md_rdev *rdev, *rdev2; in match_mddev_units()
2287 struct md_rdev *rdev, *reference = NULL; in md_integrity_register()
2340 int md_integrity_add_rdev(struct md_rdev *rdev, struct mddev *mddev) in md_integrity_add_rdev()
2362 static bool rdev_read_only(struct md_rdev *rdev) in rdev_read_only()
2368 static int bind_rdev_to_array(struct md_rdev *rdev, struct mddev *mddev) in bind_rdev_to_array()
2456 struct md_rdev *rdev = container_of(ws, struct md_rdev, del_work); in rdev_delayed_delete()
2461 static void unbind_rdev_from_array(struct md_rdev *rdev) in unbind_rdev_from_array()
2491 static int lock_rdev(struct md_rdev *rdev, dev_t dev, int shared) in lock_rdev()
2497 shared ? (struct md_rdev *)lock_rdev : rdev); in lock_rdev()
2507 static void unlock_rdev(struct md_rdev *rdev) in unlock_rdev()
2516 static void export_rdev(struct md_rdev *rdev) in export_rdev()
2528 void md_kick_rdev_from_array(struct md_rdev *rdev) in md_kick_rdev_from_array()
2537 struct md_rdev *rdev; in export_array()
2540 rdev = list_first_entry(&mddev->disks, struct md_rdev, in export_array()
2583 struct md_rdev *rdev; in sync_sbs()
2600 struct md_rdev *rdev = NULL, *iter; in does_sb_need_changing()
2641 struct md_rdev *rdev; in md_update_sb()
2831 static int add_bound_rdev(struct md_rdev *rdev) in add_bound_rdev()
2887 ssize_t (*show)(struct md_rdev *, char *);
2888 ssize_t (*store)(struct md_rdev *, const char *, size_t);
2892 state_show(struct md_rdev *rdev, char *page) in state_show()
2934 state_store(struct md_rdev *rdev, const char *buf, size_t len) in state_store()
3110 errors_show(struct md_rdev *rdev, char *page) in errors_show()
3116 errors_store(struct md_rdev *rdev, const char *buf, size_t len) in errors_store()
3131 slot_show(struct md_rdev *rdev, char *page) in slot_show()
3142 slot_store(struct md_rdev *rdev, const char *buf, size_t len) in slot_store()
3228 offset_show(struct md_rdev *rdev, char *page) in offset_show()
3234 offset_store(struct md_rdev *rdev, const char *buf, size_t len) in offset_store()
3253 static ssize_t new_offset_show(struct md_rdev *rdev, char *page) in new_offset_show()
3259 static ssize_t new_offset_store(struct md_rdev *rdev, in new_offset_store()
3312 rdev_size_show(struct md_rdev *rdev, char *page) in rdev_size_show()
3317 static int md_rdevs_overlap(struct md_rdev *a, struct md_rdev *b) in md_rdevs_overlap()
3327 static bool md_rdev_overlaps(struct md_rdev *rdev) in md_rdev_overlaps()
3330 struct md_rdev *rdev2; in md_rdev_overlaps()
3368 rdev_size_store(struct md_rdev *rdev, const char *buf, size_t len) in rdev_size_store()
3419 static ssize_t recovery_start_show(struct md_rdev *rdev, char *page) in recovery_start_show()
3430 static ssize_t recovery_start_store(struct md_rdev *rdev, const char *buf, size_t len) in recovery_start_store()
3465 static ssize_t bb_show(struct md_rdev *rdev, char *page) in bb_show()
3469 static ssize_t bb_store(struct md_rdev *rdev, const char *page, size_t len) in bb_store()
3480 static ssize_t ubb_show(struct md_rdev *rdev, char *page) in ubb_show()
3484 static ssize_t ubb_store(struct md_rdev *rdev, const char *page, size_t len) in ubb_store()
3492 ppl_sector_show(struct md_rdev *rdev, char *page) in ppl_sector_show()
3498 ppl_sector_store(struct md_rdev *rdev, const char *buf, size_t len) in ppl_sector_store()
3531 ppl_size_show(struct md_rdev *rdev, char *page) in ppl_size_show()
3537 ppl_size_store(struct md_rdev *rdev, const char *buf, size_t len) in ppl_size_store()
3582 struct md_rdev *rdev = container_of(kobj, struct md_rdev, kobj); in rdev_attr_show()
3596 struct md_rdev *rdev = container_of(kobj, struct md_rdev, kobj); in rdev_attr_store()
3617 struct md_rdev *rdev = container_of(ko, struct md_rdev, kobj); in rdev_free()
3630 int md_rdev_init(struct md_rdev *rdev) in md_rdev_init()
3666 static struct md_rdev *md_import_device(dev_t newdev, int super_format, int super_minor) in md_import_device()
3669 struct md_rdev *rdev; in md_import_device()
3730 struct md_rdev *rdev, *freshest, *tmp; in analyze_sbs()
3890 struct md_rdev *rdev; in level_store()
4164 struct md_rdev *rdev; in raid_disks_store()
4529 struct md_rdev *rdev; in flush_rdev_wq()
4554 struct md_rdev *rdev; in new_dev_store()
4575 struct md_rdev *rdev0 in new_dev_store()
4577 struct md_rdev, same_set); in new_dev_store()
5204 struct md_rdev *rdev; in reshape_position_store()
5780 struct md_rdev *rdev; in md_run()
5899 struct md_rdev *rdev2; in md_run()
6104 struct md_rdev *rdev; in restart_array()
6343 struct md_rdev *rdev; in do_md_stop()
6429 struct md_rdev *rdev; in autorun_array()
6463 struct md_rdev *rdev0, *rdev, *tmp; in autorun_devices()
6472 struct md_rdev, same_set); in autorun_devices()
6554 struct md_rdev *rdev; in get_array_info()
6645 struct md_rdev *rdev; in get_disk_info()
6684 struct md_rdev *rdev; in md_add_new_disk()
6707 struct md_rdev *rdev0 in md_add_new_disk()
6709 struct md_rdev, same_set); in md_add_new_disk()
6781 struct md_rdev *rdev2; in md_add_new_disk()
6890 struct md_rdev *rdev; in hot_remove_disk()
6932 struct md_rdev *rdev; in hot_add_disk()
7193 struct md_rdev *rdev; in update_size()
7238 struct md_rdev *rdev; in update_raid_disks()
7413 struct md_rdev *rdev; in set_disk_faulty()
7964 void md_error(struct mddev *mddev, struct md_rdev *rdev) in md_error()
7992 struct md_rdev *rdev; in status_unused()
8042 struct md_rdev *rdev; in status_resync()
8225 struct md_rdev *rdev; in md_seq_show()
8441 struct md_rdev *rdev; in is_mddev_idle()
8587 void md_submit_discard_bio(struct mddev *mddev, struct md_rdev *rdev, in md_submit_discard_bio()
8708 struct md_rdev *rdev; in md_do_sync()
9116 struct md_rdev *this) in remove_and_add_spares()
9118 struct md_rdev *rdev; in remove_and_add_spares()
9306 struct md_rdev *rdev; in md_check_recovery()
9336 struct md_rdev *rdev, *tmp; in md_check_recovery()
9439 struct md_rdev *rdev; in md_reap_sync_thread()
9499 void md_wait_for_blocked_rdev(struct md_rdev *rdev, struct mddev *mddev) in md_wait_for_blocked_rdev()
9513 struct md_rdev *rdev; in md_finish_reshape()
9528 int rdev_set_badblocks(struct md_rdev *rdev, sector_t s, int sectors, in rdev_set_badblocks()
9552 int rdev_clear_badblocks(struct md_rdev *rdev, sector_t s, int sectors, in rdev_clear_badblocks()
9659 static void check_sb_changes(struct mddev *mddev, struct md_rdev *rdev) in check_sb_changes()
9662 struct md_rdev *rdev2, *tmp; in check_sb_changes()
9759 static int read_rdev(struct mddev *mddev, struct md_rdev *rdev) in read_rdev()
9808 struct md_rdev *rdev = NULL, *iter; in md_reload_sb()
9867 struct md_rdev *rdev; in md_autostart_arrays()