diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-04-29 19:28:23 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-04-29 19:28:23 (GMT) |
commit | eb96132022da938d4b54ae4dd482919a178c4ee5 (patch) | |
tree | e6cfc62b07e4c74fdbe3c65a659fbaf69ca5a322 /src | |
parent | 1032b7c9d6cbd0ac109b72add26d47436eaca035 (diff) | |
download | hdf5-eb96132022da938d4b54ae4dd482919a178c4ee5.zip hdf5-eb96132022da938d4b54ae4dd482919a178c4ee5.tar.gz hdf5-eb96132022da938d4b54ae4dd482919a178c4ee5.tar.bz2 |
[svn-r12316] Purpose:
Code cleanup/feature twist
Description:
Adjust recent H5AC routines to take H5F_t pointers instead of H5C_t
pointers, to match the rest of the H5AC routines.
This change propagated into a few of the tests, which also had some
compiler warnings cleaned up...
Platforms tested:
FreeBSD 4.11 (sleipnir) w/parallel
Linux 2.4/64 (mir) w/C++ & FORTRAN
Diffstat (limited to 'src')
-rw-r--r-- | src/H5AC.c | 22 | ||||
-rw-r--r-- | src/H5ACprivate.h | 8 |
2 files changed, 17 insertions, 13 deletions
@@ -989,10 +989,11 @@ done: */ herr_t -H5AC_get_entry_status(H5C_t * cache_ptr, +H5AC_get_entry_status(H5F_t * f, haddr_t addr, unsigned * status_ptr) { + H5C_t *cache_ptr = f->shared->cache; herr_t ret_value = SUCCEED; /* Return value */ herr_t result; hbool_t in_cache; @@ -1212,11 +1213,12 @@ done: *------------------------------------------------------------------------- */ herr_t -H5AC_mark_pinned_entry_dirty(H5C_t * cache_ptr, +H5AC_mark_pinned_entry_dirty(H5F_t * f, void * thing, hbool_t size_changed, size_t new_size) { + H5C_t *cache_ptr = f->shared->cache; herr_t result; herr_t ret_value = SUCCEED; /* Return value */ @@ -1408,11 +1410,12 @@ done: *------------------------------------------------------------------------- */ herr_t -H5AC_pin_protected_entry(H5C_t * cache_ptr, +H5AC_pin_protected_entry(H5F_t * f, void * thing) { - herr_t result; - herr_t ret_value = SUCCEED; /* Return value */ + H5C_t *cache_ptr = f->shared->cache; + herr_t result; + herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_NOAPI(H5AC_pin_protected_entry, FAIL) @@ -1554,11 +1557,12 @@ done: *------------------------------------------------------------------------- */ herr_t -H5AC_unpin_entry(H5C_t * cache_ptr, +H5AC_unpin_entry(H5F_t * f, void * thing) { - herr_t result; - herr_t ret_value = SUCCEED; /* Return value */ + H5C_t *cache_ptr = f->shared->cache; + herr_t result; + herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_NOAPI(H5AC_unpin_entry, FAIL) @@ -2480,7 +2484,7 @@ done: #ifdef H5_HAVE_PARALLEL static herr_t H5AC_check_if_write_permitted(const H5F_t *f, - hid_t dxpl_id, + hid_t UNUSED dxpl_id, hbool_t * write_permitted_ptr) #else /* H5_HAVE_PARALLEL */ static herr_t diff --git a/src/H5ACprivate.h b/src/H5ACprivate.h index a6844e4..6234a5e 100644 --- a/src/H5ACprivate.h +++ b/src/H5ACprivate.h @@ -242,21 +242,21 @@ extern hid_t H5AC_ind_dxpl_id; H5_DLL herr_t H5AC_init(void); H5_DLL herr_t H5AC_create(const H5F_t *f, H5AC_cache_config_t *config_ptr); -H5_DLL herr_t H5AC_get_entry_status(H5C_t * cache_ptr, haddr_t addr, +H5_DLL herr_t H5AC_get_entry_status(H5F_t * f, haddr_t addr, unsigned * status_ptr); H5_DLL herr_t H5AC_set(H5F_t *f, hid_t dxpl_id, const H5AC_class_t *type, haddr_t addr, void *thing, unsigned int flags); -H5_DLL herr_t H5AC_pin_protected_entry(H5C_t * cache_ptr, void * thing); +H5_DLL herr_t H5AC_pin_protected_entry(H5F_t * f, void * thing); H5_DLL void * H5AC_protect(H5F_t *f, hid_t dxpl_id, const H5AC_class_t *type, haddr_t addr, const void *udata1, void *udata2, H5AC_protect_t rw); -H5_DLL herr_t H5AC_unpin_entry(H5C_t * cache_ptr, +H5_DLL herr_t H5AC_unpin_entry(H5F_t * f, void * thing); H5_DLL herr_t H5AC_unprotect(H5F_t *f, hid_t dxpl_id, const H5AC_class_t *type, haddr_t addr, void *thing, unsigned flags); H5_DLL herr_t H5AC_flush(H5F_t *f, hid_t dxpl_id, unsigned flags); -H5_DLL herr_t H5AC_mark_pinned_entry_dirty(H5C_t * cache_ptr, +H5_DLL herr_t H5AC_mark_pinned_entry_dirty(H5F_t * f, void * thing, hbool_t size_changed, size_t new_size); |