summaryrefslogtreecommitdiffstats
path: root/src/H5Fvfd_swmr.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-04-02 20:53:44 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-04-02 20:53:44 (GMT)
commit40c638dcab8da3aab24fdb754e10dcfa3d7dc7e6 (patch)
tree493d503c0e9facd001f280d3a97fc0eefcadd4d0 /src/H5Fvfd_swmr.c
parent9c957495db6542eb6afec6adeb1a264ca8d9e3bd (diff)
downloadhdf5-40c638dcab8da3aab24fdb754e10dcfa3d7dc7e6.zip
hdf5-40c638dcab8da3aab24fdb754e10dcfa3d7dc7e6.tar.gz
hdf5-40c638dcab8da3aab24fdb754e10dcfa3d7dc7e6.tar.bz2
Remove superfluous whitespace, insert whitespace around / operator,
repair for-loop indentation. NFCI.
Diffstat (limited to 'src/H5Fvfd_swmr.c')
-rw-r--r--src/H5Fvfd_swmr.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/H5Fvfd_swmr.c b/src/H5Fvfd_swmr.c
index 02668bb..0cee83f 100644
--- a/src/H5Fvfd_swmr.c
+++ b/src/H5Fvfd_swmr.c
@@ -485,7 +485,7 @@ H5F_update_vfd_swmr_metadata_file(H5F_t *f, uint32_t num_entries,
HDassert(md_addr % f->shared->fs_page_size == 0);
/* Compute checksum and update the index entry */
- index[i].md_file_page_offset = md_addr/f->shared->fs_page_size;
+ index[i].md_file_page_offset = md_addr / f->shared->fs_page_size;
index[i].chksum = H5_checksum_metadata(index[i].entry_ptr,
index[i].length, 0);
@@ -519,7 +519,6 @@ H5F_update_vfd_swmr_metadata_file(H5F_t *f, uint32_t num_entries,
"error in writing the page/multi-page entry to metadata file")
index[i].entry_ptr = NULL;
-
}
/* Construct and write index to the metadata file */
@@ -550,8 +549,8 @@ H5F_update_vfd_swmr_metadata_file(H5F_t *f, uint32_t num_entries,
if (f->shared->tick_num <= f->shared->vfd_swmr_config.max_lag)
goto done; // It is too early for any reclamations to be due.
- TAILQ_FOREACH_REVERSE_SAFE(shadow_defree, &f->shared->shadow_defrees,
- shadow_defree_queue, link, prev) {
+ TAILQ_FOREACH_REVERSE_SAFE(shadow_defree, &f->shared->shadow_defrees,
+ shadow_defree_queue, link, prev) {
if (shadow_defree->tick_num + f->shared->vfd_swmr_config.max_lag >
f->shared->tick_num) {
@@ -570,7 +569,6 @@ H5F_update_vfd_swmr_metadata_file(H5F_t *f, uint32_t num_entries,
TAILQ_REMOVE(&f->shared->shadow_defrees, shadow_defree, link);
H5FL_FREE(shadow_defree_t, shadow_defree);
-
}
if (queue_was_nonempty && TAILQ_EMPTY(&f->shared->shadow_defrees))