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


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

hr: cstyle

File:
1 edited

Legend:

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

    raa7864b rbf0a791  
    143143{
    144144        fibril_mutex_lock(&vol->lock);
    145         (void) hr_raid4_update_vol_status(vol);
     145        (void)hr_raid4_update_vol_status(vol);
    146146        fibril_mutex_unlock(&vol->lock);
    147147}
     
    387387        }
    388388
    389         if (extent == (size_t) bad) {
     389        if (extent == (size_t)bad) {
    390390                /*
    391391                 * new parity = read other and xor in new data
     
    395395                memset(xorbuf, 0, len);
    396396                for (i = 1; i < vol->dev_no; i++) {
    397                         if (i == (size_t) bad) {
     397                        if (i == (size_t)bad)
    398398                                continue;
    399399                        } else {
     
    545545                retry_read:
    546546                        ssize_t bad = hr_raid4_get_bad_ext(vol);
    547                         if (bad > 0 && extent == (size_t) bad) {
     547                        if (bad > 0 && extent == (size_t)bad) {
    548548                                rc = hr_raid4_read_degraded(vol, bad,
    549549                                    phys_block, data_read, cnt);
     
    600600
    601601error:
    602         (void) hr_raid4_update_vol_status(vol);
     602        (void)hr_raid4_update_vol_status(vol);
    603603        fibril_mutex_unlock(&vol->lock);
    604604        return rc;
     
    725725        hr_write_meta_to_ext(vol, bad);
    726726end:
    727         (void) hr_raid4_update_vol_status(vol);
     727        (void)hr_raid4_update_vol_status(vol);
    728728
    729729        fibril_mutex_unlock(&vol->lock);
Note: See TracChangeset for help on using the changeset viewer.