Changeset bf0a791 in mainline for uspace/srv/bd/hr/raid4.c
- Timestamp:
- 2024-11-27T11:19:10Z (8 months ago)
- Children:
- 8160e4c0
- Parents:
- aa7864b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/raid4.c
raa7864b rbf0a791 143 143 { 144 144 fibril_mutex_lock(&vol->lock); 145 (void) 145 (void)hr_raid4_update_vol_status(vol); 146 146 fibril_mutex_unlock(&vol->lock); 147 147 } … … 387 387 } 388 388 389 if (extent == (size_t) 389 if (extent == (size_t)bad) { 390 390 /* 391 391 * new parity = read other and xor in new data … … 395 395 memset(xorbuf, 0, len); 396 396 for (i = 1; i < vol->dev_no; i++) { 397 if (i == (size_t) bad) {397 if (i == (size_t)bad) 398 398 continue; 399 399 } else { … … 545 545 retry_read: 546 546 ssize_t bad = hr_raid4_get_bad_ext(vol); 547 if (bad > 0 && extent == (size_t) 547 if (bad > 0 && extent == (size_t)bad) { 548 548 rc = hr_raid4_read_degraded(vol, bad, 549 549 phys_block, data_read, cnt); … … 600 600 601 601 error: 602 (void) 602 (void)hr_raid4_update_vol_status(vol); 603 603 fibril_mutex_unlock(&vol->lock); 604 604 return rc; … … 725 725 hr_write_meta_to_ext(vol, bad); 726 726 end: 727 (void) 727 (void)hr_raid4_update_vol_status(vol); 728 728 729 729 fibril_mutex_unlock(&vol->lock);
Note:
See TracChangeset
for help on using the changeset viewer.