summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachidananda <sac@gluster.com>2010-08-23 00:08:37 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-23 00:35:49 -0700
commit39dc05e370286a62428a94e3e7666e2eedaea941 (patch)
treefd543cdc7310a767f1b842dfc53cb0d3881368ba
parent436f2b329f41f28a65fc4898df5435f154bd6027 (diff)
performance/io-cache: Remove dead assignments.
Signed-off-by: Sachidananda Urs <sac@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1112 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1112
-rw-r--r--xlators/performance/io-cache/src/ioc-inode.c5
1 files changed, 0 insertions, 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);