btrfs: make btrfs_destroy_delayed_refs() return void
[ Upstream commit 99f09ce3 ] btrfs_destroy_delayed_refs() always returns 0 and its single caller does not check its return value, as it also returns void, and so does the callers' caller and so on. This is because we are in the transaction abort path, where we have no way to deal with errors (we are in a critical situation) and all cleanup of resources works in a best effort fashion. So make btrfs_destroy_delayed_refs() return void. Reviewed-by:Qu Wenruo <wqu@suse.com> Signed-off-by:
Filipe Manana <fdmanana@suse.com> Signed-off-by:
David Sterba <dsterba@suse.com> Stable-dep-of: fb33eb2e ("btrfs: fix leak of qgroup extent records after transaction abort") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please register or sign in to comment