When a grow the index tree for the root inode, the B_Root
bit needs to be moved to the new block.
Signed-off-by: NeilBrown <neilb@suse.de>
ib->data = new->data; new->data = NULL;
clear_bit(B_InoIdx, &ib->b.flags);
lafs_hash_iblock(ib);
-
set_bit(B_InoIdx, &new->b.flags);
+ if (test_and_clear_bit(B_Root, &ib->b.flags))
+ set_bit(B_Root, &new->b.flags);
+
new->b.fileaddr = 0;
new->b.inode = ib->b.inode;
new->b.parent = ib->b.parent;