/linux-6.1.9/drivers/md/ |
D | md.h | 48 struct md_rdev { struct 218 static inline int is_badblock(struct md_rdev *rdev, sector_t s, int sectors, in is_badblock() 231 extern int rdev_set_badblocks(struct md_rdev *rdev, sector_t s, int sectors, 233 extern int rdev_clear_badblocks(struct md_rdev *rdev, sector_t s, int sectors, 529 void (*sync_super)(struct mddev *mddev, struct md_rdev *rdev); 606 void (*error_handler)(struct mddev *mddev, struct md_rdev *rdev); 607 int (*hot_add_disk) (struct mddev *mddev, struct md_rdev *rdev); 608 int (*hot_remove_disk) (struct mddev *mddev, struct md_rdev *rdev); 660 static inline int sysfs_link_rdev(struct mddev *mddev, struct md_rdev *rdev) in sysfs_link_rdev() 672 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 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()
|
D | md.c | 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() [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() 143 struct md_rdev *rdev = rcu_dereference(conf->multipaths[i].rdev); in multipath_status() 153 static void multipath_error (struct mddev *mddev, struct md_rdev *rdev) in multipath_error() 206 static int multipath_add_disk(struct mddev *mddev, struct md_rdev *rdev) in multipath_add_disk() 243 static int multipath_remove_disk(struct mddev *mddev, struct md_rdev *rdev) in multipath_remove_disk() 341 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 | 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() 308 static struct md_rdev *map_sector(struct mddev *mddev, struct strip_zone *zone, in map_sector() 344 struct md_rdev *rdev; in raid0_size() 397 struct md_rdev *rdev; in raid0_run() 485 struct md_rdev *rdev; in raid0_handle_discard() 518 struct md_rdev *tmp_dev; in raid0_make_request() 597 struct md_rdev *rdev; in raid0_takeover_raid45()
|
D | raid1.c | 59 static int check_and_add_serial(struct md_rdev *rdev, struct r1bio *r1_bio, in check_and_add_serial() 82 static void wait_for_serialization(struct md_rdev *rdev, struct r1bio *r1_bio) in wait_for_serialization() 96 static void remove_serial(struct md_rdev *rdev, sector_t lo, sector_t hi) in remove_serial() 370 struct md_rdev *rdev = conf->mirrors[r1_bio->read_disk].rdev; in raid1_end_read_request() 454 struct md_rdev *rdev = conf->mirrors[mirror].rdev; in raid1_end_write_request() 609 struct md_rdev *rdev; in read_balance() 802 struct md_rdev *rdev = (void *)bio->bi_bdev; in flush_bio_list() 1239 struct md_rdev *rdev; in raid1_read_request() 1345 struct md_rdev *blocked_rdev; in raid1_write_request() 1404 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in raid1_write_request() [all …]
|
D | raid10.c | 383 struct md_rdev *rdev; in raid10_end_read_request() 462 struct md_rdev *rdev = NULL; in raid10_end_write_request() 731 static struct md_rdev *read_balance(struct r10conf *conf, in read_balance() 740 struct md_rdev *best_dist_rdev, *best_pending_rdev, *rdev = NULL; in read_balance() 912 struct md_rdev *rdev = (void*)bio->bi_bdev; in flush_pending_writes() 1094 struct md_rdev *rdev) in choose_data_offset() 1127 struct md_rdev *rdev = (void*)bio->bi_bdev; in raid10_unplug() 1183 struct md_rdev *rdev; in raid10_read_request() 1186 struct md_rdev *err_rdev = NULL; in raid10_read_request() 1281 struct md_rdev *rdev; in raid10_write_one_disk() [all …]
|
D | raid5-ppl.c | 118 struct md_rdev *rdev; /* array member disk associated with 591 struct md_rdev *rdev; in ppl_flush_endio() 620 struct md_rdev *rdev; in ppl_do_flush() 845 struct md_rdev *parity_rdev; in ppl_recover_entry() 858 struct md_rdev *rdev; in ppl_recover_entry() 969 struct md_rdev *rdev = log->rdev; in ppl_recover() 1045 struct md_rdev *rdev = log->rdev; in ppl_write_empty_header() 1077 struct md_rdev *rdev = log->rdev; in ppl_load_distributed() 1255 static int ppl_validate_rdev(struct md_rdev *rdev) in ppl_validate_rdev() 1302 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; 252 struct md_rdev rdev; 685 struct md_rdev *rdev; in rs_set_rdev_sectors() 1246 struct md_rdev *jdev; in parse_raid_params() 1594 struct md_rdev *rdev = &rs->dev[i].rdev; in __rdev_sectors() 1608 struct md_rdev *rdev; in _check_data_dev_sectors() 2032 static int read_disk_sb(struct md_rdev *rdev, int size, bool force_reload) in read_disk_sb() 2081 static void super_sync(struct mddev *mddev, struct md_rdev *rdev) in super_sync() 2165 static int super_load(struct md_rdev *rdev, struct md_rdev *refdev) in super_load() 2208 static int super_init_validation(struct raid_set *rs, struct md_rdev *rdev) in super_init_validation() [all …]
|
D | md-multipath.h | 6 struct md_rdev *rdev;
|
D | raid5.h | 293 struct md_rdev *blocked_rdev; 476 struct md_rdev __rcu *rdev; 477 struct md_rdev __rcu *replacement;
|
D | raid1.h | 42 struct md_rdev *rdev;
|
D | md-linear.c | 65 struct md_rdev *rdev; in linear_conf() 157 static int linear_add(struct mddev *mddev, struct md_rdev *rdev) in linear_add()
|
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() 1077 struct md_rdev *rdev; in metadata_update_finish() 1257 struct md_rdev *rdev; in update_size() 1402 static int add_new_disk(struct mddev *mddev, struct md_rdev *rdev) in add_new_disk() 1471 static int remove_disk(struct mddev *mddev, struct md_rdev *rdev) in remove_disk() 1532 static int gather_bitmaps(struct md_rdev *rdev) in gather_bitmaps()
|
D | md-faulty.c | 82 struct md_rdev *rdev; 296 struct md_rdev *rdev; in faulty_run()
|
D | raid5.c | 698 struct md_rdev *rdev = rcu_dereference(conf->disks[i].rdev); in raid5_calc_degraded() 724 struct md_rdev *rdev = rcu_dereference(conf->disks[i].rdev); in raid5_calc_degraded() 1153 struct md_rdev *rdev, *rrdev = NULL; in ops_run_io() 2731 static struct md_rdev *rdev_pend_deref(struct md_rdev __rcu *rdev) in rdev_pend_deref() 2742 static struct md_rdev *rdev_mdlock_deref(struct mddev *mddev, in rdev_mdlock_deref() 2743 struct md_rdev __rcu *rdev) in rdev_mdlock_deref() 2754 struct md_rdev *rdev = NULL; in raid5_end_read_request() 2882 struct md_rdev *rdev; in raid5_end_write_request() 2955 static void raid5_error(struct mddev *mddev, struct md_rdev *rdev) in raid5_error() 3663 struct md_rdev *rdev; in handle_failed_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() 1904 struct md_rdev *rdev; in md_bitmap_load() 2477 struct md_rdev *rdev; in backlog_store() 2508 struct md_rdev *rdev; in backlog_store()
|
D | raid5-cache.c | 83 struct md_rdev *rdev; 1865 struct md_rdev *rdev, *rrdev; in r5l_recovery_replay_one_stripe() 2958 struct md_rdev *rdev = log->rdev; in r5l_load_log() 3048 void r5c_update_on_rdev_error(struct mddev *mddev, struct md_rdev *rdev) in r5c_update_on_rdev_error() 3062 int r5l_init_log(struct r5conf *conf, struct md_rdev *rdev) in r5l_init_log()
|