From fb9f29e892e762e161fc9ed72403eeaadb050077 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Mon, 21 Jan 2013 16:42:41 -0800 Subject: fd: expose __fd_ctx_del symbol used by open-behind for deleting context in locked critical region Change-Id: I3380152211fed6aacbb719468b720376e6ec1e7c BUG: 846240 Signed-off-by: Anand Avati Reviewed-on: http://review.gluster.org/4405 Tested-by: Gluster Build System --- libglusterfs/src/fd.c | 2 +- libglusterfs/src/fd.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libglusterfs/src/fd.c b/libglusterfs/src/fd.c index f9466bbf4cc..0c3a5262133 100644 --- a/libglusterfs/src/fd.c +++ b/libglusterfs/src/fd.c @@ -926,7 +926,7 @@ fd_ctx_get (fd_t *fd, xlator_t *xlator, uint64_t *value) } -static int +int __fd_ctx_del (fd_t *fd, xlator_t *xlator, uint64_t *value) { int index = 0; diff --git a/libglusterfs/src/fd.h b/libglusterfs/src/fd.h index e2f54bc9dc1..1077cfa8632 100644 --- a/libglusterfs/src/fd.h +++ b/libglusterfs/src/fd.h @@ -159,6 +159,10 @@ fd_ctx_get (fd_t *fd, xlator_t *xlator, uint64_t *value); int fd_ctx_del (fd_t *fd, xlator_t *xlator, uint64_t *value); +int +__fd_ctx_del (fd_t *fd, xlator_t *xlator, uint64_t *value); + + int __fd_ctx_set (fd_t *fd, xlator_t *xlator, uint64_t value); -- cgit