Changeset bf0a791 in mainline for uspace/srv/bd/hr/raid5.c


Ignore:
Timestamp:
2024-11-27T11:19:10Z (5 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
8160e4c0
Parents:
aa7864b
Message:

hr: cstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/raid5.c

    raa7864b rbf0a791  
    140140{
    141141        fibril_mutex_lock(&vol->lock);
    142         (void) hr_raid5_update_vol_status(vol);
     142        (void)hr_raid5_update_vol_status(vol);
    143143        fibril_mutex_unlock(&vol->lock);
    144144}
     
    385385        }
    386386
    387         if (extent == (size_t) bad) {
     387        if (extent == (size_t)bad) {
    388388                /*
    389389                 * new parity = read other and xor in new data
     
    393393                memset(xorbuf, 0, len);
    394394                for (i = 1; i < vol->dev_no; i++) {
    395                         if (i == (size_t) bad) {
     395                        if (i == (size_t)bad)
    396396                                continue;
    397397                        } else {
     
    547547                retry_read:
    548548                        ssize_t bad = hr_raid5_get_bad_ext(vol);
    549                         if (bad > 0 && extent == (size_t) bad) {
     549                        if (bad > 0 && extent == (size_t)bad) {
    550550                                rc = hr_raid5_read_degraded(vol, bad,
    551551                                    phys_block, data_read, cnt);
     
    606606
    607607error:
    608         (void) hr_raid5_update_vol_status(vol);
     608        (void)hr_raid5_update_vol_status(vol);
    609609        fibril_mutex_unlock(&vol->lock);
    610610        return rc;
     
    731731        hr_write_meta_to_ext(vol, bad);
    732732end:
    733         (void) hr_raid5_update_vol_status(vol);
     733        (void)hr_raid5_update_vol_status(vol);
    734734
    735735        fibril_mutex_unlock(&vol->lock);
Note: See TracChangeset for help on using the changeset viewer.