Changeset 7fba146 in mainline for uspace/srv/bd/hr/metadata/native.c
- Timestamp:
- 2025-06-09T23:41:50Z (4 months ago)
- Children:
- 6791fbf
- Parents:
- 83ff12f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/metadata/native.c
r83ff12f r7fba146 63 63 static bool meta_native_has_valid_magic(const void *); 64 64 static bool meta_native_compare_uuids(const void *, const void *); 65 static void meta_native_inc_counter( void*);65 static void meta_native_inc_counter(hr_volume_t *); 66 66 static errno_t meta_native_save(hr_volume_t *, bool); 67 67 static const char *meta_native_get_devname(const void *); … … 365 365 } 366 366 367 static void meta_native_inc_counter(void *md_v) 368 { 369 hr_metadata_t *md = md_v; 367 static void meta_native_inc_counter(hr_volume_t *vol) 368 { 369 fibril_mutex_lock(&vol->md_lock); 370 371 hr_metadata_t *md = vol->in_mem_md; 370 372 371 373 md->counter++; 374 375 fibril_mutex_unlock(&vol->md_lock); 372 376 } 373 377 … … 409 413 meta_native_encode(md, md_block); 410 414 rc = meta_native_write_block(ext->svc_id, md_block); 411 if ( with_state_callback && rc != EOK)415 if (rc != EOK && with_state_callback) 412 416 vol->hr_ops.ext_state_cb(vol, i, rc); 413 417 }
Note:
See TracChangeset
for help on using the changeset viewer.