From db270734d8b4208e00ce9de5af1af7ee11823f6d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 24 Feb 2010 10:41:15 +1030 Subject: tdb: cleanup: tdb_release_extra_locks() helper Move locking intelligence back into lock.c, rather than open-coding the lock release in transaction.c. Signed-off-by: Rusty Russell --- lib/tdb/common/tdb_private.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/tdb/common/tdb_private.h') diff --git a/lib/tdb/common/tdb_private.h b/lib/tdb/common/tdb_private.h index 1af975de6e..32c05210ba 100644 --- a/lib/tdb/common/tdb_private.h +++ b/lib/tdb/common/tdb_private.h @@ -235,6 +235,7 @@ int tdb_brlock(struct tdb_context *tdb, int tdb_brunlock(struct tdb_context *tdb, int rw_type, tdb_off_t offset, size_t len); bool tdb_have_extra_locks(struct tdb_context *tdb); +void tdb_release_extra_locks(struct tdb_context *tdb); int tdb_transaction_lock(struct tdb_context *tdb, int ltype); int tdb_transaction_unlock(struct tdb_context *tdb, int ltype); int tdb_brlock_upgrade(struct tdb_context *tdb, tdb_off_t offset, size_t len); -- cgit