Lines Matching refs:md_rdev
91 struct md_rdev *this);
129 static void rdev_uninit_serial(struct md_rdev *rdev) in rdev_uninit_serial()
140 struct md_rdev *rdev; in rdevs_uninit_serial()
146 static int rdev_init_serial(struct md_rdev *rdev) in rdev_init_serial()
176 struct md_rdev *rdev; in rdevs_init_serial()
197 static int rdev_need_serial(struct md_rdev *rdev) in rdev_need_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()
260 struct md_rdev *temp; in mddev_destroy_serial_pool()
582 struct md_rdev *rdev = bio->bi_private; in md_end_flush()
599 struct md_rdev *rdev; in submit_flushes()
876 struct md_rdev *md_find_rdev_nr_rcu(struct mddev *mddev, int nr) in md_find_rdev_nr_rcu()
878 struct md_rdev *rdev; in md_find_rdev_nr_rcu()
888 static struct md_rdev *find_rdev(struct mddev *mddev, dev_t dev) in find_rdev()
890 struct md_rdev *rdev; in find_rdev()
899 struct md_rdev *md_find_rdev_rcu(struct mddev *mddev, dev_t dev) in md_find_rdev_rcu()
901 struct md_rdev *rdev; in md_find_rdev_rcu()
924 static inline sector_t calc_dev_sboffset(struct md_rdev *rdev) in calc_dev_sboffset()
930 static int alloc_disk_sb(struct md_rdev *rdev) in alloc_disk_sb()
938 void md_rdev_clear(struct md_rdev *rdev) in md_rdev_clear()
957 struct md_rdev *rdev = bio->bi_private; in super_written()
978 void md_super_write(struct mddev *mddev, struct md_rdev *rdev, in md_super_write()
1025 int sync_page_io(struct md_rdev *rdev, sector_t sector, int size, in sync_page_io()
1054 static int read_disk_sb(struct md_rdev *rdev, int size) in read_disk_sb()
1178 int (*load_super)(struct md_rdev *rdev,
1179 struct md_rdev *refdev,
1182 struct md_rdev *rdev);
1184 struct md_rdev *rdev);
1185 unsigned long long (*rdev_size_change)(struct md_rdev *rdev,
1187 int (*allow_new_offset)(struct md_rdev *rdev,
1212 static int super_90_load(struct md_rdev *rdev, struct md_rdev *refdev, int minor_version) in super_90_load()
1321 static int super_90_validate(struct mddev *mddev, struct md_rdev *rdev) in super_90_validate()
1450 static void super_90_sync(struct mddev *mddev, struct md_rdev *rdev) in super_90_sync()
1453 struct md_rdev *rdev2; in super_90_sync()
1595 super_90_rdev_size_change(struct md_rdev *rdev, sector_t num_sectors) in super_90_rdev_size_change()
1617 super_90_allow_new_offset(struct md_rdev *rdev, unsigned long long new_offset) in super_90_allow_new_offset()
1649 static int super_1_load(struct md_rdev *rdev, struct md_rdev *refdev, int minor_version) in super_1_load()
1836 static int super_1_validate(struct mddev *mddev, struct md_rdev *rdev) in super_1_validate()
2009 static void super_1_sync(struct mddev *mddev, struct md_rdev *rdev) in super_1_sync()
2012 struct md_rdev *rdev2; in super_1_sync()
2196 super_1_rdev_size_change(struct md_rdev *rdev, sector_t num_sectors) in super_1_rdev_size_change()
2245 super_1_allow_new_offset(struct md_rdev *rdev, in super_1_allow_new_offset()
2298 static void sync_super(struct mddev *mddev, struct md_rdev *rdev) in sync_super()
2312 struct md_rdev *rdev, *rdev2; in match_mddev_units()
2346 struct md_rdev *rdev, *reference = NULL; in md_integrity_register()
2391 int md_integrity_add_rdev(struct md_rdev *rdev, struct mddev *mddev) in md_integrity_add_rdev()
2414 static int bind_rdev_to_array(struct md_rdev *rdev, struct mddev *mddev) in bind_rdev_to_array()
2505 struct md_rdev *rdev = container_of(ws, struct md_rdev, del_work); in rdev_delayed_delete()
2510 static void unbind_rdev_from_array(struct md_rdev *rdev) in unbind_rdev_from_array()
2542 static int lock_rdev(struct md_rdev *rdev, dev_t dev, int shared) in lock_rdev()
2548 shared ? (struct md_rdev *)lock_rdev : rdev); in lock_rdev()
2558 static void unlock_rdev(struct md_rdev *rdev) in unlock_rdev()
2567 static void export_rdev(struct md_rdev *rdev) in export_rdev()
2581 void md_kick_rdev_from_array(struct md_rdev *rdev) in md_kick_rdev_from_array()
2590 struct md_rdev *rdev; in export_array()
2593 rdev = list_first_entry(&mddev->disks, struct md_rdev, in export_array()
2636 struct md_rdev *rdev; in sync_sbs()
2653 struct md_rdev *rdev; in does_sb_need_changing()
2692 struct md_rdev *rdev; in md_update_sb()
2884 static int add_bound_rdev(struct md_rdev *rdev) in add_bound_rdev()
2940 ssize_t (*show)(struct md_rdev *, char *);
2941 ssize_t (*store)(struct md_rdev *, const char *, size_t);
2945 state_show(struct md_rdev *rdev, char *page) in state_show()
2987 state_store(struct md_rdev *rdev, const char *buf, size_t len) in state_store()
3153 errors_show(struct md_rdev *rdev, char *page) in errors_show()
3159 errors_store(struct md_rdev *rdev, const char *buf, size_t len) in errors_store()
3174 slot_show(struct md_rdev *rdev, char *page) in slot_show()
3185 slot_store(struct md_rdev *rdev, const char *buf, size_t len) in slot_store()
3271 offset_show(struct md_rdev *rdev, char *page) in offset_show()
3277 offset_store(struct md_rdev *rdev, const char *buf, size_t len) in offset_store()
3296 static ssize_t new_offset_show(struct md_rdev *rdev, char *page) in new_offset_show()
3302 static ssize_t new_offset_store(struct md_rdev *rdev, in new_offset_store()
3355 rdev_size_show(struct md_rdev *rdev, char *page) in rdev_size_show()
3390 rdev_size_store(struct md_rdev *rdev, const char *buf, size_t len) in rdev_size_store()
3432 struct md_rdev *rdev2; in rdev_size_store()
3466 static ssize_t recovery_start_show(struct md_rdev *rdev, char *page) in recovery_start_show()
3477 static ssize_t recovery_start_store(struct md_rdev *rdev, const char *buf, size_t len) in recovery_start_store()
3512 static ssize_t bb_show(struct md_rdev *rdev, char *page) in bb_show()
3516 static ssize_t bb_store(struct md_rdev *rdev, const char *page, size_t len) in bb_store()
3527 static ssize_t ubb_show(struct md_rdev *rdev, char *page) in ubb_show()
3531 static ssize_t ubb_store(struct md_rdev *rdev, const char *page, size_t len) in ubb_store()
3539 ppl_sector_show(struct md_rdev *rdev, char *page) in ppl_sector_show()
3545 ppl_sector_store(struct md_rdev *rdev, const char *buf, size_t len) in ppl_sector_store()
3578 ppl_size_show(struct md_rdev *rdev, char *page) in ppl_size_show()
3584 ppl_size_store(struct md_rdev *rdev, const char *buf, size_t len) in ppl_size_store()
3628 struct md_rdev *rdev = container_of(kobj, struct md_rdev, kobj); in rdev_attr_show()
3642 struct md_rdev *rdev = container_of(kobj, struct md_rdev, kobj); in rdev_attr_store()
3663 struct md_rdev *rdev = container_of(ko, struct md_rdev, kobj); in rdev_free()
3676 int md_rdev_init(struct md_rdev *rdev) in md_rdev_init()
3712 static struct md_rdev *md_import_device(dev_t newdev, int super_format, int super_minor) in md_import_device()
3716 struct md_rdev *rdev; in md_import_device()
3777 struct md_rdev *rdev, *freshest, *tmp; in analyze_sbs()
3938 struct md_rdev *rdev; in level_store()
4212 struct md_rdev *rdev; in raid_disks_store()
4578 struct md_rdev *rdev; in flush_rdev_wq()
4603 struct md_rdev *rdev; in new_dev_store()
4624 struct md_rdev *rdev0 in new_dev_store()
4626 struct md_rdev, same_set); in new_dev_store()
5240 struct md_rdev *rdev; in reshape_position_store()
5820 struct md_rdev *rdev; in md_run()
5940 struct md_rdev *rdev2; in md_run()
6141 struct md_rdev *rdev; in restart_array()
6377 struct md_rdev *rdev; in do_md_stop()
6464 struct md_rdev *rdev; in autorun_array()
6499 struct md_rdev *rdev0, *rdev, *tmp; in autorun_devices()
6509 struct md_rdev, same_set); in autorun_devices()
6594 struct md_rdev *rdev; in get_array_info()
6685 struct md_rdev *rdev; in get_disk_info()
6725 struct md_rdev *rdev; in md_add_new_disk()
6748 struct md_rdev *rdev0 in md_add_new_disk()
6750 struct md_rdev, same_set); in md_add_new_disk()
6822 struct md_rdev *rdev2; in md_add_new_disk()
6932 struct md_rdev *rdev; in hot_remove_disk()
6973 struct md_rdev *rdev; in hot_add_disk()
7225 struct md_rdev *rdev; in update_size()
7270 struct md_rdev *rdev; in update_raid_disks()
7444 struct md_rdev *rdev; in set_disk_faulty()
7988 void md_error(struct mddev *mddev, struct md_rdev *rdev) in md_error()
8013 struct md_rdev *rdev; in status_unused()
8055 struct md_rdev *rdev; in status_resync()
8223 struct md_rdev *rdev; in md_seq_show()
8440 struct md_rdev *rdev; in is_mddev_idle()
8635 struct md_rdev *rdev; in md_do_sync()
9043 struct md_rdev *this) in remove_and_add_spares()
9045 struct md_rdev *rdev; in remove_and_add_spares()
9233 struct md_rdev *rdev; in md_check_recovery()
9262 struct md_rdev *rdev; in md_check_recovery()
9364 struct md_rdev *rdev; in md_reap_sync_thread()
9424 void md_wait_for_blocked_rdev(struct md_rdev *rdev, struct mddev *mddev) in md_wait_for_blocked_rdev()
9438 struct md_rdev *rdev; in md_finish_reshape()
9453 int rdev_set_badblocks(struct md_rdev *rdev, sector_t s, int sectors, in rdev_set_badblocks()
9477 int rdev_clear_badblocks(struct md_rdev *rdev, sector_t s, int sectors, in rdev_clear_badblocks()
9580 static void check_sb_changes(struct mddev *mddev, struct md_rdev *rdev) in check_sb_changes()
9583 struct md_rdev *rdev2; in check_sb_changes()
9676 static int read_rdev(struct mddev *mddev, struct md_rdev *rdev) in read_rdev()
9725 struct md_rdev *rdev; in md_reload_sb()
9782 struct md_rdev *rdev; in md_autostart_arrays()