summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra Talur <rtalur@redhat.com>2016-11-11 16:35:12 +0530
committerRaghavendra Talur <rtalur@redhat.com>2016-11-11 07:45:15 -0800
commit53ea680ac8a2acf0ecc48d07cb555093e1f0876f (patch)
tree405b17583f7e0a274fcd0800f123f601416ec790
parent63d0cbcc50c40379b74bc6d22f7977ff2205042a (diff)
gfapi: remove extra fd_unref
Online gerrit rebase does not seem to be working. Commit a3bade0976d9f976855baf0de479205aa50e2abd is not complete backport of http://review.gluster.org/#/c/15768. Change-Id: I5229d87c8c403106f20c50bc8a7f38dad9a2303d BUG: 1392286 Signed-off-by: Raghavendra Talur <rtalur@redhat.com> Reviewed-on: http://review.gluster.org/15829 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org>
-rw-r--r--api/src/glfs-fops.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/api/src/glfs-fops.c b/api/src/glfs-fops.c
index 97450c1d00c..ea61c8b7a43 100644
--- a/api/src/glfs-fops.c
+++ b/api/src/glfs-fops.c
@@ -934,9 +934,6 @@ pub_glfs_preadv_async (struct glfs_fd *glfd, const struct iovec *iovec,
offset, flags, NULL);
out:
- if (fd)
- fd_unref (fd);
-
if (ret) {
if (fd)
fd_unref (fd);
@@ -1254,9 +1251,6 @@ pub_glfs_pwritev_async (struct glfs_fd *glfd, const struct iovec *iovec,
ret = 0;
out:
- if (fd)
- fd_unref (fd);
-
if (ret) {
if (fd)
fd_unref (fd);
@@ -1443,9 +1437,6 @@ glfs_fsync_async_common (struct glfs_fd *glfd, glfs_io_cbk fn, void *data,
subvol->fops->fsync, fd, dataonly, NULL);
out:
- if (fd)
- fd_unref (fd);
-
if (ret) {
if (fd)
fd_unref (fd);
@@ -1699,9 +1690,6 @@ pub_glfs_ftruncate_async (struct glfs_fd *glfd, off_t offset, glfs_io_cbk fn,
ret = 0;
out:
- if (fd)
- fd_unref (fd);
-
if (ret) {
if (fd)
fd_unref (fd);
@@ -2560,9 +2548,6 @@ pub_glfs_discard_async (struct glfs_fd *glfd, off_t offset, size_t len,
ret = 0;
out:
- if (fd)
- fd_unref (fd);
-
if (ret) {
if (fd)
fd_unref (fd);
@@ -2650,9 +2635,6 @@ pub_glfs_zerofill_async (struct glfs_fd *glfd, off_t offset, off_t len,
subvol->fops->zerofill, fd, offset, len, NULL);
ret = 0;
out:
- if (fd)
- fd_unref (fd);
-
if (ret) {
if (fd)
fd_unref (fd);