]> git.hungrycats.org Git - linux/commitdiff
zygo: btrfs: more snapshot delete instrumentation
authorZygo Blaxell <zblaxell@thirteen.furryterror.org>
Tue, 2 Aug 2016 00:58:21 +0000 (20:58 -0400)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Tue, 2 Aug 2016 00:58:21 +0000 (20:58 -0400)
fs/btrfs/extent-tree.c

index 37c983a7917271bea9016ffe26bed5888a1e3bf2..adcbfa8713e5770cd959b5e192b5e09e150a968e 100644 (file)
@@ -8986,12 +8986,14 @@ int btrfs_drop_snapshot(struct btrfs_root *root,
                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;
                }
 
@@ -9039,8 +9041,10 @@ int btrfs_drop_snapshot(struct btrfs_root *root,
                }
        }
        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) {