From: Rusty Russell Date: Mon, 22 Feb 2010 03:04:10 +0000 (+1030) Subject: tdb: cleanup: tdb_have_extra_locks() helper X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=d92b8a7d9a050eb9735e48a8d37a5833500242d3;hp=d92b8a7d9a050eb9735e48a8d37a5833500242d3 tdb: cleanup: tdb_have_extra_locks() helper In many places we check whether locks are held: add a helper to do this. The _tdb_lockall() case has already checked for the allrecord lock, so the extra work done by tdb_have_extra_locks() is merely redundant. Signed-off-by: Rusty Russell ---