diff options
author | Anand Avati <avati@redhat.com> | 2013-01-21 16:42:41 -0800 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-01-28 16:45:30 -0800 |
commit | fb9f29e892e762e161fc9ed72403eeaadb050077 (patch) | |
tree | 5774aaa55d84d9df7c9d08dc024ea831258c2ffa /libglusterfs | |
parent | a81748c3f49790e78ef168e25db025d0da838338 (diff) |
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 <avati@redhat.com>
Reviewed-on: http://review.gluster.org/4405
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/fd.c | 2 | ||||
-rw-r--r-- | libglusterfs/src/fd.h | 4 |
2 files changed, 5 insertions, 1 deletions
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 @@ -160,6 +160,10 @@ 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); |