When we incorporate a block make sure the depth
doesn't stay 0 unless it really is empty.
Signed-off-by: NeilBrown <neilb@suse.de>
* first block in the parent, we need to recurse up and
* resolve the parent in the same way.
*/
+ if (ib->depth == 0)
+ /* Probably has entries now. If not, will reset soon anyway */
+ ib->depth = 1;
if (!list_empty(&ib->children))
/* If there are children, we cannot treat this block as empty. */
return;