btrfs: make btrfs_destroy_delayed_refs() return void
authorFilipe Manana <fdmanana@suse.com>
Fri, 2 Jun 2023 11:19:42 +0000 (12:19 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:32 +0000 (13:59 +0200)
commit99f09ce309b8307ce8dca209f936e99a7c332214
treefee7f68fed26510fd21343b02e3ba3007bc9cac8
parent184533e3618f4d0b382c1ef3de0ce34e849005d7
btrfs: make btrfs_destroy_delayed_refs() return void

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>
fs/btrfs/disk-io.c