diff options
-rw-r--r-- | xlators/performance/io-cache/src/ioc-inode.c | 5 |
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); |