Lines Matching refs:disk
118 /* Find first data disk in a raid6 stripe */
130 static inline int raid6_next_disk(int disk, int raid_disks)
132 disk++;
133 return (disk < raid_disks) ? disk : 0;
137 * We need to map each disk to a 'slot', where the data disks are slot
138 * 0 .. raid_disks-3, the parity disk is raid_disks-2 and the Q disk
1788 /* Q disk is one of the missing disks */
2998 * Output: index of the data and parity disk, and the sector # in them.
3033 * Select the parity disk based on the user selected algorithm.
3250 return 0; /* It is the Q disk */
3460 /* keep the parity disk(s) locked while asynchronous operations
3590 pr_debug("added bi b#%llu to stripe s#%llu, disk %d, logical %llu\n",
3910 /* In max degraded raid6, If the failed disk is P, Q,
3911 * or we want to read the failed disk, we need to do
3953 * otherwise read it if the backing disk is insync
3960 * In the raid6 case if the only non-uptodate disk is P
3972 /* have disk failed, and we're requested to fetch it;
4500 /* we have 2-disk failure */
4539 "%s: disk%td not up to date\n",
5102 * be written back to disk
5171 * and raid disk), this is the clean up procedure so it is ready for
6114 /* We pass in fake stripe_head to get back parity disk numbers */
6120 * Bio crosses to the next data disk. Check whether it's in the same
7495 struct disk_info *disk;
7651 disk = conf->disks + raid_disk;
7654 if (disk->replacement)
7656 RCU_INIT_POINTER(disk->replacement, rdev);
7658 if (disk->rdev)
7660 RCU_INIT_POINTER(disk->rdev, rdev);
7664 pr_info("md/raid:%s: device %pg operational as raid disk %d\n",
7930 pr_warn("md/raid:%s: journal disk is missing, force array readonly\n",
8068 * discard data disk but write parity disk
8087 * discard_zeroes_data is 0); write one disk of the
8090 * parity); the disk is broken; The stripe data of this
8091 * disk is lost.
8170 pr_debug(" disk %d, o:%d, dev:%pg\n",
8319 int disk;
8355 * find the disk ... but prefer rdev->saved_raid_disk
8363 for (disk = first; disk <= last; disk++) {
8364 p = conf->disks + disk;
8367 rdev->raid_disk = disk;
8368 if (rdev->saved_raid_disk != disk)
8377 for (disk = first; disk <= last; disk++) {
8378 p = conf->disks + disk;
8385 rdev->raid_disk = disk;