Home
last modified time | relevance | path

Searched refs:repl_slot (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/drivers/md/
Draid1.c1773 int mirror = 0, repl_slot = -1; in raid1_add_disk() local
1816 p[conf->raid_disks].rdev == NULL && repl_slot < 0) in raid1_add_disk()
1817 repl_slot = mirror; in raid1_add_disk()
1820 if (err && repl_slot >= 0) { in raid1_add_disk()
1822 p = conf->mirrors + repl_slot; in raid1_add_disk()
1825 rdev->raid_disk = repl_slot; in raid1_add_disk()
Draid10.c2147 int mirror, repl_slot = -1; in raid10_add_disk() local
2178 p->replacement == NULL && repl_slot < 0) in raid10_add_disk()
2179 repl_slot = mirror; in raid10_add_disk()
2197 if (err && repl_slot >= 0) { in raid10_add_disk()
2198 p = &conf->mirrors[repl_slot]; in raid10_add_disk()
2201 rdev->raid_disk = repl_slot; in raid10_add_disk()