/drivers/md/ |
D | md.h | 52 struct mddev *mddev; /* RAID array if running */ member 291 struct mddev { struct 292 void *private; 293 struct md_personality *pers; 294 dev_t unit; 295 int md_minor; 296 struct list_head disks; 297 unsigned long flags; 298 unsigned long sb_flags; 300 int suspended; [all …]
|
D | md.c | 102 static bool md_is_rdwr(struct mddev *mddev) in md_is_rdwr() 130 static inline int speed_min(struct mddev *mddev) in speed_min() 136 static inline int speed_max(struct mddev *mddev) in speed_max() 151 static void rdevs_uninit_serial(struct mddev *mddev) in rdevs_uninit_serial() 187 static int rdevs_init_serial(struct mddev *mddev) in rdevs_init_serial() 222 void mddev_create_serial_pool(struct mddev *mddev, struct md_rdev *rdev, in mddev_create_serial_pool() 266 void mddev_destroy_serial_pool(struct mddev *mddev, struct md_rdev *rdev, in mddev_destroy_serial_pool() 368 void md_new_event(struct mddev *mddev) in md_new_event() 411 static bool is_suspended(struct mddev *mddev, struct bio *bio) in is_suspended() 426 void md_handle_request(struct mddev *mddev, struct bio *bio) in md_handle_request() [all …]
|
D | md-cluster.c | 27 struct mddev *mddev; /* pointing back to mddev. */ member 61 struct mddev *mddev; /* the md device which md_cluster_info belongs to */ member 150 struct mddev *mddev) in dlm_lock_sync_interruptible() 183 static struct dlm_lock_resource *lockres_init(struct mddev *mddev, in lockres_init() 268 static int read_resync_info(struct mddev *mddev, in read_resync_info() 288 struct mddev *mddev = thread->mddev; in recover_bitmaps() local 354 struct mddev *mddev = arg; in recover_prep() local 359 static void __recover_slot(struct mddev *mddev, int slot) in __recover_slot() 377 struct mddev *mddev = arg; in recover_slot() local 393 struct mddev *mddev = arg; in recover_done() local [all …]
|
D | raid0.c | 35 static void dump_zones(struct mddev *mddev) in dump_zones() 65 static int create_strip_zones(struct mddev *mddev, struct r0conf **private_conf) in create_strip_zones() 324 static struct md_rdev *map_sector(struct mddev *mddev, struct strip_zone *zone, in map_sector() 357 static sector_t raid0_size(struct mddev *mddev, sector_t sectors, int raid_disks) in raid0_size() 372 static void free_conf(struct mddev *mddev, struct r0conf *conf) in free_conf() 379 static void raid0_free(struct mddev *mddev, void *priv) in raid0_free() 387 static int raid0_run(struct mddev *mddev) in raid0_run() 473 static void raid0_handle_discard(struct mddev *mddev, struct bio *bio) in raid0_handle_discard() 573 static void raid0_map_submit_bio(struct mddev *mddev, struct bio *bio) in raid0_map_submit_bio() 615 static bool raid0_make_request(struct mddev *mddev, struct bio *bio) in raid0_make_request() [all …]
|
D | md-linear.c | 24 static inline struct dev_info *which_dev(struct mddev *mddev, sector_t sector) in which_dev() 49 static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disks) in linear_size() 62 static struct linear_conf *linear_conf(struct mddev *mddev, int raid_disks) in linear_conf() 144 static int linear_run (struct mddev *mddev) in linear_run() 166 static int linear_add(struct mddev *mddev, struct md_rdev *rdev) in linear_add() 209 static void linear_free(struct mddev *mddev, void *priv) in linear_free() 216 static bool linear_make_request(struct mddev *mddev, struct bio *bio) in linear_make_request() 280 static void linear_status (struct seq_file *seq, struct mddev *mddev) in linear_status() 285 static void linear_error(struct mddev *mddev, struct md_rdev *rdev) in linear_error() 295 static void linear_quiesce(struct mddev *mddev, int state) in linear_quiesce()
|
D | md-multipath.c | 54 struct mddev *mddev = mp_bh->mddev; in multipath_reschedule_retry() local 101 static bool multipath_make_request(struct mddev *mddev, struct bio * bio) in multipath_make_request() 138 static void multipath_status(struct seq_file *seq, struct mddev *mddev) in multipath_status() 157 static void multipath_error (struct mddev *mddev, struct md_rdev *rdev) in multipath_error() 212 static int multipath_add_disk(struct mddev *mddev, struct md_rdev *rdev) in multipath_add_disk() 249 static int multipath_remove_disk(struct mddev *mddev, struct md_rdev *rdev) in multipath_remove_disk() 293 struct mddev *mddev = thread->mddev; in multipathd() local 335 static sector_t multipath_size(struct mddev *mddev, sector_t sectors, int raid_disks) in multipath_size() 343 static int multipath_run (struct mddev *mddev) in multipath_run() 437 static void multipath_free(struct mddev *mddev, void *priv) in multipath_free()
|
D | md-bitmap.c | 142 static int read_sb_page(struct mddev *mddev, loff_t offset, in read_sb_page() 169 static struct md_rdev *next_active_rdev(struct md_rdev *rdev, struct mddev *mddev) in next_active_rdev() 209 struct mddev *mddev = bitmap->mddev; in write_sb_page() local 1220 void md_bitmap_daemon_work(struct mddev *mddev) in md_bitmap_daemon_work() 1642 void md_bitmap_sync_with_cluster(struct mddev *mddev, in md_bitmap_sync_with_cluster() 1710 void md_bitmap_flush(struct mddev *mddev) in md_bitmap_flush() 1772 void md_bitmap_wait_behind_writes(struct mddev *mddev) in md_bitmap_wait_behind_writes() 1786 void md_bitmap_destroy(struct mddev *mddev) in md_bitmap_destroy() 1813 struct bitmap *md_bitmap_create(struct mddev *mddev, int slot) in md_bitmap_create() 1900 int md_bitmap_load(struct mddev *mddev) in md_bitmap_load() [all …]
|
D | raid1.c | 84 struct mddev *mddev = rdev->mddev; in wait_for_serialization() local 101 struct mddev *mddev = rdev->mddev; in remove_serial() local 277 struct mddev *mddev = r1_bio->mddev; in reschedule_retry() local 1159 struct mddev *mddev = plug->cb.data; in raid1_unplug() local 1180 static void init_r1bio(struct r1bio *r1_bio, struct mddev *mddev, struct bio *bio) in init_r1bio() 1190 alloc_r1bio(struct mddev *mddev, struct bio *bio) in alloc_r1bio() 1202 static void raid1_read_request(struct mddev *mddev, struct bio *bio, in raid1_read_request() 1319 static void raid1_write_request(struct mddev *mddev, struct bio *bio, in raid1_write_request() 1569 static bool raid1_make_request(struct mddev *mddev, struct bio *bio) in raid1_make_request() 1597 static void raid1_status(struct seq_file *seq, struct mddev *mddev) in raid1_status() [all …]
|
D | raid10.c | 273 struct mddev *mddev = r10_bio->mddev; in reschedule_retry() local 1085 struct mddev *mddev = plug->cb.data; in raid10_unplug() local 1129 static bool regular_request_wait(struct mddev *mddev, struct r10conf *conf, in regular_request_wait() 1155 static void raid10_read_request(struct mddev *mddev, struct bio *bio, in raid10_read_request() 1252 static void raid10_write_one_disk(struct mddev *mddev, struct r10bio *r10_bio, in raid10_write_one_disk() 1338 static void wait_blocked_dev(struct mddev *mddev, struct r10bio *r10_bio) in wait_blocked_dev() 1402 static void raid10_write_request(struct mddev *mddev, struct bio *bio, in raid10_write_request() 1563 static void __make_request(struct mddev *mddev, struct bio *bio, int sectors) in __make_request() 1646 static int raid10_handle_discard(struct mddev *mddev, struct bio *bio) in raid10_handle_discard() 1894 static bool raid10_make_request(struct mddev *mddev, struct bio *bio) in raid10_make_request() [all …]
|
D | raid5.c | 2874 static void raid5_error(struct mddev *mddev, struct md_rdev *rdev) in raid5_error() 5305 static int in_chunk_boundary(struct mddev *mddev, struct bio *bio) in in_chunk_boundary() 5365 struct mddev *mddev; in raid5_align_endio() local 5394 static int raid5_read_one_chunk(struct mddev *mddev, struct bio *raid_bio) in raid5_read_one_chunk() 5483 static struct bio *chunk_aligned_read(struct mddev *mddev, struct bio *raid_bio) in chunk_aligned_read() 5617 struct mddev *mddev = cb->cb.data; in raid5_unplug() local 5651 static void release_stripe_plug(struct mddev *mddev, in release_stripe_plug() 5679 static void make_discard_request(struct mddev *mddev, struct bio *bi) in make_discard_request() 5766 static bool raid5_make_request(struct mddev *mddev, struct bio * bi) in raid5_make_request() 5942 static sector_t reshape_request(struct mddev *mddev, sector_t sector_nr, int *skipped) in reshape_request() [all …]
|
D | dm-raid.c | 261 struct mddev *mddev = &rs->md; in rs_config_backup() local 270 struct mddev *mddev = &rs->md; in rs_config_restore() local 684 struct mddev *mddev = &rs->md; in rs_set_rdev_sectors() local 712 struct mddev *mddev = &rs->md; in rs_set_cur() local 725 struct mddev *mddev = &rs->md; in rs_set_new() local 1538 struct mddev *mddev = &rs->md; in rs_set_raid456_stripe_cache() local 1628 struct mddev *mddev = &rs->md; in rs_set_dev_and_array_sectors() local 1716 struct mddev *mddev = &rs->md; in rs_check_takeover() local 1886 struct mddev *mddev = &rs->md; in rs_reshape_requested() local 2014 struct mddev *mddev = &rs->md; in rs_check_reshape() local [all …]
|
D | md-faulty.c | 164 static bool faulty_make_request(struct mddev *mddev, struct bio *bio) in faulty_make_request() 221 static void faulty_status(struct seq_file *seq, struct mddev *mddev) in faulty_status() 254 static int faulty_reshape(struct mddev *mddev) in faulty_reshape() 283 static sector_t faulty_size(struct mddev *mddev, sector_t sectors, int raid_disks) in faulty_size() 294 static int faulty_run(struct mddev *mddev) in faulty_run() 327 static void faulty_free(struct mddev *mddev, void *priv) in faulty_free()
|
D | raid5-cache.c | 684 struct mddev *mddev = log->rdev->mddev; in r5c_disable_writeback_async() local 864 struct mddev *mddev = log->rdev->mddev; in r5l_append_flush_payload() local 1317 struct mddev *mddev; in r5l_write_super_and_discard_space() local 1551 struct mddev *mddev = thread->mddev; in r5l_reclaim_thread() local 1578 struct mddev *mddev; in r5l_quiesce() local 1816 struct mddev *mddev = log->rdev->mddev; in r5l_recovery_load_data() local 1838 struct mddev *mddev = log->rdev->mddev; in r5l_recovery_load_parity() local 2006 struct mddev *mddev = log->rdev->mddev; in r5l_recovery_verify_data_checksum_for_mb() local 2080 struct mddev *mddev = log->rdev->mddev; in r5c_recovery_analyze_meta_block() local 2356 struct mddev *mddev = log->rdev->mddev; in r5c_recovery_rewrite_data_only_stripes() local [all …]
|
D | md-multipath.h | 10 struct mddev *mddev; member 26 struct mddev *mddev; member
|
D | raid5-ppl.c | 88 struct mddev *mddev; member 799 struct mddev *mddev = ppl_conf->mddev; in ppl_recover_entry() local 975 struct mddev *mddev = rdev->mddev; in ppl_recover() local 1083 struct mddev *mddev = rdev->mddev; in ppl_load_distributed() local 1335 struct mddev *mddev = conf->mddev; in ppl_init_log() local 1505 ppl_write_hint_show(struct mddev *mddev, char *buf) in ppl_write_hint_show() 1522 ppl_write_hint_store(struct mddev *mddev, const char *page, size_t len) in ppl_write_hint_store()
|
D | raid1.h | 64 struct mddev *mddev; member 69 struct mddev *mddev; member 162 struct mddev *mddev; member
|
D | raid10.h | 29 struct mddev *mddev; member 128 struct mddev *mddev; member
|
D | md-autodetect.c | 129 struct mddev *mddev; in md_setup_drive() local
|
D | md-bitmap.h | 195 struct mddev *mddev; /* the md device that the bitmap is for */ member
|
D | raid5.h | 566 struct mddev *mddev; member
|