]> git.neil.brown.name Git - LaFS.git/commit
Add has_ref to help debugging.
authorNeilBrown <neilb@suse.de>
Fri, 25 Jun 2010 09:15:32 +0000 (19:15 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 27 Jun 2010 23:14:59 +0000 (09:14 +1000)
commitd26a158e267af9feeddf9feaec2906a6d5b03265
tree9d52165a60b2a4c15bae5e686132741b3438573f
parent3ba20a369b1ff77f1daffa0477258706f44ca9e4
Add has_ref to help debugging.

It is sometimes helpful to BUG_ON whether a block has a certain
ref or not.
So add "has_ref" which returns -1 if we don't know (debugging
disabled) or  0/1 depending on whether ref is held.

Signed-off-by: NeilBrown <neilb@suse.de>
block.c
lafs.h