And data blocks in realloc will have been destroyed in
erase_dblock, but there could legitimately be Realloc index blocks
still, so allow them to be handled.
Signed-off-by: NeilBrown <neilb@suse.de>
LAFSI(ino)->trunc_next = next_trunc;
while (ib->uninc_table.pending_cnt || ib->uninc) {
- LAFS_BUG(!test_bit(B_Dirty, &ib->b.flags), &ib->b);
+ /* There should be no Realloc data blocks here
+ * but index blocks might be realloc still.
+ */
+ LAFS_BUG(!test_bit(B_Dirty, &ib->b.flags) &&
+ !test_bit(B_Realloc, &ib->b.flags), &ib->b);
lafs_incorporate(fs, ib);
}
if (test_bit(B_InoIdx, &ib->b.flags) ||