* first block in the parent, we need to recurse up and
* resolve the parent in the same way.
*/
+ if (!list_empty(&ib->children))
+ /* If there are children, we cannot treat this block as empty. */
+ return;
if (test_bit(B_InoIdx, &ib->b.flags)) {
/* Empty InoIdx blocks are allowed. However depth must
* be zero. This is where we suddenly collapse a now-empty
*/
return;
}
- if (!list_empty(&ib->children))
- /* If there are children, we cannot treat this block as empty. */
- return;
if (ib->depth > 1 && ! lafs_index_empty(ib))
return;
if (ib->depth == 1 && lafs_leaf_next(ib, 0) != 0xFFFFFFFF)