Changeset bf0a791 in mainline for uspace/srv/bd/hr/raid5.c
- Timestamp:
- 2024-11-27T11:19:10Z (5 months ago)
- Children:
- 8160e4c0
- Parents:
- aa7864b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/raid5.c
raa7864b rbf0a791 140 140 { 141 141 fibril_mutex_lock(&vol->lock); 142 (void) 142 (void)hr_raid5_update_vol_status(vol); 143 143 fibril_mutex_unlock(&vol->lock); 144 144 } … … 385 385 } 386 386 387 if (extent == (size_t) 387 if (extent == (size_t)bad) { 388 388 /* 389 389 * new parity = read other and xor in new data … … 393 393 memset(xorbuf, 0, len); 394 394 for (i = 1; i < vol->dev_no; i++) { 395 if (i == (size_t) bad) {395 if (i == (size_t)bad) 396 396 continue; 397 397 } else { … … 547 547 retry_read: 548 548 ssize_t bad = hr_raid5_get_bad_ext(vol); 549 if (bad > 0 && extent == (size_t) 549 if (bad > 0 && extent == (size_t)bad) { 550 550 rc = hr_raid5_read_degraded(vol, bad, 551 551 phys_block, data_read, cnt); … … 606 606 607 607 error: 608 (void) 608 (void)hr_raid5_update_vol_status(vol); 609 609 fibril_mutex_unlock(&vol->lock); 610 610 return rc; … … 731 731 hr_write_meta_to_ext(vol, bad); 732 732 end: 733 (void) 733 (void)hr_raid5_update_vol_status(vol); 734 734 735 735 fibril_mutex_unlock(&vol->lock);
Note:
See TracChangeset
for help on using the changeset viewer.