]> git.neil.brown.name Git - LaFS.git/commit
lafs_refile: factor out check for unpinnable data blocks.
authorNeilBrown <neilb@suse.de>
Wed, 15 Sep 2010 04:57:02 +0000 (14:57 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 15 Sep 2010 04:57:02 +0000 (14:57 +1000)
commite08aa27380bab6dd3f22b2b36dcf728366794d43
tree5559d182c03d922ea7a0d47a4b07fca2a8450170
parent787992e2fa83048d7c1dd6ede6a326a5fac18190
lafs_refile: factor out check for unpinnable data blocks.

Data blocks can be unpinned while refcounts are still present.

Factor that case out into a stand-alone test.

We still test for datablocks being unpinnable in the 'refcnt==0'
case as PinPending might have only just been cleared.

This leaves a large bulk of tests all of which depend on
refcnt reaching zero which can be improved in a subsequent patch.

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