]> git.neil.brown.name Git - LaFS.git/commit
Remove incorrect assumption from erase_dblock
authorNeilBrown <neilb@suse.de>
Wed, 2 Sep 2009 00:55:07 +0000 (10:55 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 2 Sep 2009 00:55:07 +0000 (10:55 +1000)
commit1cd96dfef30f8cdeaabbffd48e6d295767768a40
treeb9ed13b5632035d4b44e0a9098424953c9cd3ee3
parent4da584f40cb80dbdefa569ac71641785af5757ea
Remove incorrect assumption from erase_dblock

When erasing a pinned dblock, it might not be on the leaf list.
The fact that we have it locked can mean that it wasn't put there
yet.
So check leaf list membership explicitly.

Note that it cannot be in write-back, as we should have
waited for any writeback to finish, and won't have started any.
block.c