From: NeilBrown Date: Thu, 10 Jun 2010 06:34:28 +0000 (+1000) Subject: truncate: when we clear an InoIdx block set the set. X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=5f3b22c67d693ee2d433f531a2e99b98cceaff70;p=LaFS.git truncate: when we clear an InoIdx block set the set. We use depth == 0 to saw the index block is empty. Signed-off-by: NeilBrown --- diff --git a/inode.c b/inode.c index 3c0ca32..5d17416 100644 --- a/inode.c +++ b/inode.c @@ -814,6 +814,7 @@ void lafs_inode_handle_orphan(struct datablock *b) lafs_dirty_iblock(ib); lafs_walk_leaf_index(ib, prune, ib); lafs_clear_index(ib); + ib->depth = 0; } if (test_bit(B_Dirty, &ib->b.flags)) lafs_incorporate(fs, ib);