btrfs: make btrfs_destroy_pinned_extent() return void
authorFilipe Manana <fdmanana@suse.com>
Fri, 30 Jun 2023 15:03:48 +0000 (16:03 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2023 12:52:12 +0000 (14:52 +0200)
commit46d81ebd4a521797481ef193397c099eaf97e83f
tree3b721b58c7baff6d480c73d8515ece7795f2cca5
parentaec5716c3e51a34ae8d98d287613b219ba267105
btrfs: make btrfs_destroy_pinned_extent() return void

Currently btrfs_destroy_pinned_extent() is always returning 0 no matter
what and its caller ignores its return value (as well everything up in
the call chain). This is because this is called in the transaction abort
path, where we can't even deal with any errors since we are in a critical
situation already and cleanup of resources is done in a best effort
fashion.

So make btrfs_destroy_pinned_extent() return void.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c