]> git.neil.brown.name Git - LaFS.git/commit
unhash iblock when it becomes empty.
authorNeilBrown <neilb@suse.de>
Sun, 13 Jun 2010 07:16:30 +0000 (17:16 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 13 Jun 2010 07:20:00 +0000 (17:20 +1000)
commit74c46c4407615bb8f4845af67e1bdf5c5b1b4bb3
treea176f091a466b8b73b8ff9dd61348450a5bebb69
parentc5b21eb63e01b2f1c3ad5e030f9734ab4248f492
unhash iblock when it becomes empty.

Our handling of empty iblocks was flawed - when they become empty they
stayed in the hash table and could be found again - bad.

So unhash them.
To keep things tidy, always use hlist_del_init to removing things from
the hash table, and assert that they are present before removing, and
that they aren't before adding.

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