Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/md/
Dmd.h45 struct md_rdev { struct
205 static inline int is_badblock(struct md_rdev *rdev, sector_t s, int sectors, in is_badblock()
218 extern int rdev_set_badblocks(struct md_rdev *rdev, sector_t s, int sectors,
220 extern int rdev_clear_badblocks(struct md_rdev *rdev, sector_t s, int sectors,
265 struct md_rdev *rdev;
476 void (*sync_super)(struct mddev *mddev, struct md_rdev *rdev);
550 void (*error_handler)(struct mddev *mddev, struct md_rdev *rdev);
551 int (*hot_add_disk) (struct mddev *mddev, struct md_rdev *rdev);
552 int (*hot_remove_disk) (struct mddev *mddev, struct md_rdev *rdev);
606 static inline int sysfs_link_rdev(struct mddev *mddev, struct md_rdev *rdev) in sysfs_link_rdev()
[all …]
Dmd-cluster.h10 struct md_rdev;
23 int (*add_new_disk)(struct mddev *mddev, struct md_rdev *rdev);
26 int (*remove_disk)(struct mddev *mddev, struct md_rdev *rdev);
28 int (*gather_bitmaps)(struct md_rdev *rdev);
Draid5-log.h5 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);
134 static inline int log_init(struct r5conf *conf, struct md_rdev *journal_dev, in log_init()
145 static inline int log_modify(struct r5conf *conf, struct md_rdev *rdev, bool add) in log_modify()
Dmd.c99 struct md_rdev *this);
447 struct md_rdev *rdev = fb->rdev; in md_end_flush()
470 struct md_rdev *rdev; in md_flush_request()
699 struct md_rdev *md_find_rdev_nr_rcu(struct mddev *mddev, int nr) in md_find_rdev_nr_rcu()
701 struct md_rdev *rdev; in md_find_rdev_nr_rcu()
711 static struct md_rdev *find_rdev(struct mddev *mddev, dev_t dev) in find_rdev()
713 struct md_rdev *rdev; in find_rdev()
722 struct md_rdev *md_find_rdev_rcu(struct mddev *mddev, dev_t dev) in md_find_rdev_rcu()
724 struct md_rdev *rdev; in md_find_rdev_rcu()
747 static inline sector_t calc_dev_sboffset(struct md_rdev *rdev) in calc_dev_sboffset()
[all …]
Dmd-multipath.c45 struct md_rdev *rdev = rcu_dereference(conf->multipaths[i].rdev); in multipath_map()
90 struct md_rdev *rdev = conf->multipaths[mp_bh->path].rdev; in multipath_end_request()
156 struct md_rdev *rdev = rcu_dereference(conf->multipaths[i].rdev); in multipath_status()
170 struct md_rdev *rdev = rcu_dereference(conf->multipaths[i].rdev); in multipath_congested()
188 static void multipath_error (struct mddev *mddev, struct md_rdev *rdev) in multipath_error()
243 static int multipath_add_disk(struct mddev *mddev, struct md_rdev *rdev) in multipath_add_disk()
280 static int multipath_remove_disk(struct mddev *mddev, struct md_rdev *rdev) in multipath_remove_disk()
379 struct md_rdev *rdev; in multipath_run()
Draid10.h19 struct md_rdev *rdev, *replacement;
151 struct md_rdev *rdev; /* used for reads
Draid0.c39 struct md_rdev **devlist = conf->devlist; in raid0_congested()
88 struct md_rdev *smallest, *rdev1, *rdev2, *rdev, **dev; in create_strip_zones()
167 conf->devlist = kzalloc(array3_size(sizeof(struct md_rdev *), in create_strip_zones()
314 static struct md_rdev *map_sector(struct mddev *mddev, struct strip_zone *zone, in map_sector()
350 struct md_rdev *rdev; in raid0_size()
385 struct md_rdev *rdev; in raid0_run()
517 struct md_rdev *rdev; in raid0_handle_discard()
558 struct md_rdev *tmp_dev; in raid0_make_request()
617 struct md_rdev *rdev; in raid0_takeover_raid45()
Draid10.c392 struct md_rdev *rdev; in raid10_end_read_request()
472 struct md_rdev *rdev = NULL; in raid10_end_write_request()
739 static struct md_rdev *read_balance(struct r10conf *conf, in read_balance()
748 struct md_rdev *best_rdev, *rdev = NULL; in read_balance()
880 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in raid10_congested()
925 struct md_rdev *rdev = (void*)bio->bi_disk; in flush_pending_writes()
1069 struct md_rdev *rdev) in choose_data_offset()
1110 struct md_rdev *rdev = (void*)bio->bi_disk; in raid10_unplug()
1135 struct md_rdev *rdev; in raid10_read_request()
1138 struct md_rdev *err_rdev = NULL; in raid10_read_request()
[all …]
Draid1.c333 struct md_rdev *rdev = conf->mirrors[r1_bio->read_disk].rdev; in raid1_end_read_request()
418 struct md_rdev *rdev = conf->mirrors[mirror].rdev; in raid1_end_write_request()
566 struct md_rdev *rdev; in read_balance()
762 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in raid1_congested()
789 struct md_rdev *rdev = (void *)bio->bi_disk; in flush_bio_list()
1211 struct md_rdev *rdev; in raid1_read_request()
1310 struct md_rdev *blocked_rdev; in raid1_write_request()
1366 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in raid1_write_request()
1572 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in raid1_status()
1580 static void raid1_error(struct mddev *mddev, struct md_rdev *rdev) in raid1_error()
[all …]
Draid5-ppl.c124 struct md_rdev *rdev; /* array member disk associated with
603 struct md_rdev *rdev; in ppl_flush_endio()
632 struct md_rdev *rdev; in ppl_do_flush()
860 struct md_rdev *parity_rdev; in ppl_recover_entry()
873 struct md_rdev *rdev; in ppl_recover_entry()
979 struct md_rdev *rdev = log->rdev; in ppl_recover()
1055 struct md_rdev *rdev = log->rdev; in ppl_write_empty_header()
1087 struct md_rdev *rdev = log->rdev; in ppl_load_distributed()
1267 static int ppl_validate_rdev(struct md_rdev *rdev) in ppl_validate_rdev()
1314 static void ppl_init_child_log(struct ppl_log *log, struct md_rdev *rdev) in ppl_init_child_log()
[all …]
Draid0.h13 struct md_rdev **devlist; /* lists of rdevs, pointed to
Dmd-linear.h6 struct md_rdev *rdev;
Ddm-raid.c55 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 …]
Dmd-multipath.h6 struct md_rdev *rdev;
Draid1.h42 struct md_rdev *rdev;
Dmd-linear.c95 struct md_rdev *rdev; in linear_conf()
197 static int linear_add(struct mddev *mddev, struct md_rdev *rdev) in linear_add()
Draid5.h283 struct md_rdev *blocked_rdev;
467 struct md_rdev *rdev, *replacement;
Dmd-cluster.c553 struct md_rdev *rdev; in process_remove_disk()
570 struct md_rdev *rdev; in process_readd_disk()
1075 struct md_rdev *rdev; in metadata_update_finish()
1179 struct md_rdev *rdev; in update_size()
1321 static int add_new_disk(struct mddev *mddev, struct md_rdev *rdev) in add_new_disk()
1389 static int remove_disk(struct mddev *mddev, struct md_rdev *rdev) in remove_disk()
1449 static int gather_bitmaps(struct md_rdev *rdev) in gather_bitmaps()
Dmd-faulty.c91 struct md_rdev *rdev;
305 struct md_rdev *rdev; in faulty_run()
Draid5.c573 struct md_rdev *rdev = rcu_dereference(conf->disks[i].rdev); in raid5_calc_degraded()
599 struct md_rdev *rdev = rcu_dereference(conf->disks[i].rdev); in raid5_calc_degraded()
1003 struct md_rdev *rdev, *rrdev = NULL; in ops_run_io()
2481 struct md_rdev *rdev = NULL; in raid5_end_read_request()
2602 struct md_rdev *uninitialized_var(rdev); in raid5_end_write_request()
2676 static void raid5_error(struct mddev *mddev, struct md_rdev *rdev) in raid5_error()
3352 struct md_rdev *rdev; in handle_failed_stripe()
3480 struct md_rdev *rdev = rcu_dereference(conf->disks[i].rdev); in handle_failed_sync()
3505 struct md_rdev *rdev; in want_replace()
4378 struct md_rdev *rdev; in analyse_stripe()
[all …]
Dmd-bitmap.c154 struct md_rdev *rdev; in read_sb_page()
175 static struct md_rdev *next_active_rdev(struct md_rdev *rdev, struct mddev *mddev) in next_active_rdev()
193 rdev = list_entry(&mddev->disks, struct md_rdev, same_set); in next_active_rdev()
213 struct md_rdev *rdev; in write_sb_page()
Draid5-cache.c92 struct md_rdev *rdev;
1884 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()