summaryrefslogtreecommitdiffstats
path: root/src/H5Dpkg.h
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2016-01-12 01:49:41 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2016-01-12 01:49:41 (GMT)
commitac8263fcc7cf5e8aafccbebadafb92c4ce6505a8 (patch)
treeecfd893a79f9d9b6981abbf6c295bfc8f750ce91 /src/H5Dpkg.h
parent994401b905680598db47e154e5123b8838f1f1c8 (diff)
downloadhdf5-ac8263fcc7cf5e8aafccbebadafb92c4ce6505a8.zip
hdf5-ac8263fcc7cf5e8aafccbebadafb92c4ce6505a8.tar.gz
hdf5-ac8263fcc7cf5e8aafccbebadafb92c4ce6505a8.tar.bz2
[svn-r28859] Merge of r28762, 28770-82, 28791-28806, 28816-28836, 28857
from revise_chunks. This is basically all the revise_chunks changes since alpha0 aside from the v2 B-tree changes that cause SWMR to fail. This merge should also bring the alpha branch in sync with the trunk. Tested on: 64-bit Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 autotools serial w/ C++ and Fortran autotools parallel w/ Fortran (MPICH 3.1.4) cmake serial (cmakehdf5) w/ C++ and Fortran
Diffstat (limited to 'src/H5Dpkg.h')
-rw-r--r--src/H5Dpkg.h31
1 files changed, 1 insertions, 30 deletions
diff --git a/src/H5Dpkg.h b/src/H5Dpkg.h
index da6b61e..15e0a93 100644
--- a/src/H5Dpkg.h
+++ b/src/H5Dpkg.h
@@ -404,6 +404,7 @@ typedef struct H5D_virtual_held_file_t {
} H5D_virtual_held_file_t;
/* The raw data chunk cache */
+struct H5D_rdcc_ent_t; /* Forward declaration of struct used below */
typedef struct H5D_rdcc_t {
struct {
unsigned ninits; /* Number of chunk creations */
@@ -535,31 +536,6 @@ typedef struct {
hsize_t size; /* Accumulated number of bytes for the selection */
} H5D_vlen_bufsize_t;
-/* Flags for the "edge_chunk_state" field below */
-#define H5D_RDCC_DISABLE_FILTERS 0x01u /* Disable filters on this chunk */
-#define H5D_RDCC_NEWLY_DISABLED_FILTERS 0x02u /* Filters have been disabled since
- * the last flush */
-
-/* Raw data chunks are cached. Each entry in the cache is: */
-typedef struct H5D_rdcc_ent_t {
- hbool_t locked; /*entry is locked in cache */
- hbool_t dirty; /*needs to be written to disk? */
- hbool_t deleted; /*chunk about to be deleted */
- unsigned edge_chunk_state; /*states related to edge chunks (see above) */
- hsize_t scaled[H5O_LAYOUT_NDIMS]; /*scaled chunk 'name' (coordinates) */
- uint32_t rd_count; /*bytes remaining to be read */
- uint32_t wr_count; /*bytes remaining to be written */
- H5F_block_t chunk_block; /*offset/length of chunk in file */
- hsize_t chunk_idx; /*index of chunk in dataset */
- uint8_t *chunk; /*the unfiltered chunk data */
- unsigned idx; /*index in hash table */
- struct H5D_rdcc_ent_t *next;/*next item in doubly-linked list */
- struct H5D_rdcc_ent_t *prev;/*previous item in doubly-linked list */
- struct H5D_rdcc_ent_t *tmp_next;/*next item in temporary doubly-linked list */
- struct H5D_rdcc_ent_t *tmp_prev;/*previous item in temporary doubly-linked list */
-} H5D_rdcc_ent_t;
-typedef H5D_rdcc_ent_t *H5D_rdcc_ent_ptr_t; /* For free lists */
-
/*****************************/
/* Package Private Variables */
@@ -685,11 +661,6 @@ H5_DLL herr_t H5D__chunk_set_info(const H5D_t *dset);
H5_DLL hbool_t H5D__chunk_is_space_alloc(const H5O_storage_t *storage);
H5_DLL herr_t H5D__chunk_lookup(const H5D_t *dset, hid_t dxpl_id,
const hsize_t *scaled, H5D_chunk_ud_t *udata);
-H5_DLL void *H5D__chunk_lock(const H5D_io_info_t *io_info,
- H5D_chunk_ud_t *udata, hbool_t relax, hbool_t prev_unfilt_chunk);
-H5_DLL herr_t H5D__chunk_unlock(const H5D_io_info_t *io_info,
- const H5D_chunk_ud_t *udata, hbool_t dirty, void *chunk,
- uint32_t naccessed);
H5_DLL herr_t H5D__chunk_allocated(H5D_t *dset, hid_t dxpl_id, hsize_t *nbytes);
H5_DLL herr_t H5D__chunk_allocate(const H5D_t *dset, hid_t dxpl_id,
hbool_t full_overwrite, hsize_t old_dim[]);