/drivers/md/ |
H A D | multipath.h | 11 int raid_disks; member in struct:mpconf
|
H A D | faulty.c | 291 static sector_t faulty_size(struct mddev *mddev, sector_t sectors, int raid_disks) argument 293 WARN_ONCE(raid_disks,
|
H A D | linear.c | 36 hi = mddev->raid_disks - 1; 112 for (i = 0; i < mddev->raid_disks && !ret ; i++) { 121 static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disks) argument 128 WARN_ONCE(sectors || raid_disks, 136 static struct linear_conf *linear_conf(struct mddev *mddev, int raid_disks) argument 143 conf = kzalloc (sizeof (*conf) + raid_disks*sizeof(struct dev_info), 156 if (j < 0 || j >= raid_disks || disk->rdev) { 178 if (cnt != raid_disks) { 194 for (i = 1; i < raid_disks; i++) 213 conf = linear_conf(mddev, mddev->raid_disks); [all...] |
H A D | multipath.c | 36 int i, disks = conf->raid_disks; 147 seq_printf (seq, " [%d/%d] [", conf->raid_disks, 148 conf->raid_disks - mddev->degraded); 149 for (i = 0; i < conf->raid_disks; i++) 166 for (i = 0; i < mddev->raid_disks ; i++) { 190 if (conf->raid_disks - mddev->degraded <= 1) { 217 conf->raid_disks - mddev->degraded); 230 printk(" --- wd:%d rd:%d\n", conf->raid_disks - conf->mddev->degraded, 231 conf->raid_disks); 233 for (i = 0; i < conf->raid_disks; 379 multipath_size(struct mddev *mddev, sector_t sectors, int raid_disks) argument [all...] |
H A D | raid1.h | 19 * mddev->raid_disks cannot be used, as it can change while a pool is active 21 * The 'raid_disks' here is twice the raid_disks in r1conf. 28 int raid_disks; member in struct:pool_info 33 struct raid1_info *mirrors; /* twice 'raid_disks' to 36 int raid_disks; member in struct:r1conf
|
H A D | raid0.c | 33 int raid_disks = conf->strip_zone[0].nb_dev; local 39 for (i = 0; i < raid_disks && !ret ; i++) { 57 int raid_disks = conf->strip_zone[0].nb_dev; local 65 bdevname(conf->devlist[j*raid_disks 147 conf->nr_strip_zones*mddev->raid_disks, 183 if (j >= mddev->raid_disks) { 208 if (cnt != mddev->raid_disks) { 210 "aborting!\n", mdname(mddev), cnt, mddev->raid_disks); 224 dev = conf->devlist + i * mddev->raid_disks; 282 (mddev->chunk_sectors << 9) * mddev->raid_disks); 330 int raid_disks = conf->strip_zone[0].nb_dev; local 410 raid0_size(struct mddev *mddev, sector_t sectors, int raid_disks) argument [all...] |
H A D | raid10.h | 22 int raid_disks; member in struct:r10conf::geom 45 * must be <= raid_disks
|
H A D | md.h | 249 int raid_disks; member in struct:mddev 473 sector_t (*size) (struct mddev *mddev, sector_t sectors, int raid_disks);
|
H A D | raid1.c | 76 int size = offsetof(struct r1bio, bios[pi->raid_disks]); 78 /* allocate a r1bio with room for raid_disks entries in the bios array */ 110 for (j = pi->raid_disks ; j-- ; ) { 123 need_pages = pi->raid_disks; 136 for (j=1; j<pi->raid_disks; j++) 154 while (++j < pi->raid_disks) 167 for (j = pi->raid_disks; j-- ;) { 173 for (i=0 ; i < pi->raid_disks; i++) 183 for (i = 0; i < conf->raid_disks * 2; i++) { 204 for (i = 0; i < conf->raid_disks * 303 int raid_disks = conf->raid_disks; local 2754 raid1_size(struct mddev *mddev, sector_t sectors, int raid_disks) argument 3052 int cnt, raid_disks; local [all...] |
H A D | raid5.h | 401 int raid_disks; member in struct:r5conf
|
H A D | raid10.c | 37 * raid_disks 50 * is at most raid_disks. 112 /* allocate a r10bio with room for raid_disks entries in the 529 * As well as the chunksize and raid_disks count, there are two 531 * near_copies * far_copies must be <= raid_disks. 534 * If near_copies == raid_disks, we get raid1. 562 last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; 566 last_far_set_size += (geo->raid_disks % geo->far_set_size); 574 dev = sector_div(stripe, geo->raid_disks); 593 if ((geo->raid_disks 3432 raid10_size(struct mddev *mddev, sector_t sectors, int raid_disks) argument [all...] |
H A D | raid5.c | 198 static inline int raid6_next_disk(int disk, int raid_disks) argument 201 return (disk < raid_disks) ? disk : 0; 206 * 0 .. raid_disks-3, the parity disk is raid_disks-2 and the Q disk 207 * is raid_disks-1. This help does that mapping. 537 sh->disks = previous ? conf->previous_raid_disks : conf->raid_disks; 613 if (conf->raid_disks >= conf->previous_raid_disks) 617 if (conf->raid_disks == conf->previous_raid_disks) 621 for (i = 0; i < conf->raid_disks; i++) { 635 if (conf->raid_disks < 2229 int raid_disks = previous ? conf->previous_raid_disks local 2420 int raid_disks = sh->disks; local 4761 int raid_disks = conf->previous_raid_disks; local 5582 raid5_size(struct mddev *mddev, sector_t sectors, int raid_disks) argument 5884 only_parity(int raid_disk, int algo, int raid_disks, int max_degraded) argument [all...] |
H A D | md.c | 438 if (!mddev->raid_disks && list_empty(&mddev->disks) && 889 * The first time, mddev->raid_disks will be 0, and data from 973 if (sb->raid_disks <= 0) 1047 if (mddev->raid_disks == 0) { 1058 mddev->raid_disks = sb->raid_disks; 1137 desc->raid_disk < mddev->raid_disks */) { 1164 int next_spare = mddev->raid_disks; 1197 sb->raid_disks = mddev->raid_disks; 5972 update_raid_disks(struct mddev *mddev, int raid_disks) argument [all...] |