summaryrefslogtreecommitdiffstats
path: root/xlators/features/locks/src/common.h
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2009-10-16 09:12:57 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-16 08:04:31 -0700
commit7bf78408ffec1efbceed17ed2e540d7d0af19763 (patch)
tree98a1c9b8ae048867242932ac00054fd4728c45d2 /xlators/features/locks/src/common.h
parent5d423ab4548c941921c1e64135fec6e15c7787f2 (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: 315 (generation number support) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315
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 fabe8bd840a..59201c9070a 100644
--- a/xlators/features/locks/src/common.h
+++ b/xlators/features/locks/src/common.h
@@ -65,4 +65,6 @@ void
grant_blocked_entry_locks (xlator_t *this, pl_inode_t *pl_inode,
pl_entry_lock_t *unlocked, pl_dom_list_t *dom);
+void pl_update_refkeeper (xlator_t *this, inode_t *inode);
+
#endif /* __COMMON_H__ */