summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-dir-write.c
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2011-10-25 11:45:10 +0530
committerVijay Bellur <vijay@gluster.com>2011-10-28 05:49:40 -0700
commitaf708e9fc2eb2104b9e8e3b5a3eaf99201664324 (patch)
tree524d1afbb7ad388422b53b6827ec54cb17fe7acf /xlators/cluster/afr/src/afr-dir-write.c
parentc770722983f73aa838b5985755999050c746550a (diff)
cluster/afr: Remove unused 'ino' code
Change-Id: I425e2d23e9e45f10ddeff2eacf918dd90f8baee7 BUG: 3744 Reviewed-on: http://review.gluster.com/639 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-dir-write.c')
-rw-r--r--xlators/cluster/afr/src/afr-dir-write.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/xlators/cluster/afr/src/afr-dir-write.c b/xlators/cluster/afr/src/afr-dir-write.c
index 2929ad741..2d7f98a2a 100644
--- a/xlators/cluster/afr/src/afr-dir-write.c
+++ b/xlators/cluster/afr/src/afr-dir-write.c
@@ -311,9 +311,6 @@ afr_create (call_frame_t *frame, xlator_t *this,
if (params)
local->cont.create.params = dict_ref (params);
- if (loc->parent)
- local->cont.create.parent_ino = loc->parent->ino;
-
local->transaction.fop = afr_create_wind;
local->transaction.done = afr_create_done;
local->transaction.unwind = afr_create_unwind;
@@ -536,9 +533,6 @@ afr_mknod (call_frame_t *frame, xlator_t *this,
if (params)
local->cont.mknod.params = dict_ref (params);
- if (loc->parent)
- local->cont.mknod.parent_ino = loc->parent->ino;
-
local->transaction.fop = afr_mknod_wind;
local->transaction.done = afr_mknod_done;
local->transaction.unwind = afr_mknod_unwind;
@@ -762,9 +756,6 @@ afr_mkdir (call_frame_t *frame, xlator_t *this,
if (params)
local->cont.mkdir.params = dict_ref (params);
- if (loc->parent)
- local->cont.mkdir.parent_ino = loc->parent->ino;
-
local->transaction.fop = afr_mkdir_wind;
local->transaction.done = afr_mkdir_done;
local->transaction.unwind = afr_mkdir_unwind;
@@ -985,11 +976,6 @@ afr_link (call_frame_t *frame, xlator_t *this,
}
UNLOCK (&priv->read_child_lock);
- local->cont.link.ino = oldloc->inode->ino;
-
- if (oldloc->parent)
- local->cont.link.parent_ino = newloc->parent->ino;
-
local->transaction.fop = afr_link_wind;
local->transaction.done = afr_link_done;
local->transaction.unwind = afr_link_unwind;
@@ -1215,9 +1201,6 @@ afr_symlink (call_frame_t *frame, xlator_t *this,
if (params)
local->cont.symlink.params = dict_ref (params);
- if (loc->parent)
- local->cont.symlink.parent_ino = loc->parent->ino;
-
local->transaction.fop = afr_symlink_wind;
local->transaction.done = afr_symlink_done;
local->transaction.unwind = afr_symlink_unwind;
@@ -1426,13 +1409,6 @@ afr_rename (call_frame_t *frame, xlator_t *this,
local->read_child_index = afr_inode_get_read_ctx (this, oldloc->inode, NULL);
- local->cont.rename.ino = oldloc->inode->ino;
-
- if (oldloc->parent)
- local->cont.rename.oldparent_ino = oldloc->parent->ino;
- if (newloc->parent)
- local->cont.rename.newparent_ino = newloc->parent->ino;
-
local->transaction.fop = afr_rename_wind;
local->transaction.done = afr_rename_done;
local->transaction.unwind = afr_rename_unwind;
@@ -1627,9 +1603,6 @@ afr_unlink (call_frame_t *frame, xlator_t *this,
loc_copy (&local->loc, loc);
- if (loc->parent)
- local->cont.unlink.parent_ino = loc->parent->ino;
-
local->transaction.fop = afr_unlink_wind;
local->transaction.done = afr_unlink_done;
local->transaction.unwind = afr_unlink_unwind;
@@ -1825,9 +1798,6 @@ afr_rmdir (call_frame_t *frame, xlator_t *this,
local->cont.rmdir.flags = flags;
loc_copy (&local->loc, loc);
- if (loc->parent)
- local->cont.rmdir.parent_ino = loc->parent->ino;
-
local->transaction.fop = afr_rmdir_wind;
local->transaction.done = afr_rmdir_done;
local->transaction.unwind = afr_rmdir_unwind;