summaryrefslogtreecommitdiffstats
path: root/xlators/features/locks/src/common.h
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2009-10-15 19:36:47 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-16 05:13:01 -0700
commitc8f39bea04c6021243d1ab2bcea450a0f067aabc (patch)
treefdfcc4c0bc7f852184476a274060c2144ad3c691 /xlators/features/locks/src/common.h
parentd3722f7546bdcfeed7cf3c2745c1bfafa7fa79a4 (diff)
locks: keep ref on the inode while locks are held
keeping refs on the inode while there are held locks prevents the inode from getting pruned away Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 112 (parallel deletion of files mounted by different clients on the same back-end hangs and/or does not completely delete) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=112
Diffstat (limited to 'xlators/features/locks/src/common.h')
-rw-r--r--xlators/features/locks/src/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/features/locks/src/common.h b/xlators/features/locks/src/common.h
index 06f104f52..78de8432f 100644
--- a/xlators/features/locks/src/common.h
+++ b/xlators/features/locks/src/common.h
@@ -49,4 +49,6 @@ void __delete_lock (pl_inode_t *, posix_lock_t *);
void __destroy_lock (posix_lock_t *);
+void pl_update_refkeeper (xlator_t *this, inode_t *inode);
+
#endif /* __COMMON_H__ */