aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/root-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/root-tree.c')
-rw-r--r--fs/btrfs/root-tree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c
index 88bcdd33f56e..e2b9b86af696 100644
--- a/fs/btrfs/root-tree.c
+++ b/fs/btrfs/root-tree.c
@@ -179,6 +179,11 @@ int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
179 ret = btrfs_search_slot(trans, root, key, path, -1, 1); 179 ret = btrfs_search_slot(trans, root, key, path, -1, 1);
180 if (ret < 0) 180 if (ret < 0)
181 goto out; 181 goto out;
182 if (ret) {
183btrfs_print_leaf(root, path->nodes[0]);
184printk("failed to del %Lu %u %Lu\n", key->objectid, key->type, key->offset);
185
186 }
182 BUG_ON(ret != 0); 187 BUG_ON(ret != 0);
183 leaf = path->nodes[0]; 188 leaf = path->nodes[0];
184 ri = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_item); 189 ri = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_item);