summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/fd.c23
-rw-r--r--libglusterfs/src/fd.h2
2 files changed, 0 insertions, 25 deletions
diff --git a/libglusterfs/src/fd.c b/libglusterfs/src/fd.c
index e4e75d8040f..def15255728 100644
--- a/libglusterfs/src/fd.c
+++ b/libglusterfs/src/fd.c
@@ -500,29 +500,6 @@ fd_bind (fd_t *fd)
}
-void
-fd_unref_unbind (fd_t *fd)
-{
- GF_ASSERT (fd->refcount);
-
- LOCK (&fd->inode->lock);
- {
- --fd->refcount;
- /* Better know what you're doing with this function
- * because it does not do what fd_destroy does when
- * refcount goes to 0.
- * Make sure you only call this when you know there are
- * pending refs on the fd.
- */
- GF_ASSERT (fd->refcount);
- list_del_init (&fd->inode_list);
- }
- UNLOCK (&fd->inode->lock);
-
- return;
-}
-
-
fd_t *
fd_create (inode_t *inode, pid_t pid)
{
diff --git a/libglusterfs/src/fd.h b/libglusterfs/src/fd.h
index d3efeb91372..d19b0724f61 100644
--- a/libglusterfs/src/fd.h
+++ b/libglusterfs/src/fd.h
@@ -169,6 +169,4 @@ _fd_ref (fd_t *fd);
void
fd_ctx_dump (fd_t *fd, char *prefix);
-extern void
-fd_unref_unbind (fd_t *fd);
#endif /* _FD_H */