summaryrefslogtreecommitdiffstats
path: root/xlators/performance/io-cache/src
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-10-30 00:10:20 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-30 01:49:53 -0700
commit8345b6448d292a8da4464debb4dc65b55f1f6eeb (patch)
tree13659e3002660b235746848c14fd5aa004ca6d5d /xlators/performance/io-cache/src
parente16f05a6d1f756f16e363d93f432f950901cf777 (diff)
performance/io-cache: change the data-types to be big enough to hold size of data flushed.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 335 (Io-cache optimization) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=335
Diffstat (limited to 'xlators/performance/io-cache/src')
-rw-r--r--xlators/performance/io-cache/src/io-cache.c8
-rw-r--r--xlators/performance/io-cache/src/io-cache.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c
index da3f4f15da3..84b18499352 100644
--- a/xlators/performance/io-cache/src/io-cache.c
+++ b/xlators/performance/io-cache/src/io-cache.c
@@ -95,12 +95,12 @@ ioc_inode_need_revalidate (ioc_inode_t *ioc_inode)
*
* assumes lock is held
*/
-int32_t
+int64_t
__ioc_inode_flush (ioc_inode_t *ioc_inode)
{
ioc_page_t *curr = NULL, *next = NULL;
- int32_t destroy_size = 0;
- int32_t ret = 0;
+ int64_t destroy_size = 0;
+ int64_t ret = 0;
list_for_each_entry_safe (curr, next, &ioc_inode->cache.page_lru,
page_lru) {
@@ -116,7 +116,7 @@ __ioc_inode_flush (ioc_inode_t *ioc_inode)
void
ioc_inode_flush (ioc_inode_t *ioc_inode)
{
- int32_t destroy_size = 0;
+ int64_t destroy_size = 0;
ioc_inode_lock (ioc_inode);
{
diff --git a/xlators/performance/io-cache/src/io-cache.h b/xlators/performance/io-cache/src/io-cache.h
index 49d3d000b4f..de6cb3527ee 100644
--- a/xlators/performance/io-cache/src/io-cache.h
+++ b/xlators/performance/io-cache/src/io-cache.h
@@ -313,7 +313,7 @@ ioc_inode_update (ioc_table_t *table, inode_t *inode, uint32_t weight);
int64_t
ioc_page_destroy (ioc_page_t *page);
-int32_t
+int64_t
__ioc_inode_flush (ioc_inode_t *ioc_inode);
void