Lines Matching refs:spares
1137 * for spares (which don't need an event count) */
1539 * spares (which don't need an event count) */
1763 /* skip spares and non-functional disks */
1808 if (rdev->raid_disk < 0) /* skip spares */
2142 * if we are allowed to, skip spares which already
2195 /* just a clean<-> dirty transition, possibly leave spares alone,
2197 * spares after all
2203 /* If the array is degraded, then skipping spares is both
2208 * Pointless because if there are any spares to skip,
5137 * to add "hot spares". They must already have a superblock
6996 int spares = 0;
7020 spares++;
7031 spares++;
7039 return spares;
7058 * 3/ If recovery has finished, clean up, possibly marking spares active.
7060 * 5/ If array is degraded, try to add spares devices
7061 * 6/ If array has spares or is not in-sync, start a resync thread.
7096 int spares = 0;
7141 /* activate any spares */
7180 * add spares if possible.
7192 } else if ((spares = remove_and_add_spares(mddev))) {
7205 if (spares && mddev->bitmap && ! mddev->bitmap->file) {
7219 /* leave the spares where they are, it shouldn't hurt */