Home
last modified time | relevance | path

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

/Linux-v5.15/include/uapi/linux/raid/
Dmd_p.h306 __le16 dev_roles[0]; /* role in array, or 0xffff for a spare, or 0xfffe for faulty */ member
/Linux-v5.15/drivers/md/
Dmd.c1760 (le16_to_cpu(sb->dev_roles[rdev->desc_nr]) < MD_DISK_ROLE_MAX || in super_1_load()
1761 le16_to_cpu(sb->dev_roles[rdev->desc_nr]) == MD_DISK_ROLE_JOURNAL))) in super_1_load()
1901 (le16_to_cpu(sb->dev_roles[rdev->desc_nr]) < MD_DISK_ROLE_MAX || in super_1_validate()
1902 le16_to_cpu(sb->dev_roles[rdev->desc_nr]) == MD_DISK_ROLE_JOURNAL)) in super_1_validate()
1925 role = le16_to_cpu(sb->dev_roles[rdev->desc_nr]); in super_1_validate()
2110 sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_SPARE); in super_1_sync()
2128 sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_FAULTY); in super_1_sync()
2130 sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk); in super_1_sync()
2132 sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_JOURNAL); in super_1_sync()
2134 sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk); in super_1_sync()
[all …]