summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/inode.c')
-rw-r--r--libglusterfs/src/inode.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/libglusterfs/src/inode.c b/libglusterfs/src/inode.c
index 1b43203113f..7f938236738 100644
--- a/libglusterfs/src/inode.c
+++ b/libglusterfs/src/inode.c
@@ -134,14 +134,11 @@ __dentry_unhash (dentry_t *dentry)
static void
__dentry_unset (dentry_t *dentry)
{
- struct mem_pool *tmp_pool = NULL;
-
if (!dentry) {
gf_log_callingfn (THIS->name, GF_LOG_WARNING, "dentry not found");
return;
}
- tmp_pool = dentry->inode->table->dentry_pool;
__dentry_unhash (dentry);
list_del_init (&dentry->inode_list);
@@ -155,8 +152,6 @@ __dentry_unset (dentry_t *dentry)
}
mem_put (dentry);
- tmp_pool = NULL;
-
}
@@ -307,7 +302,6 @@ __inode_destroy (inode_t *inode)
int index = 0;
xlator_t *xl = NULL;
xlator_t *old_THIS = NULL;
- struct mem_pool *tmp_pool = NULL;
if (!inode) {
gf_log_callingfn (THIS->name, GF_LOG_WARNING, "inode not found");
@@ -319,8 +313,6 @@ __inode_destroy (inode_t *inode)
goto noctx;
}
- tmp_pool = inode->table->inode_pool;
-
for (index = 0; index < inode->table->xl->graph->xl_count; index++) {
if (inode->_ctx[index].xl_key) {
xl = (xlator_t *)(long)inode->_ctx[index].xl_key;
@@ -337,8 +329,6 @@ noctx:
LOCK_DESTROY (&inode->lock);
// memset (inode, 0xb, sizeof (*inode));
mem_put (inode);
- tmp_pool = NULL;
-
}