btrfs: handle errors returned from unpin_extent_cache()
authorDavid Sterba <dsterba@suse.com>
Fri, 12 Jan 2024 17:31:40 +0000 (18:31 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:46 +0000 (16:24 +0100)
commitc03c89f821e51325d0e592cf625cf5e0a26fa3a7
treedd1bf3e1c9a99a123cf1458701e701bbdea768e2
parent835cd82649aa5d33045fbf6b393bddc3812e9a10
btrfs: handle errors returned from unpin_extent_cache()

We've had numerous attempts to let function unpin_extent_cache() return
void as it only returns 0. There are still error cases to handle so do
that, in addition to the verbose messages. The only caller
btrfs_finish_one_ordered() will now abort the transaction, previously it
let it continue which could lead to further problems.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_map.c
fs/btrfs/inode.c