Changeset e0622a6 in mainline for uspace/srv/bd
- Timestamp:
- 2025-06-10T01:23:06Z (5 months ago)
- Children:
- a62079d
- Parents:
- 13ada52
- File:
- 
      - 1 edited
 
 - 
          
  uspace/srv/bd/hr/raid1.c (modified) (3 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      uspace/srv/bd/hr/raid1.cr13ada52 re0622a6 153 153 154 154 bool exp = true; 155 156 155 if (!atomic_compare_exchange_strong(&vol->state_dirty, &exp, false)) 157 156 return; … … 330 329 return EIO; 331 330 332 if (!vol->data_dirty && type == HR_BD_WRITE) { 331 /* increment metadata counter only on first write */ 332 bool exp = false; 333 if (type == HR_BD_WRITE && 334 atomic_compare_exchange_strong(&vol->data_dirty, &exp, true)) { 333 335 vol->meta_ops->inc_counter(vol); 334 vol-> data_dirty = true;336 vol->meta_ops->save(vol, WITH_STATE_CALLBACK); 335 337 } 336 338 … … 497 499 fibril_rwlock_read_lock(&vol->extents_lock); 498 500 501 /* increment metadata counter only on first write */ 502 bool exp = false; 503 if (atomic_compare_exchange_strong(&vol->data_dirty, &exp, true)) { 504 vol->meta_ops->inc_counter(vol); 505 vol->meta_ops->save(vol, WITH_STATE_CALLBACK); 506 } 507 499 508 hr_range_lock_t *rl = NULL; 500 509 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
