tdb: cleanup: find_nestlock() helper.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 22 Apr 2010 04:23:51 +0000 (13:53 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 22 Apr 2010 04:23:51 +0000 (13:53 +0930)
commitcfb154dd0f189f37b937e90144c2eb9e66a26420
tree00eaa6d3d91742a4bc8cfb17fadff7203da3c05b
parentd2dd720b51c4032e5d77d30212da8117d3f119df
tdb: cleanup: find_nestlock() helper.

Factor out two loops which find locks; we are going to introduce a couple
more so a helper makes sense.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from commit ce41411c84760684ce539b6a302a0623a6a78a72)
lib/tdb/common/lock.c