summaryrefslogtreecommitdiffstats
path: root/xlators/performance/io-cache/src/ioc-inode.c
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2011-06-14 01:40:45 +0000
committerAnand Avati <avati@gluster.com>2011-06-14 22:37:20 -0700
commitdd4a0d45a91104117c0ad5de85deaabe6df88677 (patch)
tree8b2a6f89188ed393623e759727c49e0f6c5a62d9 /xlators/performance/io-cache/src/ioc-inode.c
parent1f14a1fccd5a8eed92936d9910d4b9a45ca1b56c (diff)
performance/io-cache: print cache information during state dump.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 1059 (enhancements for getting statistics from performance translators) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1059
Diffstat (limited to 'xlators/performance/io-cache/src/ioc-inode.c')
-rw-r--r--xlators/performance/io-cache/src/ioc-inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/performance/io-cache/src/ioc-inode.c b/xlators/performance/io-cache/src/ioc-inode.c
index e268cac2621..1367a124698 100644
--- a/xlators/performance/io-cache/src/ioc-inode.c
+++ b/xlators/performance/io-cache/src/ioc-inode.c
@@ -188,6 +188,7 @@ ioc_inode_update (ioc_table_t *table, inode_t *inode, uint32_t weight)
goto out;
}
+ ioc_inode->inode = inode;
ioc_inode->table = table;
INIT_LIST_HEAD (&ioc_inode->cache.page_lru);
pthread_mutex_init (&ioc_inode->inode_lock, NULL);