summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorBarak Sason Rofman <bsasonro@redhat.com>2021-01-24 12:06:53 +0200
committerXavi Hernandez <xhernandez@users.noreply.github.com>2021-02-18 09:47:00 +0100
commit1ce8e8f5ea5d18f7e5ac669cd1c79b6966533f74 (patch)
treecdb57dc0950177943f2ddbad5b33cd3510c2052e /xlators
parent61ae58e67567ea4de8f8efc6b70a9b1f8e0f1bea (diff)
downloadglusterfs-1ce8e8f5ea5d18f7e5ac669cd1c79b6966533f74.tar.gz
glusterfs-1ce8e8f5ea5d18f7e5ac669cd1c79b6966533f74.tar.xz
glusterfs-1ce8e8f5ea5d18f7e5ac669cd1c79b6966533f74.zip
dht/linkfile - Remove unused code
A couple of methods are not being used, removing them. Change-Id: I5bb4b7f04bae9486cf9b7960cf5ed91d0b59c8c7 updates: #1000 Signed-off-by: Barak Sason Rofman <bsasonro@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/dht/src/dht-common.h3
-rw-r--r--xlators/cluster/dht/src/dht-linkfile.c55
2 files changed, 0 insertions, 58 deletions
diff --git a/xlators/cluster/dht/src/dht-common.h b/xlators/cluster/dht/src/dht-common.h
index 24b3a929f5..ac21b237b9 100644
--- a/xlators/cluster/dht/src/dht-common.h
+++ b/xlators/cluster/dht/src/dht-common.h
@@ -784,9 +784,6 @@ dht_layout_dir_mismatch(xlator_t *this, dht_layout_t *layout, xlator_t *subvol,
xlator_t *
dht_linkfile_subvol(xlator_t *this, inode_t *inode, struct iatt *buf,
dict_t *xattr);
-int
-dht_linkfile_unlink(call_frame_t *frame, xlator_t *this, xlator_t *subvol,
- loc_t *loc);
int
dht_layouts_init(xlator_t *this, dht_conf_t *conf);
diff --git a/xlators/cluster/dht/src/dht-linkfile.c b/xlators/cluster/dht/src/dht-linkfile.c
index 89ec6cca56..a480093c96 100644
--- a/xlators/cluster/dht/src/dht-linkfile.c
+++ b/xlators/cluster/dht/src/dht-linkfile.c
@@ -165,61 +165,6 @@ out:
return 0;
}
-int
-dht_linkfile_unlink_cbk(call_frame_t *frame, void *cookie, xlator_t *this,
- int32_t op_ret, int32_t op_errno,
- struct iatt *preparent, struct iatt *postparent,
- dict_t *xdata)
-{
- dht_local_t *local = NULL;
- xlator_t *subvol = NULL;
- char gfid[GF_UUID_BUF_SIZE] = {0};
-
- local = frame->local;
- subvol = cookie;
-
- if (op_ret == -1) {
- gf_uuid_unparse(local->loc.gfid, gfid);
- gf_smsg(this->name, GF_LOG_INFO, op_errno, DHT_MSG_UNLINK_FAILED,
- "path=%s", local->loc.path, "gfid=%s", gfid, "subvolume=%s",
- subvol->name, NULL);
- }
-
- DHT_STACK_DESTROY(frame);
-
- return 0;
-}
-
-int
-dht_linkfile_unlink(call_frame_t *frame, xlator_t *this, xlator_t *subvol,
- loc_t *loc)
-{
- call_frame_t *unlink_frame = NULL;
- dht_local_t *unlink_local = NULL;
-
- unlink_frame = copy_frame(frame);
- if (!unlink_frame) {
- goto err;
- }
-
- /* Using non-fop value here, as anyways, 'local->fop' is not used in
- this particular case */
- unlink_local = dht_local_init(unlink_frame, loc, NULL, GF_FOP_MAXVALUE);
- if (!unlink_local) {
- goto err;
- }
-
- STACK_WIND_COOKIE(unlink_frame, dht_linkfile_unlink_cbk, subvol, subvol,
- subvol->fops->unlink, &unlink_local->loc, 0, NULL);
-
- return 0;
-err:
- if (unlink_frame)
- DHT_STACK_DESTROY(unlink_frame);
-
- return -1;
-}
-
xlator_t *
dht_linkfile_subvol(xlator_t *this, inode_t *inode, struct iatt *stbuf,
dict_t *xattr)