Searched refs:disks (Results 26 - 36 of 36) sorted by relevance

12

/linux-master/drivers/md/
H A Draid5.h215 int disks; /* disks in stripe */ member in struct:stripe_head
216 int overwrite_disks; /* total overwrite disks in stripe,
271 } dev[]; /* allocated depending of RAID geometry ("disks" member) */
674 int pool_size; /* number of disks in stripeheads in pool */
676 struct disk_info *disks; member in struct:r5conf
H A Dmd-autodetect.c180 if (!list_empty(&mddev->disks) || mddev->raid_disks) {
H A Dmd.c692 if (mddev->raid_disks || !list_empty(&mddev->disks) ||
748 INIT_LIST_HEAD(&mddev->disks);
1320 sb->disks[rdev->desc_nr].state & ((1<<MD_DISK_SYNC) | (1 << MD_DISK_ACTIVE)))
1449 if (sb->disks[rdev->desc_nr].state & (
1467 desc = sb->disks + rdev->desc_nr;
1503 * 1/ zero out disks
1505 * 3/ any empty disks < next_spare become removed
1507 * disks[0] gets initialised to REMOVED because
1567 sb->disks[0].state = (1<<MD_DISK_REMOVED);
1588 d = &sb->disks[rdev
[all...]
H A Draid10.c819 /* At least 2 disks to choose from so failfast is OK */
1903 int disks, ncopies; local
1905 disks = conf->prev.raid_disks;
1908 disks = conf->geo.raid_disks;
1922 this = (this+1) % disks;
1926 first = (first + ncopies) % disks;
2030 * Find all non-in_sync disks within the RAID10 configuration
3816 int layout, chunk, disks; local
3821 disks = mddev->raid_disks - mddev->delta_disks;
3826 disks
[all...]
H A Draid1.c529 * disks. Setting the Returned bit ensures that this
783 /* At least two disks to choose from so failfast is OK */
826 * If all disks are rotational, choose the closest disk. If any disk is
829 * mixed ratation/non-rotational disks depending on workload.
844 * 2) Now that there is no resync, loop through all disks and skipping slow
845 * disks and disks with bad blocks for now. Only pay attention to key disk
848 * 3) If we've made it this far, now look for disks with bad blocks and choose
1427 int i, disks; local
1483 disks
2328 int disks = conf->raid_disks * 2; local
[all...]
H A Dmd-bitmap.c168 /* Iterate the disks of an mddev, using rcu to protect access to the
184 rdev = list_entry(&mddev->disks, struct md_rdev, same_set);
189 list_for_each_entry_continue_rcu(rdev, &mddev->disks, same_set) {
H A Ddm-raid.c903 list_add_tail(&rs->dev[i].rdev.same_set, &rs->md.disks);
909 list_add_tail(&rs->journal_dev.rdev.same_set, &rs->md.disks);
1392 /* Define the +/-# of disks to add to/remove from the given raid set */
1651 rs->ti->error = "Bogus raid10 data copies or delta disks";
1748 /* raid0 with multiple disks -> raid4/5/6 */
1765 /* Can takeover raid10_near with raid disks divisable by data copies! */
1786 /* raid10_{near,far} with 2 disks -> raid4/5 */
1793 /* raid1 with 2 disks -> raid4/5 */
1815 /* raid4 -> raid1/5 with 2 disks */
1837 /* raid5 with 2 disks
[all...]
/linux-master/include/uapi/linux/raid/
H A Dmd_p.h32 * 128 - 511 12 32-words descriptors of the disks in the raid set.
144 __u32 nr_disks; /* 9 total disks in the raid set */
145 __u32 raid_disks; /* 10 disks in a fully functional raid set */
158 __u32 active_disks; /* 2 Number of currently active disks */
159 __u32 working_disks; /* 3 Number of working disks */
160 __u32 failed_disks; /* 4 Number of failed disks */
161 __u32 spare_disks; /* 5 Number of spare disks */
197 mdp_disk_t disks[MD_SB_DISKS]; member in struct:mdp_superblock_s
/linux-master/drivers/block/
H A Dfloppy.c87 /* 1995/4/24 -- Dan Fandrich -- added support for Commodore 1581 3.5" disks
423 * The LSB (bit 2) is flipped. For most disks, the first sector
425 * disks (such as Ensoniq EPS 16plus) it is 0 (represented as 0x01<<2).
426 * For Amstrad CPC disks it is 0xC1 (represented as 0xC0<<2).
478 static struct gendisk *disks[N_DRIVE][ARRAY_SIZE(floppy_type)]; variable in typeref:struct:gendisk
2586 /* 2M disks have phantom sectors on the first track */
3417 * We do this in order to provide a means to eject floppy disks before
4049 set_capacity(disks[drive][ITYPE(new_dev)], floppy_sizes[new_dev]);
4541 disks[drive][type] = disk;
4557 if (disks[driv
[all...]
H A Dswim3.c12 * handle GCR disks
42 static struct gendisk *disks[MAX_FLOPPIES]; variable in typeref:struct:gendisk
842 struct request_queue *q = disks[fs->index]->queue;
1236 disks[floppy_count++] = disk;
/linux-master/fs/bcachefs/
H A Dec.c33 static void raid5_recov(unsigned disks, unsigned failed_idx, argument
38 BUG_ON(failed_idx >= disks);
43 while (i < disks) {
44 nr = min_t(unsigned, disks - i, MAX_XOR_BLOCKS);

Completed in 228 milliseconds

12