ret = walk_down_tree(trans, root, path, wc);
if (ret < 0) {
err = ret;
+ printk(KERN_ERR "%s:%d: walk_down_tree ret=%d\n", __FUNCTION__, __LINE__, ret);
break;
}
ret = walk_up_tree(trans, root, path, wc, BTRFS_MAX_LEVEL);
if (ret < 0) {
err = ret;
+ printk(KERN_ERR "%s:%d: walk_up_tree ret=%d\n", __FUNCTION__, __LINE__, ret);
break;
}
}
}
btrfs_release_path(path);
- if (err)
+ if (err) {
+ printk(KERN_ERR "%s:%d: going to out_end_trans ret=%d\n", __FUNCTION__, __LINE__, ret);
goto out_end_trans;
+ }
ret = btrfs_del_root(trans, tree_root, &root->root_key);
if (ret) {