summaryrefslogtreecommitdiffstats
path: root/src/H5FDcore.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2014-05-05 15:54:56 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2014-05-05 15:54:56 (GMT)
commitacff290b9458ec8fd24ce16dac2bb3e66a818105 (patch)
tree7e65919f3ab5708613f81333a3a2c67041b81353 /src/H5FDcore.c
parent3f5886da9f2eca2c0b6a3f47fd7190a87e151ee0 (diff)
downloadhdf5-acff290b9458ec8fd24ce16dac2bb3e66a818105.zip
hdf5-acff290b9458ec8fd24ce16dac2bb3e66a818105.tar.gz
hdf5-acff290b9458ec8fd24ce16dac2bb3e66a818105.tar.bz2
[svn-r25161] Removed some C++-style comments from H5FDcore.c.
Tested on: 32-bit LE linux (jam) Tested with HDF5_DRIVER set to "core_paged".
Diffstat (limited to 'src/H5FDcore.c')
-rw-r--r--src/H5FDcore.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/H5FDcore.c b/src/H5FDcore.c
index ee3a40e..d1d4337 100644
--- a/src/H5FDcore.c
+++ b/src/H5FDcore.c
@@ -105,9 +105,6 @@ typedef struct H5FD_core_fapl_t {
/* Allocate memory in multiples of this size by default */
#define H5FD_CORE_INCREMENT 8192
-/* Define the block size for aggregation */
-//#define H5FD_CORE_BLOCK_SIZE 524288 /* 512 K */
-
/* These macros check for overflow of various quantities. These macros
* assume that file_offset_t is signed and haddr_t and size_t are unsigned.
*
@@ -223,9 +220,6 @@ H5FD_core_add_dirty_region(H5FD_core_t *file, haddr_t start, haddr_t end)
fprintf(stderr, "Add region: (%llu, %llu)\n", start, end);
#endif
-// /* Adjust the dirty region to the nearest block boundaries */
-// if(start % H5FD_CORE_BLOCK_SIZE != 0) {
-// start = (start / H5FD_CORE_BLOCK_SIZE) * H5FD_CORE_BLOCK_SIZE;
/* Adjust the dirty region to the nearest block boundaries */
if(start % file->bstore_page_size != 0) {
start = (start / file->bstore_page_size) * file->bstore_page_size;
@@ -233,8 +227,6 @@ fprintf(stderr, "Add region: (%llu, %llu)\n", start, end);
was_adjusted = TRUE;
#endif
}
-// if(end % H5FD_CORE_BLOCK_SIZE != (H5FD_CORE_BLOCK_SIZE - 1)) {
-// end = (((end / H5FD_CORE_BLOCK_SIZE) + 1) * H5FD_CORE_BLOCK_SIZE) - 1;
if(end % file->bstore_page_size != (file->bstore_page_size - 1)) {
end = (((end / file->bstore_page_size) + 1) * file->bstore_page_size) - 1;
if(end > file->eof){