Lines Matching refs:disk
135 /* Find first data disk in a raid6 stripe */
147 static inline int raid6_next_disk(int disk, int raid_disks)
149 disk++;
150 return (disk < raid_disks) ? disk : 0;
154 * We need to map each disk to a 'slot', where the data disks are slot
155 * 0 .. raid_disks-3, the parity disk is raid_disks-2 and the Q disk
913 /* Q disk is one of the missing disks */
1723 * Output: index of the data and parity disk, and the sector # in them.
1758 * Select the parity disk based on the user selected algorithm.
1977 return 0; /* It is the Q disk */
2111 /* keep the parity disk(s) locked while asynchronous operations
2172 pr_debug("added bi b#%llu to stripe s#%llu, disk %d.\n",
2338 * otherwise read it if the backing disk is insync
2411 * otherwise read it if the backing disk is insync
2418 /* have disk failed, and we're requested to fetch it;
2820 /* we have 2-disk failure */
3158 * be written back to disk
3455 * be written back to disk
4830 struct disk_info *disk;
4906 disk = conf->disks + raid_disk;
4908 disk->rdev = rdev;
4913 " disk %d\n",
5321 printk(KERN_DEBUG " disk %d, o:%d, dev:%s\n",
5398 int disk;
5411 * find the disk ... but prefer rdev->saved_raid_disk
5417 disk = rdev->saved_raid_disk;
5419 disk = first;
5420 for ( ; disk <= last ; disk++)
5421 if ((p=conf->disks + disk)->rdev == NULL) {
5423 rdev->raid_disk = disk;
5425 if (rdev->saved_raid_disk != disk)