LAFS_BUG(!test_bit(B_IOLock, &ib->b.flags), &ib->b);
+ LAFS_BUG(!test_bit(B_Dirty, &ib->b.flags) &&
+ !test_bit(B_Realloc, &ib->b.flags), &ib->b);
+
LAFS_BUG(!test_bit(B_Valid, &ib->b.flags) && ib->depth > 0, &ib->b);
if (ib->depth <= 1) {
case 1: /* everything was incorporated - hurray */
lafs_iounlock_block(&new->b);
lafs_iblock_free(new);
+ LAFS_BUG(!test_bit(B_Dirty, &ib->b.flags) &&
+ !test_bit(B_Realloc, &ib->b.flags), &ib->b);
/* Don't need to dirty, it is already dirty */
break;