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

Commit 32471dc2 authored by David Sterba's avatar David Sterba Committed by Chris Mason
Browse files

btrfs: remove obsolete comment in btrfs_clean_one_deleted_snapshot



The comment applied when there was a BUG_ON.

Signed-off-by: default avatarDavid Sterba <dsterba@suse.cz>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 9e82bf01
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -1981,9 +1981,6 @@ int btrfs_clean_one_deleted_snapshot(struct btrfs_root *root)
		ret = btrfs_drop_snapshot(root, NULL, 0, 0);
		ret = btrfs_drop_snapshot(root, NULL, 0, 0);
	else
	else
		ret = btrfs_drop_snapshot(root, NULL, 1, 0);
		ret = btrfs_drop_snapshot(root, NULL, 1, 0);
	/*

	 * If we encounter a transaction abort during snapshot cleaning, we
	 * don't want to crash here
	 */
	return (ret < 0) ? 0 : 1;
	return (ret < 0) ? 0 : 1;
}
}