]> git.dujemihanovic.xyz Git - linux.git/commit
btrfs: handle invalid root reference found in btrfs_find_root()
authorDavid Sterba <dsterba@suse.com>
Tue, 23 Jan 2024 22:28:24 +0000 (23:28 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:47 +0000 (16:24 +0100)
commit9dcb6ed9ce53d24e7b7fba7e02512787cd4dfa72
tree997c9f57a794c40de59ac4460f11b6f7327f0700
parent0fe29838ba0aee39a7bca46bb47e7ca348a9e161
btrfs: handle invalid root reference found in btrfs_find_root()

The btrfs_find_root() looks up a root by a key, allowing to do an
inexact search when key->offset is -1.  It's never expected to find such
item, as it would break allowed the range of a root id.

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