summaryrefslogtreecommitdiffstats
path: root/src/H5C.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2016-11-28 01:00:12 (GMT)
committerQuincey Koziol <koziol@lbl.gov>2016-11-28 01:00:12 (GMT)
commit460b573a73e1cfa73ad16dc7fff286fd561ff735 (patch)
tree71fab2b5a5779b54b5fdac00963c44458ba00f6b /src/H5C.c
parent61e0a035bcc96b4fa38e443332bcbb6041e56b5d (diff)
downloadhdf5-460b573a73e1cfa73ad16dc7fff286fd561ff735.zip
hdf5-460b573a73e1cfa73ad16dc7fff286fd561ff735.tar.gz
hdf5-460b573a73e1cfa73ad16dc7fff286fd561ff735.tar.bz2
Eliminate unnecessary data structure for parallel collective metadata cache I/O
Diffstat (limited to 'src/H5C.c')
-rw-r--r--src/H5C.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/H5C.c b/src/H5C.c
index 31f887d..af2440c 100644
--- a/src/H5C.c
+++ b/src/H5C.c
@@ -216,9 +216,6 @@ H5FL_DEFINE_STATIC(H5C_t);
/* Declare a free list to manage flush dependency arrays */
H5FL_BLK_DEFINE_STATIC(parent);
-/* Declare extern free list to manage the H5C_collective_write_t struct */
-H5FL_EXTERN(H5C_collective_write_t);
-
/*-------------------------------------------------------------------------
@@ -5859,20 +5856,8 @@ H5C__flush_single_entry(const H5F_t *f, hid_t dxpl_id, H5C_cache_entry_t *entry_
if(((entry_ptr->type->flags) & H5C__CLASS_SKIP_WRITES) == 0) {
#ifdef H5_HAVE_PARALLEL
if(collective_write_list) {
- H5C_collective_write_t *item;
-
- if(NULL == (item = (H5C_collective_write_t *)H5FL_MALLOC(H5C_collective_write_t)))
- HGOTO_ERROR(H5E_CACHE, H5E_CANTALLOC, FAIL, "unable to allocate skip list item")
-
- item->length = entry_ptr->size;
- item->free_buf = FALSE;
- item->buf = entry_ptr->image_ptr;
- item->offset = entry_ptr->addr;
-
- if(H5SL_insert(collective_write_list, item, &item->offset) < 0) {
- H5MM_free(item);
+ if(H5SL_insert(collective_write_list, entry_ptr, &entry_ptr->addr) < 0)
HGOTO_ERROR(H5E_CACHE, H5E_CANTINSERT, FAIL, "unable to insert skip list item")
- } /* end if */
} /* end if */
else
#endif /* H5_HAVE_PARALLEL */