btrfs: handle root deletion lookup error in btrfs_del_root()
authorDavid Sterba <dsterba@suse.com>
Tue, 23 Jan 2024 22:19:19 +0000 (23:19 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:47 +0000 (16:24 +0100)
commit0fe29838ba0aee39a7bca46bb47e7ca348a9e161
tree345cba16e8a235561c8c060d99769d575ea15aec
parent97ec332068f00bb1da73bc25949b4be3a08e36f8
btrfs: handle root deletion lookup error in btrfs_del_root()

We're deleting a root and looking it up by key does not succeed, this
is an inconsistent state and we can't do anything. All callers handle
errors and abort a transaction.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/root-tree.c