/linux/drivers/md/ |
H A D | md.h | 104 struct md_rdev { struct 269 static inline int is_badblock(struct md_rdev *rdev, sector_t s, int sectors, in is_badblock() 283 static inline int rdev_has_badblock(struct md_rdev *rdev, sector_t s, in rdev_has_badblock() 292 extern int rdev_set_badblocks(struct md_rdev *rdev, sector_t s, int sectors, 294 extern int rdev_clear_badblocks(struct md_rdev *rdev, sector_t s, int sectors, 577 void (*sync_super)(struct mddev *mddev, struct md_rdev *rdev); 719 void (*error_handler)(struct mddev *mddev, struct md_rdev *rdev); 720 int (*hot_add_disk) (struct mddev *mddev, struct md_rdev *rdev); 721 int (*hot_remove_disk) (struct mddev *mddev, struct md_rdev *rdev); 775 static inline int sysfs_link_rdev(struct mddev *mddev, struct md_rdev *rdev) in sysfs_link_rdev() [all …]
|
H A D | md-cluster.h | 10 struct md_rdev; 26 int (*add_new_disk)(struct mddev *mddev, struct md_rdev *rdev); 29 int (*remove_disk)(struct mddev *mddev, struct md_rdev *rdev); 31 int (*gather_bitmaps)(struct md_rdev *rdev);
|
H A D | raid5-log.h | 5 int r5l_init_log(struct r5conf *conf, struct md_rdev *rdev); 30 void r5c_update_on_rdev_error(struct mddev *mddev, struct md_rdev *rdev); 42 int ppl_modify_log(struct r5conf *conf, struct md_rdev *rdev, bool add); 132 static inline int log_init(struct r5conf *conf, struct md_rdev *journal_dev, in log_init() 143 static inline int log_modify(struct r5conf *conf, struct md_rdev *rdev, bool add) in log_modify()
|
H A D | md.c | 106 struct md_rdev *this); 108 static void export_rdev(struct md_rdev *rdev, struct mddev *mddev); 146 static void rdev_uninit_serial(struct md_rdev *rdev) in rdev_uninit_serial() 157 struct md_rdev *rdev; in rdevs_uninit_serial() 163 static int rdev_init_serial(struct md_rdev *rdev) in rdev_init_serial() 193 struct md_rdev *rdev; in rdevs_init_serial() 214 static int rdev_need_serial(struct md_rdev *rdev) in rdev_need_serial() 226 void mddev_create_serial_pool(struct mddev *mddev, struct md_rdev *rdev) in mddev_create_serial_pool() 262 void mddev_destroy_serial_pool(struct mddev *mddev, struct md_rdev *rdev) in mddev_destroy_serial_pool() 268 struct md_rdev *temp; in mddev_destroy_serial_pool() [all …]
|
H A D | raid1-10.c | 119 struct md_rdev *rdev = (void *)bio->bi_bdev; in raid1_submit_write() 179 static inline void check_decay_read_errors(struct mddev *mddev, struct md_rdev *rdev) in check_decay_read_errors() 209 static inline bool exceed_read_errors(struct mddev *mddev, struct md_rdev *rdev) in exceed_read_errors() 246 static inline int raid1_check_read_range(struct md_rdev *rdev, in raid1_check_read_range()
|
H A D | raid1.c | 57 static int check_and_add_serial(struct md_rdev *rdev, struct r1bio *r1_bio, in check_and_add_serial() 80 static void wait_for_serialization(struct md_rdev *rdev, struct r1bio *r1_bio) in wait_for_serialization() 94 static void remove_serial(struct md_rdev *rdev, sector_t lo, sector_t hi) in remove_serial() 367 struct md_rdev *rdev = conf->mirrors[r1_bio->read_disk].rdev; in raid1_end_read_request() 453 struct md_rdev *rdev = conf->mirrors[mirror].rdev; in raid1_end_write_request() 600 struct md_rdev *rdev; in choose_first_rdev() 622 static bool rdev_in_recovery(struct md_rdev *rdev, struct r1bio *r1_bio) in rdev_in_recovery() 637 struct md_rdev *rdev; in choose_bb_rdev() 676 struct md_rdev *rdev; in choose_slow_rdev() 741 static bool rdev_readable(struct md_rdev *rdev, struct r1bio *r1_bio) in rdev_readable() [all …]
|
H A D | raid10.c | 380 struct md_rdev *rdev; in raid10_end_read_request() 460 struct md_rdev *rdev = NULL; in raid10_end_write_request() 724 static struct md_rdev *read_balance(struct r10conf *conf, in read_balance() 733 struct md_rdev *best_dist_rdev, *best_pending_rdev, *rdev = NULL; in read_balance() 1076 struct md_rdev *rdev) in choose_data_offset() 1157 struct md_rdev *rdev; in raid10_read_request() 1160 struct md_rdev *err_rdev = NULL; in raid10_read_request() 1261 struct md_rdev *rdev; in raid10_write_one_disk() 1300 struct md_rdev *blocked_rdev; in wait_blocked_dev() 1306 struct md_rdev *rdev, *rrdev; in wait_blocked_dev() [all …]
|
H A D | raid10.h | 19 struct md_rdev *rdev, *replacement; 150 struct md_rdev *rdev; /* used for reads
|
H A D | raid0.c | 67 struct md_rdev *smallest, *rdev1, *rdev2, *rdev, **dev; in create_strip_zones() 145 conf->devlist = kzalloc(array3_size(sizeof(struct md_rdev *), in create_strip_zones() 320 static struct md_rdev *map_sector(struct mddev *mddev, struct strip_zone *zone, in map_sector() 356 struct md_rdev *rdev; in raid0_size() 521 struct md_rdev *rdev; in raid0_handle_discard() 558 struct md_rdev *tmp_dev; in raid0_map_submit_bio() 639 static void raid0_error(struct mddev *mddev, struct md_rdev *rdev) in raid0_error() 651 struct md_rdev *rdev; in raid0_takeover_raid45()
|
H A D | raid5.h | 293 struct md_rdev *blocked_rdev; 476 struct md_rdev *rdev; 477 struct md_rdev *replacement;
|
H A D | dm-raid.c | 56 struct md_rdev rdev; 254 struct md_rdev rdev; 687 struct md_rdev *rdev; in rs_set_rdev_sectors() 1253 struct md_rdev *jdev; in parse_raid_params() 1601 struct md_rdev *rdev = &rs->dev[i].rdev; in __rdev_sectors() 1615 struct md_rdev *rdev; in _check_data_dev_sectors() 1632 struct md_rdev *rdev; in _get_reshape_sectors() 2065 static int read_disk_sb(struct md_rdev *rdev, int size, bool force_reload) in read_disk_sb() 2114 static void super_sync(struct mddev *mddev, struct md_rdev *rdev) in super_sync() 2198 static int super_load(struct md_rdev *rdev, struct md_rdev *refdev) in super_load() [all …]
|
H A D | raid0.h | 27 struct md_rdev **devlist; /* lists of rdevs, pointed to
|
H A D | md-cluster.c | 457 struct md_rdev *rdev; in process_suspend_info() 564 struct md_rdev *rdev; in process_remove_disk() 581 struct md_rdev *rdev; in process_readd_disk() 1100 struct md_rdev *rdev; in metadata_update_finish() 1294 struct md_rdev *rdev; in update_size() 1456 static int add_new_disk(struct mddev *mddev, struct md_rdev *rdev) in add_new_disk() 1525 static int remove_disk(struct mddev *mddev, struct md_rdev *rdev) in remove_disk() 1586 static int gather_bitmaps(struct md_rdev *rdev) in gather_bitmaps()
|
H A D | raid1.h | 42 struct md_rdev *rdev;
|
H A D | raid5.c | 698 struct md_rdev *rdev = READ_ONCE(conf->disks[i].rdev); in raid5_calc_degraded() 723 struct md_rdev *rdev = READ_ONCE(conf->disks[i].rdev); in raid5_calc_degraded() 1160 struct md_rdev *rdev, *rrdev = NULL; in ops_run_io() 2722 struct md_rdev *rdev = NULL; in raid5_end_read_request() 2850 struct md_rdev *rdev; in raid5_end_write_request() 2919 static void raid5_error(struct mddev *mddev, struct md_rdev *rdev) in raid5_error() 3627 struct md_rdev *rdev = conf->disks[i].rdev; in handle_failed_stripe() 3754 struct md_rdev *rdev = conf->disks[i].rdev; in handle_failed_sync() 3780 struct md_rdev *rdev; in want_replace() 4667 struct md_rdev *rdev; in analyse_stripe() [all …]
|
H A D | md-bitmap.c | 349 struct md_rdev *rdev; in read_sb_page() 365 static struct md_rdev *next_active_rdev(struct md_rdev *rdev, struct mddev *mddev) in next_active_rdev() 383 rdev = list_entry(&mddev->disks, struct md_rdev, same_set); in next_active_rdev() 423 static int __write_sb_page(struct md_rdev *rdev, struct bitmap *bitmap, in __write_sb_page() 485 struct md_rdev *rdev = NULL; in write_sb_page() 2210 struct md_rdev *rdev; in bitmap_load() 2779 struct md_rdev *rdev; in backlog_store()
|
H A D | raid5-cache.c | 83 struct md_rdev *rdev; 1868 struct md_rdev *rdev, *rrdev; in r5l_recovery_replay_one_stripe() 2948 struct md_rdev *rdev = log->rdev; in r5l_load_log() 3038 void r5c_update_on_rdev_error(struct mddev *mddev, struct md_rdev *rdev) in r5c_update_on_rdev_error() 3052 int r5l_init_log(struct r5conf *conf, struct md_rdev *rdev) in r5l_init_log()
|