summaryrefslogtreecommitdiffstats
path: root/src/H5FSsection.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-07-27 23:39:48 (GMT)
committerGitHub <noreply@github.com>2023-07-27 23:39:48 (GMT)
commit38e234b620595f3eac5ff68dd71d4b29cfd46b18 (patch)
tree905658547118279ea17cab8ffac2820d865b3b92 /src/H5FSsection.c
parente286b6e706b28330a64115c13c11ae832536b857 (diff)
downloadhdf5-38e234b620595f3eac5ff68dd71d4b29cfd46b18.zip
hdf5-38e234b620595f3eac5ff68dd71d4b29cfd46b18.tar.gz
hdf5-38e234b620595f3eac5ff68dd71d4b29cfd46b18.tar.bz2
Convert H5F_addr calls to H5_addr (#3297)
Diffstat (limited to 'src/H5FSsection.c')
-rw-r--r--src/H5FSsection.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/H5FSsection.c b/src/H5FSsection.c
index be2d8e9..fbe07ff 100644
--- a/src/H5FSsection.c
+++ b/src/H5FSsection.c
@@ -237,10 +237,10 @@ H5FS__sinfo_lock(H5F_t *f, H5FS_t *fspace, unsigned accmode)
} /* end if */
else {
/* If the section address is defined, load it from the file */
- if (H5F_addr_defined(fspace->sect_addr)) {
+ if (H5_addr_defined(fspace->sect_addr)) {
/* Sanity check */
assert(fspace->sinfo_protected == FALSE);
- assert(H5F_addr_defined(fspace->addr));
+ assert(H5_addr_defined(fspace->addr));
#ifdef H5FS_SINFO_DEBUG
fprintf(stderr, "%s: Reading in existing sections, fspace->sect_addr = %" PRIuHADDR "\n",
@@ -376,7 +376,7 @@ H5FS__sinfo_unlock(H5F_t *f, H5FS_t *fspace, hbool_t modified)
unsigned cache_flags = H5AC__NO_FLAGS_SET; /* Flags for unprotecting heap */
/* Sanity check */
- assert(H5F_addr_defined(fspace->addr));
+ assert(H5_addr_defined(fspace->addr));
/* Check if we've made new changes to the section info while locked */
if (fspace->sinfo_modified) {
@@ -398,7 +398,7 @@ H5FS__sinfo_unlock(H5F_t *f, H5FS_t *fspace, hbool_t modified)
} /* end if */
/* Sanity check */
- assert(H5F_addr_defined(fspace->sect_addr));
+ assert(H5_addr_defined(fspace->sect_addr));
/* Unprotect section info in cache */
/* (Possibly dirty) */
@@ -432,7 +432,7 @@ H5FS__sinfo_unlock(H5F_t *f, H5FS_t *fspace, hbool_t modified)
/* Check if the section info was modified */
if (fspace->sinfo_modified) {
/* Check if we need to release section info in the file */
- if (H5F_addr_defined(fspace->sect_addr)) {
+ if (H5_addr_defined(fspace->sect_addr)) {
/* Set flag to release section info space in file */
/* On file close or flushing, only need to release section info with size
bigger than previous section */
@@ -451,7 +451,7 @@ H5FS__sinfo_unlock(H5F_t *f, H5FS_t *fspace, hbool_t modified)
} /* end if */
else {
/* Sanity checks... */
- if (H5F_addr_defined(fspace->sect_addr))
+ if (H5_addr_defined(fspace->sect_addr))
assert(fspace->alloc_sect_size == fspace->sect_size);
else
assert(fspace->alloc_sect_size == 0);
@@ -467,7 +467,7 @@ H5FS__sinfo_unlock(H5F_t *f, H5FS_t *fspace, hbool_t modified)
hsize_t old_alloc_sect_size = fspace->alloc_sect_size; /* Previous size of section info in file */
/* Sanity check */
- assert(H5F_addr_defined(fspace->addr));
+ assert(H5_addr_defined(fspace->addr));
/* Reset section info in header */
fspace->sect_addr = HADDR_UNDEF;
@@ -923,7 +923,7 @@ H5FS__sect_link_size(H5FS_sinfo_t *sinfo, const H5FS_section_class_t *cls, H5FS_
/* Check arguments. */
assert(sinfo);
assert(sect);
- assert(H5F_addr_defined(sect->addr));
+ assert(H5_addr_defined(sect->addr));
assert(sect->size);
/* Determine correct bin which holds items of the section's size */
@@ -1104,7 +1104,7 @@ H5FS__sect_merge(H5FS_t *fspace, H5FS_section_info_t **sect, void *op_data)
/* Check arguments. */
assert(fspace);
assert(*sect);
- assert(H5F_addr_defined((*sect)->addr));
+ assert(H5_addr_defined((*sect)->addr));
assert((*sect)->size);
/* Loop until no more merging */
@@ -1304,7 +1304,7 @@ H5FS_sect_add(H5F_t *f, H5FS_t *fspace, H5FS_section_info_t *sect, unsigned flag
/* Check arguments. */
assert(fspace);
assert(sect);
- assert(H5F_addr_defined(sect->addr));
+ assert(H5_addr_defined(sect->addr));
assert(sect->size);
/* Get a pointer to the section info */
@@ -1387,7 +1387,7 @@ H5FS_sect_try_extend(H5F_t *f, H5FS_t *fspace, haddr_t addr, hsize_t size, hsize
/* Check arguments. */
assert(f);
assert(fspace);
- assert(H5F_addr_defined(addr));
+ assert(H5_addr_defined(addr));
assert(size > 0);
assert(extra_requested > 0);
@@ -1520,7 +1520,7 @@ H5FS_sect_try_merge(H5F_t *f, H5FS_t *fspace, H5FS_section_info_t *sect, unsigne
assert(f);
assert(fspace);
assert(sect);
- assert(H5F_addr_defined(sect->addr));
+ assert(H5_addr_defined(sect->addr));
assert(sect->size);
/* Get a pointer to the section info */
@@ -1645,7 +1645,7 @@ H5FS__sect_find_node(H5FS_t *fspace, hsize_t request, H5FS_section_info_t **node
/* Get section node */
curr_sect = (H5FS_section_info_t *)H5SL_item(curr_sect_node);
- assert(H5F_addr_defined(curr_sect->addr));
+ assert(H5_addr_defined(curr_sect->addr));
assert(curr_fspace_node->sect_size == curr_sect->size);
cls = &fspace->sect_cls[curr_sect->type];
@@ -2132,7 +2132,7 @@ H5FS__sect_assert(const H5FS_t *fspace)
cls = &fspace->sect_cls[sect->type];
/* Sanity check section */
- assert(H5F_addr_defined(sect->addr));
+ assert(H5_addr_defined(sect->addr));
assert(fspace_node->sect_size == sect->size);
if (cls->valid)
(*cls->valid)(cls, sect);
@@ -2335,7 +2335,7 @@ H5FS_vfd_alloc_hdr_and_section_info_if_needed(H5F_t *f, H5FS_t *fspace, haddr_t
if (fspace->serial_sect_count > 0 && fspace->sinfo) {
/* the section info is floating, so space->sinfo should be defined */
- if (!H5F_addr_defined(fspace->addr)) {
+ if (!H5_addr_defined(fspace->addr)) {
/* start by allocating file space for the header */
@@ -2364,7 +2364,7 @@ H5FS_vfd_alloc_hdr_and_section_info_if_needed(H5F_t *f, H5FS_t *fspace, haddr_t
*fs_addr_ptr = fspace->addr;
}
- if (!H5F_addr_defined(fspace->sect_addr)) {
+ if (!H5_addr_defined(fspace->sect_addr)) {
/* now allocate file space for the section info */