Lines Matching refs:failed_devices
1934 __le64 failed_devices; /* Pre 1.9.0 part of bit field of devices to */ member
2055 static void sb_retrieve_failed_devices(struct dm_raid_superblock *sb, uint64_t *failed_devices) in sb_retrieve_failed_devices() argument
2057 failed_devices[0] = le64_to_cpu(sb->failed_devices); in sb_retrieve_failed_devices()
2058 memset(failed_devices + 1, 0, sizeof(sb->extended_failed_devices)); in sb_retrieve_failed_devices()
2064 failed_devices[i+1] = le64_to_cpu(sb->extended_failed_devices[i]); in sb_retrieve_failed_devices()
2068 static void sb_update_failed_devices(struct dm_raid_superblock *sb, uint64_t *failed_devices) in sb_update_failed_devices() argument
2072 sb->failed_devices = cpu_to_le64(failed_devices[0]); in sb_update_failed_devices()
2074 sb->extended_failed_devices[i] = cpu_to_le64(failed_devices[i+1]); in sb_update_failed_devices()
2086 uint64_t failed_devices[DISKS_ARRAY_ELEMS]; in super_sync() local
2098 sb_retrieve_failed_devices(sb, failed_devices); in super_sync()
2103 set_bit(i, (void *) failed_devices); in super_sync()
2107 sb_update_failed_devices(sb, failed_devices); in super_sync()
2214 uint64_t failed_devices[DISKS_ARRAY_ELEMS]; in super_init_validation() local
2379 sb_retrieve_failed_devices(sb, failed_devices); in super_init_validation()
2385 sb2->failed_devices = 0; in super_init_validation()
2421 if (test_bit(role, (void *) failed_devices)) in super_init_validation()
3868 uint64_t failed_devices[DISKS_ARRAY_ELEMS]; in attempt_restore_of_faulty_devices() local
3875 sb_retrieve_failed_devices(sb, failed_devices); in attempt_restore_of_faulty_devices()
3878 failed_devices[i] &= ~cleared_failed_devices[i]; in attempt_restore_of_faulty_devices()
3880 sb_update_failed_devices(sb, failed_devices); in attempt_restore_of_faulty_devices()