aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/extent-tree.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index cec05e100142..41133b064d72 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -6309,9 +6309,13 @@ int btrfs_drop_snapshot(struct btrfs_root *root,
6309 NULL, NULL); 6309 NULL, NULL);
6310 BUG_ON(ret < 0); 6310 BUG_ON(ret < 0);
6311 if (ret > 0) { 6311 if (ret > 0) {
6312 ret = btrfs_del_orphan_item(trans, tree_root, 6312 /* if we fail to delete the orphan item this time
6313 root->root_key.objectid); 6313 * around, it'll get picked up the next time.
6314 BUG_ON(ret); 6314 *
6315 * The most common failure here is just -ENOENT.
6316 */
6317 btrfs_del_orphan_item(trans, tree_root,
6318 root->root_key.objectid);
6315 } 6319 }
6316 } 6320 }
6317 6321