Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6596a928 authored by Josef Bacik's avatar Josef Bacik Committed by Chris Mason
Browse files

Btrfs: don't bug_on when we fail when cleaning up transactions



There is no reason for this sort of jackassery.  Thanks,

Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
Signed-off-by: default avatarChris Mason <chris.mason@fusionio.com>
parent b6c60c80
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1942,6 +1942,5 @@ int btrfs_clean_one_deleted_snapshot(struct btrfs_root *root)
	 * If we encounter a transaction abort during snapshot cleaning, we
	 * don't want to crash here
	 */
	BUG_ON(ret < 0 && ret != -EAGAIN && ret != -EROFS);
	return 1;
	return (ret < 0) ? 0 : 1;
}