Changeset 234212a in mainline for uspace/srv/bd/hr/util.c
- Timestamp:
- 2025-06-17T13:22:46Z (7 months ago)
- Children:
- f0950d2
- Parents:
- a62079d
- File:
-
- 1 edited
-
uspace/srv/bd/hr/util.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/util.c
ra62079d r234212a 152 152 153 153 atomic_init(&vol->state_dirty, false); 154 atomic_init(&vol-> data_dirty, false);154 atomic_init(&vol->first_write, false); 155 155 atomic_init(&vol->rebuild_blk, 0); 156 156 atomic_init(&vol->open_cnt, 0); … … 397 397 } 398 398 399 void hr_add_ ba_offset(hr_volume_t *vol, uint64_t *ba)399 void hr_add_data_offset(hr_volume_t *vol, uint64_t *ba) 400 400 { 401 401 *ba = *ba + vol->data_offset; 402 } 403 404 void hr_sub_data_offset(hr_volume_t *vol, uint64_t *ba) 405 { 406 *ba = *ba - vol->data_offset; 402 407 } 403 408
Note:
See TracChangeset
for help on using the changeset viewer.
