diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-10-12 03:00:46 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-10-12 03:00:46 (GMT) |
commit | 03d4b2aa0ccad8fc985c492e74c4773290f4157c (patch) | |
tree | 76d89af743b19cbb528fd1c1a76cd3b667e52e9a /src/H5HL.c | |
parent | 8e8aa93d98d3786fa2347f44a7f17c8238714616 (diff) | |
download | hdf5-03d4b2aa0ccad8fc985c492e74c4773290f4157c.zip hdf5-03d4b2aa0ccad8fc985c492e74c4773290f4157c.tar.gz hdf5-03d4b2aa0ccad8fc985c492e74c4773290f4157c.tar.bz2 |
[svn-r9403] Purpose:
Code cleanup
Description:
Further diff reductions against development branch, in preparation for
merge of new metadata cache code.
Solution:
Change 'dirty' field in metadata cache info struct (H5AC_info_t) to
match development branch 'is_dirty' name.
Platforms tested:
FreeBSD 4.10 (sleipnir) w/parallel
Solaris 2.7 (arabica)
Linux 2.4 (verbena) w/FORTRAN
Diffstat (limited to 'src/H5HL.c')
-rw-r--r-- | src/H5HL.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -173,7 +173,7 @@ H5HL_create(H5F_t *f, hid_t dxpl_id, size_t size_hint, haddr_t *addr_p/*out*/) } /* add to cache */ - heap->cache_info.dirty = 1; + heap->cache_info.is_dirty = TRUE; if (H5AC_set(f, dxpl_id, H5AC_LHEAP, *addr_p, heap) < 0) HGOTO_ERROR(H5E_HEAP, H5E_CANTINIT, FAIL, "unable to cache heap"); @@ -560,7 +560,7 @@ H5HL_flush(H5F_t *f, hid_t dxpl_id, hbool_t destroy, haddr_t addr, H5HL_t *heap) assert(H5F_addr_defined(addr)); assert(heap); - if (heap->cache_info.dirty) { + if (heap->cache_info.is_dirty) { haddr_t hdr_end_addr; size_t sizeof_hdr = H5HL_SIZEOF_HDR(f); /* cache H5HL header size for file */ @@ -589,7 +589,7 @@ H5HL_flush(H5F_t *f, hid_t dxpl_id, hbool_t destroy, haddr_t addr, H5HL_t *heap) HGOTO_ERROR(H5E_HEAP, H5E_WRITEERROR, FAIL, "unable to write heap data to file") } - heap->cache_info.dirty = FALSE; + heap->cache_info.is_dirty = FALSE; } /* Should we destroy the memory version? */ @@ -629,7 +629,7 @@ H5HL_dest(H5F_t UNUSED *f, H5HL_t *heap) assert(heap); /* Verify that node is clean */ - assert (heap->cache_info.dirty==FALSE); + assert (heap->cache_info.is_dirty==FALSE); if(heap->chunk) heap->chunk = H5FL_BLK_FREE(heap_chunk,heap->chunk); @@ -668,7 +668,7 @@ H5HL_clear(H5HL_t *heap) assert(heap); /* Mark heap as clean */ - heap->cache_info.dirty = FALSE; + heap->cache_info.is_dirty = FALSE; FUNC_LEAVE_NOAPI(SUCCEED); } /* end H5HL_clear() */ @@ -930,7 +930,7 @@ H5HL_insert(H5F_t *f, hid_t dxpl_id, haddr_t addr, size_t buf_size, const void * if (NULL == (heap = H5AC_protect(f, dxpl_id, H5AC_LHEAP, addr, NULL, NULL, H5AC_WRITE))) HGOTO_ERROR(H5E_HEAP, H5E_PROTECT, (size_t)(-1), "unable to load heap"); - heap->cache_info.dirty=TRUE; + heap->cache_info.is_dirty=TRUE; /* Cache this for later */ sizeof_hdr= H5HL_SIZEOF_HDR(f); @@ -1116,7 +1116,7 @@ H5HL_write(H5F_t *f, hid_t dxpl_id, haddr_t addr, size_t offset, size_t size, co assert(offset < heap->mem_alloc); assert(offset + size <= heap->mem_alloc); - heap->cache_info.dirty=TRUE; + heap->cache_info.is_dirty=TRUE; HDmemcpy(heap->chunk + H5HL_SIZEOF_HDR(f) + offset, buf, size); done: @@ -1182,7 +1182,7 @@ H5HL_remove(H5F_t *f, hid_t dxpl_id, haddr_t addr, size_t offset, size_t size) assert(offset + size <= heap->mem_alloc); fl = heap->freelist; - heap->cache_info.dirty=TRUE; + heap->cache_info.is_dirty=TRUE; /* * Check if this chunk can be prepended or appended to an already |