/linux-2.6.39/drivers/md/ |
D | md.h | 29 typedef struct mddev_s mddev_t; typedef 40 mddev_t *mddev; /* RAID array if running */ 336 static inline void rdev_dec_pending(mdk_rdev_t *rdev, mddev_t *mddev) in rdev_dec_pending() 354 int (*make_request)(mddev_t *mddev, struct bio *bio); 355 int (*run)(mddev_t *mddev); 356 int (*stop)(mddev_t *mddev); 357 void (*status)(struct seq_file *seq, mddev_t *mddev); 361 void (*error_handler)(mddev_t *mddev, mdk_rdev_t *rdev); 362 int (*hot_add_disk) (mddev_t *mddev, mdk_rdev_t *rdev); 363 int (*hot_remove_disk) (mddev_t *mddev, int number); [all …]
|
D | linear.c | 29 static inline dev_info_t *which_dev(mddev_t *mddev, sector_t sector) in which_dev() 66 mddev_t *mddev = q->queuedata; in linear_mergeable_bvec() 92 mddev_t *mddev = data; in linear_congested() 111 static sector_t linear_size(mddev_t *mddev, sector_t sectors, int raid_disks) in linear_size() 126 static linear_conf_t *linear_conf(mddev_t *mddev, int raid_disks) in linear_conf() 197 static int linear_run (mddev_t *mddev) in linear_run() 222 static int linear_add(mddev_t *mddev, mdk_rdev_t *rdev) in linear_add() 254 static int linear_stop (mddev_t *mddev) in linear_stop() 273 static int linear_make_request (mddev_t *mddev, struct bio *bio) in linear_make_request() 332 static void linear_status (struct seq_file *seq, mddev_t *mddev) in linear_status()
|
D | md.c | 96 static inline int speed_min(mddev_t *mddev) in speed_min() 102 static inline int speed_max(mddev_t *mddev) in speed_max() 158 mddev_t *mddev, **mddevp; in mddev_bio_destructor() 167 mddev_t *mddev) in bio_alloc_mddev() 170 mddev_t **mddevp; in bio_alloc_mddev() 187 mddev_t *mddev) in bio_clone_mddev() 190 mddev_t **mddevp; in bio_clone_mddev() 230 void md_new_event(mddev_t *mddev) in md_new_event() 240 static void md_new_event_inintr(mddev_t *mddev) in md_new_event_inintr() 267 mddev_get(list_entry(tmp, mddev_t, all_mddevs));\ [all …]
|
D | bitmap.h | 197 mddev_t *mddev; /* the md device that the bitmap is for */ 256 int bitmap_create(mddev_t *mddev); 257 int bitmap_load(mddev_t *mddev); 258 void bitmap_flush(mddev_t *mddev); 259 void bitmap_destroy(mddev_t *mddev); 280 void bitmap_daemon_work(mddev_t *mddev);
|
D | raid0.c | 30 mddev_t *mddev = data; in raid0_congested() 50 static void dump_zones(mddev_t *mddev) in dump_zones() 80 static int create_strip_zones(mddev_t *mddev, raid0_conf_t **private_conf) in create_strip_zones() 302 mddev_t *mddev = q->queuedata; in raid0_mergeable_bvec() 321 static sector_t raid0_size(mddev_t *mddev, sector_t sectors, int raid_disks) in raid0_size() 335 static int raid0_run(mddev_t *mddev) in raid0_run() 385 static int raid0_stop(mddev_t *mddev) in raid0_stop() 420 static mdk_rdev_t *map_sector(mddev_t *mddev, struct strip_zone *zone, in map_sector() 456 static inline int is_io_in_chunk_boundary(mddev_t *mddev, in is_io_in_chunk_boundary() 469 static int raid0_make_request(mddev_t *mddev, struct bio *bio) in raid0_make_request() [all …]
|
D | raid1.h | 20 mddev_t *mddev; 28 mddev_t *mddev; 86 mddev_t *mddev;
|
D | multipath.c | 61 mddev_t *mddev = mp_bh->mddev; in multipath_reschedule_retry() 109 static int multipath_make_request(mddev_t *mddev, struct bio * bio) in multipath_make_request() 143 static void multipath_status (struct seq_file *seq, mddev_t *mddev) in multipath_status() 159 mddev_t *mddev = data; in multipath_congested() 186 static void multipath_error (mddev_t *mddev, mdk_rdev_t *rdev) in multipath_error() 244 static int multipath_add_disk(mddev_t *mddev, mdk_rdev_t *rdev) in multipath_add_disk() 292 static int multipath_remove_disk(mddev_t *mddev, int number) in multipath_remove_disk() 336 static void multipathd (mddev_t *mddev) in multipathd() 380 static sector_t multipath_size(mddev_t *mddev, sector_t sectors, int raid_disks) in multipath_size() 388 static int multipath_run (mddev_t *mddev) in multipath_run() [all …]
|
D | multipath.h | 9 mddev_t *mddev; 28 mddev_t *mddev;
|
D | faulty.c | 172 static int make_request(mddev_t *mddev, struct bio *bio) in make_request() 225 static void status(struct seq_file *seq, mddev_t *mddev) in status() 258 static int reshape(mddev_t *mddev) in reshape() 287 static sector_t faulty_size(mddev_t *mddev, sector_t sectors, int raid_disks) in faulty_size() 298 static int run(mddev_t *mddev) in run() 328 static int stop(mddev_t *mddev) in stop()
|
D | raid10.h | 14 mddev_t *mddev; 85 mddev_t *mddev;
|
D | raid5.h | 349 mddev_t *mddev; 503 extern int md_raid5_congested(mddev_t *mddev, int bits); 505 extern int raid5_set_cache_size(mddev_t *mddev, int size);
|
D | bitmap.c | 191 static struct page *read_sb_page(mddev_t *mddev, loff_t offset, in read_sb_page() 230 static mdk_rdev_t *next_active_rdev(mdk_rdev_t *rdev, mddev_t *mddev) in next_active_rdev() 268 mddev_t *mddev = bitmap->mddev; in write_sb_page() 1116 void bitmap_daemon_work(mddev_t *mddev) in bitmap_daemon_work() 1608 void bitmap_flush(mddev_t *mddev) in bitmap_flush() 1656 void bitmap_destroy(mddev_t *mddev) in bitmap_destroy() 1679 int bitmap_create(mddev_t *mddev) in bitmap_create() 1781 int bitmap_load(mddev_t *mddev) in bitmap_load() 1836 location_show(mddev_t *mddev, char *page) in location_show() 1850 location_store(mddev_t *mddev, const char *buf, size_t len) in location_store() [all …]
|
D | raid1.c | 208 mddev_t *mddev = r1_bio->mddev; in reschedule_retry() 516 mddev_t *mddev = data; in raid1_congested() 711 static int make_request(mddev_t *mddev, struct bio * bio) in make_request() 930 static void status(struct seq_file *seq, mddev_t *mddev) in status() 948 static void error(mddev_t *mddev, mdk_rdev_t *rdev) in error() 1024 static int raid1_spare_active(mddev_t *mddev) in raid1_spare_active() 1054 static int raid1_add_disk(mddev_t *mddev, mdk_rdev_t *rdev) in raid1_add_disk() 1099 static int raid1_remove_disk(mddev_t *mddev, int number) in raid1_remove_disk() 1166 mddev_t *mddev = r1_bio->mddev; in end_sync_write() 1199 static void sync_request_write(mddev_t *mddev, r1bio_t *r1_bio) in sync_request_write() [all …]
|
D | raid10.c | 208 mddev_t *mddev = r10_bio->mddev; in reschedule_retry() 455 mddev_t *mddev = q->queuedata; in raid10_mergeable_bvec() 593 mddev_t *mddev = data; in raid10_congested() 746 static int make_request(mddev_t *mddev, struct bio * bio) in make_request() 951 static void status(struct seq_file *seq, mddev_t *mddev) in status() 975 static void error(mddev_t *mddev, mdk_rdev_t *rdev) in error() 1069 static int raid10_spare_active(mddev_t *mddev) in raid10_spare_active() 1099 static int raid10_add_disk(mddev_t *mddev, mdk_rdev_t *rdev) in raid10_add_disk() 1156 static int raid10_remove_disk(mddev_t *mddev, int number) in raid10_remove_disk() 1236 mddev_t *mddev = r10_bio->mddev; in end_sync_write() [all …]
|
D | raid5.c | 1697 static void error(mddev_t *mddev, mdk_rdev_t *rdev) in error() 3641 int md_raid5_congested(mddev_t *mddev, int bits) in md_raid5_congested() 3662 mddev_t *mddev = data; in raid5_congested() 3675 mddev_t *mddev = q->queuedata; in raid5_mergeable_bvec() 3695 static int in_chunk_boundary(mddev_t *mddev, struct bio *bio) in in_chunk_boundary() 3758 mddev_t *mddev; in raid5_align_endio() 3805 static int chunk_aligned_read(mddev_t *mddev, struct bio * raid_bio) in chunk_aligned_read() 3921 static int make_request(mddev_t *mddev, struct bio * bi) in make_request() 4081 static sector_t raid5_size(mddev_t *mddev, sector_t sectors, int raid_disks); 4083 static sector_t reshape_request(mddev_t *mddev, sector_t sector_nr, int *skipped) in reshape_request() [all …]
|
D | dm-raid.c | 505 mddev_t *mddev = &rs->md; in raid_map()
|