summaryrefslogtreecommitdiffstats
path: root/src/H5ACpkg.h
diff options
context:
space:
mode:
authorQuincey Koziol <quincey@koziol.cc>2023-05-15 18:54:58 (GMT)
committerGitHub <noreply@github.com>2023-05-15 18:54:58 (GMT)
commit940bdafacb32147b5b20d6d8994c89b696592f6f (patch)
tree4bc329c767039f2aef7808104a43f2a840ba8e32 /src/H5ACpkg.h
parent20e72f98b2063aa349cdec8b56ca6e4ab54a15cc (diff)
downloadhdf5-940bdafacb32147b5b20d6d8994c89b696592f6f.zip
hdf5-940bdafacb32147b5b20d6d8994c89b696592f6f.tar.gz
hdf5-940bdafacb32147b5b20d6d8994c89b696592f6f.tar.bz2
Remove unnecessary fields from cache structs (#2951)
* Remove unnecessary 'magic' field from cache structs Signed-off-by: Quincey Koziol <quincey@koziol.cc> * Committing clang-format changes --------- Signed-off-by: Quincey Koziol <quincey@koziol.cc> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/H5ACpkg.h')
-rw-r--r--src/H5ACpkg.h30
1 files changed, 4 insertions, 26 deletions
diff --git a/src/H5ACpkg.h b/src/H5ACpkg.h
index beb7ba7..535eabd 100644
--- a/src/H5ACpkg.h
+++ b/src/H5ACpkg.h
@@ -165,10 +165,6 @@ H5FL_EXTERN(H5AC_aux_t);
*
* JRM -- 1/6/15
*
- * magic: Unsigned 32 bit integer always set to
- * H5AC__H5AC_AUX_T_MAGIC. This field is used to validate
- * pointers to instances of H5AC_aux_t.
- *
* mpi_comm: MPI communicator associated with the file for which the
* cache has been created.
*
@@ -350,52 +346,34 @@ H5FL_EXTERN(H5AC_aux_t);
#ifdef H5_HAVE_PARALLEL
-#define H5AC__H5AC_AUX_T_MAGIC (unsigned)0x00D0A01
-
typedef struct H5AC_aux_t {
- uint32_t magic;
-
MPI_Comm mpi_comm;
-
- int mpi_rank;
-
- int mpi_size;
+ int mpi_rank;
+ int mpi_size;
hbool_t write_permitted;
-
- size_t dirty_bytes_threshold;
-
- size_t dirty_bytes;
-
+ size_t dirty_bytes_threshold;
+ size_t dirty_bytes;
int32_t metadata_write_strategy;
#ifdef H5AC_DEBUG_DIRTY_BYTES_CREATION
-
unsigned dirty_bytes_propagations;
-
size_t unprotect_dirty_bytes;
unsigned unprotect_dirty_bytes_updates;
-
size_t insert_dirty_bytes;
unsigned insert_dirty_bytes_updates;
-
size_t move_dirty_bytes;
unsigned move_dirty_bytes_updates;
-
#endif /* H5AC_DEBUG_DIRTY_BYTES_CREATION */
H5SL_t *d_slist_ptr;
-
H5SL_t *c_slist_ptr;
-
H5SL_t *candidate_slist_ptr;
void (*write_done)(void);
-
void (*sync_point_done)(unsigned num_writes, haddr_t *written_entries_tbl);
unsigned p0_image_len;
-
} H5AC_aux_t; /* struct H5AC_aux_t */
/* Typedefs for debugging function pointers */