summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/fd.h
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-04-07 03:27:24 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-04-07 16:01:42 +0530
commitd71e72248096d12ce2a8ca7ccb36ef97ae486583 (patch)
tree22e950f26c76f9fa38fbc746e7167799b61521b6 /libglusterfs/src/fd.h
parent27996c714f7fd6a7686f2d4a3552efbc1e54c2c7 (diff)
Add lock-less versions of fd_ctx_*
Added __fd_ctx_get __fd_ctx_set __fd_ctx_del which do not hold any lock. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'libglusterfs/src/fd.h')
-rw-r--r--libglusterfs/src/fd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libglusterfs/src/fd.h b/libglusterfs/src/fd.h
index 2916a44812e..d3c9afde3f9 100644
--- a/libglusterfs/src/fd.h
+++ b/libglusterfs/src/fd.h
@@ -110,4 +110,13 @@ 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_set (fd_t *fd, xlator_t *xlator, uint64_t value);
+
+int
+__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);
+
#endif /* _FD_H */