/Linux-v5.4/drivers/md/ |
D | md.h | 38 struct md_rdev { struct 210 static inline int is_badblock(struct md_rdev *rdev, sector_t s, int sectors, in is_badblock() 223 extern int rdev_set_badblocks(struct md_rdev *rdev, sector_t s, int sectors, 225 extern int rdev_clear_badblocks(struct md_rdev *rdev, sector_t s, int sectors, 491 void (*sync_super)(struct mddev *mddev, struct md_rdev *rdev); 566 void (*error_handler)(struct mddev *mddev, struct md_rdev *rdev); 567 int (*hot_add_disk) (struct mddev *mddev, struct md_rdev *rdev); 568 int (*hot_remove_disk) (struct mddev *mddev, struct md_rdev *rdev); 623 static inline int sysfs_link_rdev(struct mddev *mddev, struct md_rdev *rdev) in sysfs_link_rdev() 635 static inline void sysfs_unlink_rdev(struct mddev *mddev, struct md_rdev *rdev) in sysfs_unlink_rdev() [all …]
|
D | md-cluster.h | 10 struct md_rdev; 24 int (*add_new_disk)(struct mddev *mddev, struct md_rdev *rdev); 27 int (*remove_disk)(struct mddev *mddev, struct md_rdev *rdev); 29 int (*gather_bitmaps)(struct md_rdev *rdev);
|
D | raid5-log.h | 5 extern int r5l_init_log(struct r5conf *conf, struct md_rdev *rdev); 33 struct md_rdev *rdev); 45 extern int ppl_modify_log(struct r5conf *conf, struct md_rdev *rdev, bool add); 135 static inline int log_init(struct r5conf *conf, struct md_rdev *journal_dev, in log_init() 146 static inline int log_modify(struct r5conf *conf, struct md_rdev *rdev, bool add) in log_modify()
|
D | md.c | 92 struct md_rdev *this); 128 static int rdev_init_wb(struct md_rdev *rdev) in rdev_init_wb() 145 void mddev_create_wb_pool(struct mddev *mddev, struct md_rdev *rdev, in mddev_create_wb_pool() 174 static void mddev_destroy_wb_pool(struct mddev *mddev, struct md_rdev *rdev) in mddev_destroy_wb_pool() 180 struct md_rdev *temp; in mddev_destroy_wb_pool() 480 struct md_rdev *rdev = bio->bi_private; in md_end_flush() 497 struct md_rdev *rdev; in submit_flushes() 761 struct md_rdev *md_find_rdev_nr_rcu(struct mddev *mddev, int nr) in md_find_rdev_nr_rcu() 763 struct md_rdev *rdev; in md_find_rdev_nr_rcu() 773 static struct md_rdev *find_rdev(struct mddev *mddev, dev_t dev) in find_rdev() [all …]
|
D | md-multipath.c | 37 struct md_rdev *rdev = rcu_dereference(conf->multipaths[i].rdev); in multipath_map() 82 struct md_rdev *rdev = conf->multipaths[mp_bh->path].rdev; in multipath_end_request() 148 struct md_rdev *rdev = rcu_dereference(conf->multipaths[i].rdev); in multipath_status() 162 struct md_rdev *rdev = rcu_dereference(conf->multipaths[i].rdev); in multipath_congested() 180 static void multipath_error (struct mddev *mddev, struct md_rdev *rdev) in multipath_error() 235 static int multipath_add_disk(struct mddev *mddev, struct md_rdev *rdev) in multipath_add_disk() 272 static int multipath_remove_disk(struct mddev *mddev, struct md_rdev *rdev) in multipath_remove_disk() 371 struct md_rdev *rdev; in multipath_run()
|
D | raid10.h | 19 struct md_rdev *rdev, *replacement; 151 struct md_rdev *rdev; /* used for reads
|
D | raid0.c | 35 struct md_rdev **devlist = conf->devlist; in raid0_congested() 84 struct md_rdev *smallest, *rdev1, *rdev2, *rdev, **dev; in create_strip_zones() 179 conf->devlist = kzalloc(array3_size(sizeof(struct md_rdev *), in create_strip_zones() 326 static struct md_rdev *map_sector(struct mddev *mddev, struct strip_zone *zone, in map_sector() 362 struct md_rdev *rdev; in raid0_size() 397 struct md_rdev *rdev; in raid0_run() 529 struct md_rdev *rdev; in raid0_handle_discard() 571 struct md_rdev *tmp_dev; in raid0_make_request() 649 struct md_rdev *rdev; in raid0_takeover_raid45()
|
D | raid10.c | 354 struct md_rdev *rdev; in raid10_end_read_request() 434 struct md_rdev *rdev = NULL; in raid10_end_write_request() 703 static struct md_rdev *read_balance(struct r10conf *conf, in read_balance() 712 struct md_rdev *best_dist_rdev, *best_pending_rdev, *rdev = NULL; in read_balance() 865 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in raid10_congested() 910 struct md_rdev *rdev = (void*)bio->bi_disk; in flush_pending_writes() 1054 struct md_rdev *rdev) in choose_data_offset() 1095 struct md_rdev *rdev = (void*)bio->bi_disk; in raid10_unplug() 1142 struct md_rdev *rdev; in raid10_read_request() 1145 struct md_rdev *err_rdev = NULL; in raid10_read_request() [all …]
|
D | raid1.c | 53 static int check_and_add_wb(struct md_rdev *rdev, sector_t lo, sector_t hi) in check_and_add_wb() 82 static void remove_wb(struct md_rdev *rdev, sector_t lo, sector_t hi) in remove_wb() 346 struct md_rdev *rdev = conf->mirrors[r1_bio->read_disk].rdev; in raid1_end_read_request() 431 struct md_rdev *rdev = conf->mirrors[mirror].rdev; in raid1_end_write_request() 587 struct md_rdev *rdev; in read_balance() 783 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in raid1_congested() 810 struct md_rdev *rdev = (void *)bio->bi_disk; in flush_bio_list() 1235 struct md_rdev *rdev; in raid1_read_request() 1334 struct md_rdev *blocked_rdev; in raid1_write_request() 1390 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in raid1_write_request() [all …]
|
D | raid5-ppl.c | 118 struct md_rdev *rdev; /* array member disk associated with 598 struct md_rdev *rdev; in ppl_flush_endio() 627 struct md_rdev *rdev; in ppl_do_flush() 855 struct md_rdev *parity_rdev; in ppl_recover_entry() 868 struct md_rdev *rdev; in ppl_recover_entry() 974 struct md_rdev *rdev = log->rdev; in ppl_recover() 1050 struct md_rdev *rdev = log->rdev; in ppl_write_empty_header() 1082 struct md_rdev *rdev = log->rdev; in ppl_load_distributed() 1262 static int ppl_validate_rdev(struct md_rdev *rdev) in ppl_validate_rdev() 1309 static void ppl_init_child_log(struct ppl_log *log, struct md_rdev *rdev) in ppl_init_child_log() [all …]
|
D | md-linear.h | 6 struct md_rdev *rdev;
|
D | raid0.h | 26 struct md_rdev **devlist; /* lists of rdevs, pointed to
|
D | dm-raid.c | 55 struct md_rdev rdev; 247 struct md_rdev rdev; 681 struct md_rdev *rdev; in rs_set_rdev_sectors() 1241 struct md_rdev *jdev; in parse_raid_params() 1589 struct md_rdev *rdev = &rs->dev[i].rdev; in __rdev_sectors() 1603 struct md_rdev *rdev; in _check_data_dev_sectors() 1623 struct md_rdev *rdev; in rs_set_dev_and_array_sectors() 2047 static int read_disk_sb(struct md_rdev *rdev, int size, bool force_reload) in read_disk_sb() 2096 static void super_sync(struct mddev *mddev, struct md_rdev *rdev) in super_sync() 2180 static int super_load(struct md_rdev *rdev, struct md_rdev *refdev) in super_load() [all …]
|
D | md-multipath.h | 6 struct md_rdev *rdev;
|
D | raid1.h | 42 struct md_rdev *rdev;
|
D | raid5.h | 283 struct md_rdev *blocked_rdev; 466 struct md_rdev *rdev, *replacement;
|
D | md-cluster.c | 448 struct md_rdev *rdev; in process_suspend_info() 543 struct md_rdev *rdev; in process_remove_disk() 560 struct md_rdev *rdev; in process_readd_disk() 1073 struct md_rdev *rdev; in metadata_update_finish() 1251 struct md_rdev *rdev; in update_size() 1396 static int add_new_disk(struct mddev *mddev, struct md_rdev *rdev) in add_new_disk() 1464 static int remove_disk(struct mddev *mddev, struct md_rdev *rdev) in remove_disk() 1524 static int gather_bitmaps(struct md_rdev *rdev) in gather_bitmaps()
|
D | md-linear.c | 88 struct md_rdev *rdev; in linear_conf() 189 static int linear_add(struct mddev *mddev, struct md_rdev *rdev) in linear_add()
|
D | md-faulty.c | 82 struct md_rdev *rdev; 296 struct md_rdev *rdev; in faulty_run()
|
D | raid5.c | 564 struct md_rdev *rdev = rcu_dereference(conf->disks[i].rdev); in raid5_calc_degraded() 590 struct md_rdev *rdev = rcu_dereference(conf->disks[i].rdev); in raid5_calc_degraded() 998 struct md_rdev *rdev, *rrdev = NULL; in ops_run_io() 2467 struct md_rdev *rdev = NULL; in raid5_end_read_request() 2597 struct md_rdev *uninitialized_var(rdev); in raid5_end_write_request() 2671 static void raid5_error(struct mddev *mddev, struct md_rdev *rdev) in raid5_error() 3359 struct md_rdev *rdev; in handle_failed_stripe() 3487 struct md_rdev *rdev = rcu_dereference(conf->disks[i].rdev); in handle_failed_sync() 3512 struct md_rdev *rdev; in want_replace() 4393 struct md_rdev *rdev; in analyse_stripe() [all …]
|
D | md-bitmap.c | 155 struct md_rdev *rdev; in read_sb_page() 176 static struct md_rdev *next_active_rdev(struct md_rdev *rdev, struct mddev *mddev) in next_active_rdev() 194 rdev = list_entry(&mddev->disks, struct md_rdev, same_set); in next_active_rdev() 214 struct md_rdev *rdev; in write_sb_page() 1905 struct md_rdev *rdev; in md_bitmap_load() 2484 struct md_rdev *rdev; in backlog_store()
|
D | raid5-cache.c | 83 struct md_rdev *rdev; 1875 struct md_rdev *rdev, *rrdev; in r5l_recovery_replay_one_stripe() 2960 struct md_rdev *rdev = log->rdev; in r5l_load_log() 3050 void r5c_update_on_rdev_error(struct mddev *mddev, struct md_rdev *rdev) in r5c_update_on_rdev_error() 3064 int r5l_init_log(struct r5conf *conf, struct md_rdev *rdev) in r5l_init_log()
|