From 39dc05e370286a62428a94e3e7666e2eedaea941 Mon Sep 17 00:00:00 2001 From: Sachidananda Date: Mon, 23 Aug 2010 00:08:37 +0000 Subject: performance/io-cache: Remove dead assignments. Signed-off-by: Sachidananda Urs Signed-off-by: Anand V. Avati BUG: 1112 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1112 --- xlators/performance/io-cache/src/ioc-inode.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/xlators/performance/io-cache/src/ioc-inode.c b/xlators/performance/io-cache/src/ioc-inode.c index 5619134814c..2cd76f82299 100644 --- a/xlators/performance/io-cache/src/ioc-inode.c +++ b/xlators/performance/io-cache/src/ioc-inode.c @@ -156,7 +156,6 @@ ioc_inode_t * ioc_inode_update (ioc_table_t *table, inode_t *inode, uint32_t weight) { ioc_inode_t *ioc_inode = NULL; - unsigned long no_of_pages = 0; ioc_inode = GF_CALLOC (1, sizeof (ioc_inode_t), gf_ioc_mt_ioc_inode_t); @@ -165,10 +164,6 @@ ioc_inode_update (ioc_table_t *table, inode_t *inode, uint32_t weight) } ioc_inode->table = table; - - no_of_pages = (table->cache_size / table->page_size) - + ((table->cache_size % table->page_size) ? 1 : 0); - INIT_LIST_HEAD (&ioc_inode->cache.page_lru); ioc_table_lock (table); -- cgit