tdb: cleanup: find_nestlock() helper.
commitce41411c84760684ce539b6a302a0623a6a78a72
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 17 Feb 2010 02:05:54 +0000 (17 12:35 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 17 Feb 2010 02:05:54 +0000 (17 12:35 +1030)
tree4ca5396852d3ae341abfba859a6a18e942cdbf1f
parentdb270734d8b4208e00ce9de5af1af7ee11823f6d
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>
lib/tdb/common/lock.c