cmd_migrate fix

missing check_mark_super call - would trigger an assertion if
link_data() was called before we wrote any data
This commit is contained in:
Kent Overstreet 2017-03-19 17:51:23 -08:00
parent 2ea91f85d8
commit 54e00cf016

View File

@ -335,6 +335,8 @@ static void link_data(struct bch_fs *c, struct bch_inode_unpacked *dst,
die("error reserving space in new filesystem: %s", die("error reserving space in new filesystem: %s",
strerror(-ret)); strerror(-ret));
bch2_check_mark_super(c, &e->k_i, false);
ret = bch2_btree_insert(c, BTREE_ID_EXTENTS, &e->k_i, ret = bch2_btree_insert(c, BTREE_ID_EXTENTS, &e->k_i,
&res, NULL, NULL, 0); &res, NULL, NULL, 0);
if (ret) if (ret)