Home
last modified time | relevance | path

Searched refs:md_rdev (Results 1 – 23 of 23) sorted by relevance

/Linux-v6.6/drivers/md/
Dmd.h48 struct md_rdev { struct
219 static inline int is_badblock(struct md_rdev *rdev, sector_t s, int sectors, in is_badblock()
232 extern int rdev_set_badblocks(struct md_rdev *rdev, sector_t s, int sectors,
234 extern int rdev_clear_badblocks(struct md_rdev *rdev, sector_t s, int sectors,
530 void (*sync_super)(struct mddev *mddev, struct md_rdev *rdev);
635 void (*error_handler)(struct mddev *mddev, struct md_rdev *rdev);
636 int (*hot_add_disk) (struct mddev *mddev, struct md_rdev *rdev);
637 int (*hot_remove_disk) (struct mddev *mddev, struct md_rdev *rdev);
690 static inline int sysfs_link_rdev(struct mddev *mddev, struct md_rdev *rdev) in sysfs_link_rdev()
702 static inline void sysfs_unlink_rdev(struct mddev *mddev, struct md_rdev *rdev) in sysfs_unlink_rdev()
[all …]
Dmd-cluster.h10 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);
Draid5-log.h5 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()
Dmd.c89 struct md_rdev *this);
91 static void export_rdev(struct md_rdev *rdev, struct mddev *mddev);
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()
[all …]
Dmd-multipath.c37 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()
144 struct md_rdev *rdev = rcu_dereference(conf->multipaths[i].rdev); in multipath_status()
154 static void multipath_error (struct mddev *mddev, struct md_rdev *rdev) in multipath_error()
207 static int multipath_add_disk(struct mddev *mddev, struct md_rdev *rdev) in multipath_add_disk()
244 static int multipath_remove_disk(struct mddev *mddev, struct md_rdev *rdev) in multipath_remove_disk()
342 struct md_rdev *rdev; in multipath_run()
Draid10.c381 struct md_rdev *rdev; in raid10_end_read_request()
460 struct md_rdev *rdev = NULL; in raid10_end_write_request()
729 static struct md_rdev *read_balance(struct r10conf *conf, in read_balance()
738 struct md_rdev *best_dist_rdev, *best_pending_rdev, *rdev = NULL; in read_balance()
1099 struct md_rdev *rdev) in choose_data_offset()
1180 struct md_rdev *rdev; in raid10_read_request()
1183 struct md_rdev *err_rdev = NULL; in raid10_read_request()
1278 struct md_rdev *rdev; in raid10_write_one_disk()
1324 static struct md_rdev *dereference_rdev_and_rrdev(struct raid10_info *mirror, in dereference_rdev_and_rrdev()
1325 struct md_rdev **prrdev) in dereference_rdev_and_rrdev()
[all …]
Draid0.c67 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()
403 struct md_rdev *rdev; in raid0_run()
515 struct md_rdev *rdev; in raid0_handle_discard()
552 struct md_rdev *tmp_dev; in raid0_map_submit_bio()
630 static void raid0_error(struct mddev *mddev, struct md_rdev *rdev) in raid0_error()
642 struct md_rdev *rdev; in raid0_takeover_raid45()
Draid10.h19 struct md_rdev *rdev, *replacement;
150 struct md_rdev *rdev; /* used for reads
Draid1.c59 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()
369 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()
608 struct md_rdev *rdev; in read_balance()
1238 struct md_rdev *rdev; in raid1_read_request()
1344 struct md_rdev *blocked_rdev; in raid1_write_request()
1401 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in raid1_write_request()
1517 struct md_rdev *rdev = conf->mirrors[i].rdev; in raid1_write_request()
[all …]
Draid5-ppl.c118 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 …]
Dmd-linear.c65 struct md_rdev *rdev; in linear_conf()
157 static int linear_add(struct mddev *mddev, struct md_rdev *rdev) in linear_add()
275 static void linear_error(struct mddev *mddev, struct md_rdev *rdev) in linear_error()
Ddm-raid.c56 struct md_rdev rdev;
253 struct md_rdev rdev;
686 struct md_rdev *rdev; in rs_set_rdev_sectors()
1247 struct md_rdev *jdev; in parse_raid_params()
1595 struct md_rdev *rdev = &rs->dev[i].rdev; in __rdev_sectors()
1609 struct md_rdev *rdev; in _check_data_dev_sectors()
2033 static int read_disk_sb(struct md_rdev *rdev, int size, bool force_reload) in read_disk_sb()
2082 static void super_sync(struct mddev *mddev, struct md_rdev *rdev) in super_sync()
2166 static int super_load(struct md_rdev *rdev, struct md_rdev *refdev) in super_load()
2209 static int super_init_validation(struct raid_set *rs, struct md_rdev *rdev) in super_init_validation()
[all …]
Dmd-linear.h6 struct md_rdev *rdev;
Draid0.h27 struct md_rdev **devlist; /* lists of rdevs, pointed to
Draid5.h293 struct md_rdev *blocked_rdev;
476 struct md_rdev __rcu *rdev;
477 struct md_rdev __rcu *replacement;
Dmd-multipath.h6 struct md_rdev *rdev;
Draid1.h42 struct md_rdev *rdev;
Dmd-cluster.c448 struct md_rdev *rdev; in process_suspend_info()
547 struct md_rdev *rdev; in process_remove_disk()
564 struct md_rdev *rdev; in process_readd_disk()
1082 struct md_rdev *rdev; in metadata_update_finish()
1262 struct md_rdev *rdev; in update_size()
1407 static int add_new_disk(struct mddev *mddev, struct md_rdev *rdev) in add_new_disk()
1476 static int remove_disk(struct mddev *mddev, struct md_rdev *rdev) in remove_disk()
1537 static int gather_bitmaps(struct md_rdev *rdev) in gather_bitmaps()
Dmd-faulty.c82 struct md_rdev *rdev;
298 struct md_rdev *rdev; in faulty_run()
Draid1-10.c119 struct md_rdev *rdev = (void *)bio->bi_bdev; in raid1_submit_write()
Draid5.c698 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()
1160 struct md_rdev *rdev, *rrdev = NULL; in ops_run_io()
2738 static struct md_rdev *rdev_pend_deref(struct md_rdev __rcu *rdev) in rdev_pend_deref()
2749 static struct md_rdev *rdev_mdlock_deref(struct mddev *mddev, in rdev_mdlock_deref()
2750 struct md_rdev __rcu *rdev) in rdev_mdlock_deref()
2761 struct md_rdev *rdev = NULL; in raid5_end_read_request()
2889 struct md_rdev *rdev; in raid5_end_write_request()
2962 static void raid5_error(struct mddev *mddev, struct md_rdev *rdev) in raid5_error()
3670 struct md_rdev *rdev; in handle_failed_stripe()
[all …]
Dmd-bitmap.c150 struct md_rdev *rdev; in read_sb_page()
166 static struct md_rdev *next_active_rdev(struct md_rdev *rdev, struct mddev *mddev) in next_active_rdev()
184 rdev = list_entry(&mddev->disks, struct md_rdev, same_set); in next_active_rdev()
224 static int __write_sb_page(struct md_rdev *rdev, struct bitmap *bitmap, in __write_sb_page()
285 struct md_rdev *rdev = NULL; in write_sb_page()
1974 struct md_rdev *rdev; in md_bitmap_load()
2541 struct md_rdev *rdev; in backlog_store()
Draid5-cache.c83 struct md_rdev *rdev;
1866 struct md_rdev *rdev, *rrdev; in r5l_recovery_replay_one_stripe()
2959 struct md_rdev *rdev = log->rdev; in r5l_load_log()
3049 void r5c_update_on_rdev_error(struct mddev *mddev, struct md_rdev *rdev) in r5c_update_on_rdev_error()
3063 int r5l_init_log(struct r5conf *conf, struct md_rdev *rdev) in r5l_init_log()