Home
last modified time | relevance | path

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

/linux-6.12.1/include/uapi/linux/raid/
Dmd_p.h302 __le16 dev_roles[]; /* role in array, or 0xffff for a spare, or 0xfffe for faulty */ member
/linux-6.12.1/drivers/md/
Dmd.c1770 (le16_to_cpu(sb->dev_roles[rdev->desc_nr]) < MD_DISK_ROLE_MAX || in super_1_load()
1771 le16_to_cpu(sb->dev_roles[rdev->desc_nr]) == MD_DISK_ROLE_JOURNAL)) in super_1_load()
1913 (le16_to_cpu(sb->dev_roles[rdev->desc_nr]) < MD_DISK_ROLE_MAX || in super_1_validate()
1914 le16_to_cpu(sb->dev_roles[rdev->desc_nr]) == MD_DISK_ROLE_JOURNAL)) in super_1_validate()
1961 role = le16_to_cpu(freshest_sb->dev_roles[rdev->desc_nr]); in super_1_validate()
1965 role = le16_to_cpu(sb->dev_roles[rdev->desc_nr]); in super_1_validate()
2149 sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_SPARE); in super_1_sync()
2167 sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_FAULTY); in super_1_sync()
2169 sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk); in super_1_sync()
2171 sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_JOURNAL); in super_1_sync()
[all …]