Changeset 234212a in mainline for uspace/srv/bd/hr/util.c


Ignore:
Timestamp:
2025-06-17T13:22:46Z (7 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
f0950d2
Parents:
a62079d
Message:

hr: rename data_dirty to first_write

File:
1 edited

Legend:

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

    ra62079d r234212a  
    152152
    153153        atomic_init(&vol->state_dirty, false);
    154         atomic_init(&vol->data_dirty, false);
     154        atomic_init(&vol->first_write, false);
    155155        atomic_init(&vol->rebuild_blk, 0);
    156156        atomic_init(&vol->open_cnt, 0);
     
    397397}
    398398
    399 void hr_add_ba_offset(hr_volume_t *vol, uint64_t *ba)
     399void hr_add_data_offset(hr_volume_t *vol, uint64_t *ba)
    400400{
    401401        *ba = *ba + vol->data_offset;
     402}
     403
     404void hr_sub_data_offset(hr_volume_t *vol, uint64_t *ba)
     405{
     406        *ba = *ba - vol->data_offset;
    402407}
    403408
Note: See TracChangeset for help on using the changeset viewer.