diff options
| author | Filipe Manana <fdmanana@suse.com> | 2025-07-16 11:41:21 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-08-20 18:36:31 +0200 |
| commit | 76a9cad73bfe5514f246b3ec7ca91bd41b3bae28 (patch) | |
| tree | a609fe43d8f1d9f4735226765c4342dd483f8abd /include/net/aligned_data.h | |
| parent | 1facecd77a3ed3a6ac4d9c0ebc5b0f471423b31d (diff) | |
btrfs: error on missing block group when unaccounting log tree extent buffers
commit fc5799986fbca957e2e3c0480027f249951b7bcf upstream.
Currently we only log an error message if we can't find the block group
for a log tree extent buffer when unaccounting it (while freeing a log
tree). A missing block group means something is seriously wrong and we
end up leaking space from the metadata space info. So return -ENOENT in
case we don't find the block group.
CC: stable@vger.kernel.org # 6.12+
Reviewed-by: Boris Burkov <boris@bur.io>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions
