diff options
author | David Young <dyoung@hdfgroup.org> | 2020-04-02 20:53:02 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-04-02 20:53:02 (GMT) |
commit | 9c957495db6542eb6afec6adeb1a264ca8d9e3bd (patch) | |
tree | eb78f9eac40078879248916957fef905fa64e654 | |
parent | 9b5384b43661d01c158b38808df7ab0a2430303f (diff) | |
download | hdf5-9c957495db6542eb6afec6adeb1a264ca8d9e3bd.zip hdf5-9c957495db6542eb6afec6adeb1a264ca8d9e3bd.tar.gz hdf5-9c957495db6542eb6afec6adeb1a264ca8d9e3bd.tar.bz2 |
Update comments, shorten comments, remove superfluous comments.
-rw-r--r-- | src/H5Fvfd_swmr.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/H5Fvfd_swmr.c b/src/H5Fvfd_swmr.c index b30c721..02668bb 100644 --- a/src/H5Fvfd_swmr.c +++ b/src/H5Fvfd_swmr.c @@ -435,12 +435,8 @@ herr_t H5F_update_vfd_swmr_metadata_file(H5F_t *f, uint32_t num_entries, H5FD_vfd_swmr_idx_entry_t *index) { - shadow_defree_t *prev; /* Points to the previous entry - * in the delayed list - */ - shadow_defree_t *shadow_defree; /* Points to an entry in the - * delayed list - */ + shadow_defree_t *prev; + shadow_defree_t *shadow_defree; haddr_t md_addr; /* Address in the metadata file */ unsigned i; /* Local index variable */ herr_t ret_value = SUCCEED; /* Return value */ @@ -451,9 +447,7 @@ H5F_update_vfd_swmr_metadata_file(H5F_t *f, uint32_t num_entries, /* Sort index entries by increasing offset in the HDF5 file */ if (num_entries > 0) { HDqsort(index, num_entries, sizeof(*index), H5F__idx_entry_cmp); - /* Assert that there are not any HDF5 page offsets duplicated in - * here. - */ + /* Assert that no HDF5 page offsets are duplicated. */ for (i = 1; i < num_entries; i++) assert(index[i - 1].hdf5_page_offset < index[i].hdf5_page_offset); } @@ -524,7 +518,6 @@ H5F_update_vfd_swmr_metadata_file(H5F_t *f, uint32_t num_entries, HGOTO_ERROR(H5E_FILE, H5E_WRITEERROR, FAIL, \ "error in writing the page/multi-page entry to metadata file") - /* Set entry_ptr to NULL */ index[i].entry_ptr = NULL; } @@ -574,10 +567,8 @@ H5F_update_vfd_swmr_metadata_file(H5F_t *f, uint32_t num_entries, "released %" PRIu32 " bytes at %" PRIu64, shadow_defree->length, shadow_defree->offset); - /* Remove the entry from the delayed list */ TAILQ_REMOVE(&f->shared->shadow_defrees, shadow_defree, link); - /* Free the delayed entry struct */ H5FL_FREE(shadow_defree_t, shadow_defree); } @@ -618,9 +609,9 @@ done: * index. * * If the entry doesn't exist, the function sets - * *delay_write_until_ptr to the current tick plus max_lag. + * *untilp to the current tick plus max_lag. * - * If the entry exists, the function sets *delay_write_until_ptr + * If the entry exists, the function sets *untilp * equal to the entries delayed flush field if it is greater than * or equal to the current tick, or zero otherwise. * |