/linux-2.4.37.9/drivers/md/ |
D | md.c | 143 void add_mddev_mapping(mddev_t * mddev, kdev_t dev, void *data) in add_mddev_mapping() argument 151 if (mddev_map[minor].mddev) { in add_mddev_mapping() 155 mddev_map[minor].mddev = mddev; in add_mddev_mapping() 159 void del_mddev_mapping(mddev_t * mddev, kdev_t dev) in del_mddev_mapping() argument 167 if (mddev_map[minor].mddev != mddev) { in del_mddev_mapping() 171 mddev_map[minor].mddev = NULL; in del_mddev_mapping() 177 mddev_t *mddev = kdev_to_mddev(bh->b_rdev); in md_make_request() local 179 if (mddev && mddev->pers) in md_make_request() 180 return mddev->pers->make_request(mddev, rw, bh); in md_make_request() 189 mddev_t *mddev; in alloc_mddev() local [all …]
|
D | multipath.c | 54 static int multipath_diskop(mddev_t *mddev, mdp_disk_t **d, int state); 92 multipath_conf_t *conf = mddev_to_conf(mp_bh->mddev); in multipath_free_mpbh() 118 mp_bh->mddev = conf->mddev; in multipath_grow_mpbh() 139 static int multipath_map (mddev_t *mddev, kdev_t *rdev) in multipath_map() argument 141 multipath_conf_t *conf = mddev_to_conf(mddev); in multipath_map() 163 mddev_t *mddev = mp_bh->mddev; in multipath_reschedule_retry() local 164 multipath_conf_t *conf = mddev_to_conf(mddev); in multipath_reschedule_retry() 198 md_error (mp_bh->mddev, bh->b_dev); in multipath_end_request() 241 static int multipath_make_request (mddev_t *mddev, int rw, in multipath_make_request() argument 244 multipath_conf_t *conf = mddev_to_conf(mddev); in multipath_make_request() [all …]
|
D | raid0.c | 28 static int create_strip_zones (mddev_t *mddev) in create_strip_zones() argument 32 raid0_conf_t *conf = mddev_to_conf(mddev); in create_strip_zones() 40 ITERATE_RDEV_ORDERED(mddev,rdev1,j1) { in create_strip_zones() 43 ITERATE_RDEV_ORDERED(mddev,rdev2,j2) { in create_strip_zones() 88 ITERATE_RDEV_ORDERED(mddev,rdev,j) { in create_strip_zones() 121 static int raid0_run (mddev_t *mddev) in raid0_run() argument 131 mddev->private = (void *)conf; in raid0_run() 133 if (md_check_ordering(mddev)) { in raid0_run() 138 if (create_strip_zones (mddev)) in raid0_run() 141 printk("raid0 : md_size is %d blocks.\n", md_size[mdidx(mddev)]); in raid0_run() [all …]
|
D | linear.c | 30 static int linear_run (mddev_t *mddev) in linear_run() argument 43 mddev->private = conf; in linear_run() 45 if (md_check_ordering(mddev)) { in linear_run() 55 ITERATE_RDEV_ORDERED(mddev,rdev,j) { in linear_run() 69 md_size[mdidx(mddev)] / conf->smallest->size + in linear_run() 70 ((md_size[mdidx(mddev)] % conf->smallest->size) ? 1 : 0); in linear_run() 83 for (j = 0; j < mddev->nb_dev; j++) { in linear_run() 110 static int linear_stop (mddev_t *mddev) in linear_stop() argument 112 linear_conf_t *conf = mddev_to_conf(mddev); in linear_stop() 122 static int linear_make_request (mddev_t *mddev, in linear_make_request() argument [all …]
|
D | raid1.c | 189 raid1_conf_t *conf = mddev_to_conf(r1_bh->mddev); in raid1_free_r1bh() 220 r1_bh->mddev = conf->mddev; in raid1_grow_r1bh() 246 raid1_conf_t *conf = mddev_to_conf(r1_bh->mddev); in raid1_free_buf() 324 static int raid1_map (mddev_t *mddev, kdev_t *rdev) in raid1_map() argument 326 raid1_conf_t *conf = mddev_to_conf(mddev); in raid1_map() 352 mddev_t *mddev = r1_bh->mddev; in raid1_reschedule_retry() local 353 raid1_conf_t *conf = mddev_to_conf(mddev); in raid1_reschedule_retry() 404 io_request_done(bh->b_rsector, mddev_to_conf(r1_bh->mddev), in raid1_end_bh_io() 418 md_error (r1_bh->mddev, bh->b_dev); in raid1_end_request() 590 static int raid1_make_request (mddev_t *mddev, int rw, in raid1_make_request() argument [all …]
|
D | raid5.c | 421 md_error(conf->mddev, bh->b_dev); in raid5_end_read_request() 455 md_error(conf->mddev, bh->b_dev); in raid5_end_write_request() 480 static int raid5_error (mddev_t *mddev, kdev_t dev) in raid5_error() argument 482 raid5_conf_t *conf = (raid5_conf_t *) mddev->private; in raid5_error() 483 mdp_super_t *sb = mddev->sb; in raid5_error() 499 mddev->sb_dirty = 1; in raid5_error() 534 mddev->sb_dirty = 1; in raid5_error() 916 md_done_sync(conf->mddev, (sh->size>>9) - sh->sync_redone,0); in handle_stripe() 1117 md_done_sync(conf->mddev, (sh->size>>9) - sh->sync_redone,1); in handle_stripe() 1203 static int raid5_make_request (mddev_t *mddev, int rw, struct buffer_head * bh) in raid5_make_request() argument [all …]
|
D | Makefile | 5 O_TARGET := mddev.o
|
/linux-2.4.37.9/include/linux/raid/ |
D | md_k.h | 72 mddev_t *mddev; member 82 return mddev_map[MINOR(dev)].mddev; in kdev_to_mddev() 168 mddev_t *mddev; /* RAID array if running */ member 224 int (*make_request)(mddev_t *mddev, int rw, struct buffer_head * bh); 225 int (*run)(mddev_t *mddev); 226 int (*stop)(mddev_t *mddev); 227 void (*status)(struct seq_file *seq, mddev_t *mddev); 228 int (*error_handler)(mddev_t *mddev, kdev_t dev); 240 int (*diskop) (mddev_t *mddev, mdp_disk_t **descriptor, int state); 242 int (*stop_resync)(mddev_t *mddev); [all …]
|
D | md.h | 66 extern void add_mddev_mapping (mddev_t *mddev, kdev_t dev, void *data); 67 extern void del_mddev_mapping (mddev_t *mddev, kdev_t dev); 76 extern int md_update_sb (mddev_t *mddev); 77 extern int md_do_sync(mddev_t *mddev, mdp_disk_t *spare); 78 extern void md_done_sync(mddev_t *mddev, int blocks, int ok); 81 extern int md_check_ordering (mddev_t *mddev); 84 extern int md_error (mddev_t *mddev, kdev_t rdev);
|
D | multipath.h | 21 mddev_t *mddev; member 48 #define mddev_to_conf(mddev) ((multipath_conf_t *) mddev->private) argument 62 mddev_t *mddev; member
|
D | raid1.h | 24 mddev_t *mddev; member 70 #define mddev_to_conf(mddev) ((raid1_conf_t *) mddev->private) argument 84 mddev_t *mddev; member
|
D | raid5.h | 200 mddev_t *mddev; member 230 #define mddev_to_conf(mddev) ((raid5_conf_t *) mddev->private) argument
|
D | linear.h | 30 #define mddev_to_conf(mddev) ((linear_conf_t *) mddev->private) argument
|
D | raid0.h | 31 #define mddev_to_conf(mddev) ((raid0_conf_t *) mddev->private) argument
|
/linux-2.4.37.9/ |
D | Makefile | 201 DRIVERS-$(CONFIG_MD) += drivers/md/mddev.o
|