Changeset c76bf33 in mainline


Ignore:
Timestamp:
2025-07-05T23:02:28Z (2 weeks ago)
Author:
Miroslav Cimerman <mc@…>
Children:
3b14bda
Parents:
974f9ba
Message:

hr: raid1.c: update rebuild extent's last seek pos

File:
1 edited

Legend:

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

    r974f9ba rc76bf33  
    305305
    306306#ifdef HR_RAID1_READ_STRATEGY_SPLIT
     307
    307308static size_t hr_raid1_count_good_r_extents(hr_volume_t *vol, uint64_t ba,
    308309    size_t cnt, uint64_t rebuild_blk)
     
    322323        return count;
    323324}
    324 #endif
     325
     326#endif /* HR_RAID1_READ_STRATEGY_SPLIT */
    325327
    326328#ifdef HR_RAID1_READ_STRATEGY_CLOSEST
     329
    327330static size_t get_ext(hr_volume_t *vol, uint64_t ba, size_t cnt,
    328331    uint64_t rebuild_blk)
     
    686689                        goto end;
    687690                }
     691                atomic_store_explicit(&vol->last_ext_pos_arr[rebuild_idx],
     692                    ba + cnt - 1, memory_order_relaxed);
    688693
    689694                percent = ((ba + cnt) * 100) / vol->data_blkno;
Note: See TracChangeset for help on using the changeset viewer.