summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/fd.c
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-06-25 14:31:28 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-06-29 10:42:05 -0700
commite3e880180165efffbc0866eeda2154004f7d64f5 (patch)
tree10a9875d1c973282e08c241008e1722ce5ef5754 /libglusterfs/src/fd.c
parent76aa99422562a500c3b82cb826ce582576065a83 (diff)
booster: Remove gf_fd_unused_get2
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'libglusterfs/src/fd.c')
-rw-r--r--libglusterfs/src/fd.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/libglusterfs/src/fd.c b/libglusterfs/src/fd.c
index b28fb047e4a..39385fd7577 100644
--- a/libglusterfs/src/fd.c
+++ b/libglusterfs/src/fd.c
@@ -227,43 +227,6 @@ gf_fd_fdtable_destroy (fdtable_t *fdtable)
}
}
-int32_t
-gf_fd_unused_get2 (fdtable_t *fdtable, fd_t *fdptr, int32_t fd)
-{
- int32_t ret = -1;
-
- if (fdtable == NULL || fdptr == NULL || fd < 0)
- {
- gf_log ("fd", GF_LOG_ERROR, "invalid argument");
- errno = EINVAL;
- return -1;
- }
-
- pthread_mutex_lock (&fdtable->lock);
- {
- while (fdtable->max_fds < fd) {
- int error = 0;
- error = gf_fd_fdtable_expand (fdtable, fdtable->max_fds + 1);
- if (error)
- {
- gf_log ("fd.c",
- GF_LOG_ERROR,
- "Cannot expand fdtable:%s", strerror (error));
- goto err;
- }
- }
-
- fdtable->fdentries[fd].fd = fdptr;
- fd_ref (fdptr);
- ret = fd;
- }
-err:
- pthread_mutex_unlock (&fdtable->lock);
-
- return ret;
-}
-
-
int32_t
gf_fd_unused_get (fdtable_t *fdtable, fd_t *fdptr)
{