]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
btrfs: replace BUG() with error handling in __btrfs_balance()
authorAdarsh Das <adarshdas950@gmail.com>
Tue, 3 Feb 2026 17:23:57 +0000 (22:53 +0530)
committerDavid Sterba <dsterba@suse.com>
Wed, 18 Feb 2026 14:25:53 +0000 (15:25 +0100)
commitbe6324a809dbda76d5fdb23720ad9b20e5c1905c
tree9e157fc82caa61ec51efdec1f5d462bbb5067f5b
parent1c88823a1958011343fa33b12a40fe42e829d9d9
btrfs: replace BUG() with error handling in __btrfs_balance()

We search with offset (u64)-1 which should never match exactly.
Previously this was handled with BUG(). Now logs an error
and return -EUCLEAN.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Adarsh Das <adarshdas950@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c