From: Zygo Blaxell Date: Tue, 2 Aug 2016 00:58:21 +0000 (-0400) Subject: zygo: btrfs: more snapshot delete instrumentation X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=476e123bbcd3ca9ae248a2b1959b80ab98af32aa;p=linux zygo: btrfs: more snapshot delete instrumentation --- diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 37c983a791727..adcbfa8713e57 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -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) {