]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: return errors from unpin_extent_range()
authorDavid Sterba <dsterba@suse.com>
Fri, 12 Jan 2024 17:45:24 +0000 (18:45 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:46 +0000 (16:24 +0100)
commit44a6c3437afc7e6fbea090bf3ab98ef751ad2ede
treedbd6e158032cf89f2ea737b12682c604f2e0a5f6
parentc03c89f821e51325d0e592cf625cf5e0a26fa3a7
btrfs: return errors from unpin_extent_range()

Handle the lookup failure of the block group to unpin, this is a logic
error as the block group must exist at this point. If not, something else
must have freed it, like clean_pinned_extents() would do without locking
the unused_bg_unpin_mutex.

Push the errors to the callers, proper handling will be done in followup
patches.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c
fs/btrfs/extent-tree.c