diff options
author | Anand V. Avati <avati@amp.gluster.com> | 2009-04-17 23:35:43 +0530 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-17 23:35:43 +0530 |
commit | 50b2291e3b046ea6b8fdfcb7e206c772eae64f0e (patch) | |
tree | 53e544086f9ae24cc1a00623aeaa4cf8cd4ef617 /xlators/performance/io-cache/src/io-cache.c | |
parent | 1d6dfe94fb970b51d96653da6c3361533d697fc3 (diff) |
iobuf - account with iobref_size() instead of iov_length (vector)
Diffstat (limited to 'xlators/performance/io-cache/src/io-cache.c')
-rw-r--r-- | xlators/performance/io-cache/src/io-cache.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c index 0c394b84e..3082242b3 100644 --- a/xlators/performance/io-cache/src/io-cache.c +++ b/xlators/performance/io-cache/src/io-cache.c @@ -264,7 +264,7 @@ ioc_lookup_cbk (call_frame_t *frame, ioc_table_lock (table); { table->cache_used -= - page->size; + iobref_size (page->iobref); } ioc_table_unlock (table); } else { @@ -291,7 +291,8 @@ ioc_lookup_cbk (call_frame_t *frame, ioc_table_lock (table); { - table->cache_used += page->size; + table->cache_used += + iobref_size (page->iobref); } ioc_table_unlock (table); |