btrfs: handle invalid extent item reference found in find_first_extent_item()
authorDavid Sterba <dsterba@suse.com>
Wed, 24 Jan 2024 21:49:02 +0000 (22:49 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:51 +0000 (16:24 +0100)
commitf626a0f5b85614609716d78b94e2e5795b915d92
tree9fc35f1bdd19a93a93e5a941e00322aab6e7c201
parent11dcc86ebac88ca878e661eab4ce2a5a6c611edd
btrfs: handle invalid extent item reference found in find_first_extent_item()

The find_first_extent_item() helper looks up an extent item 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 the allowed range of a
extent item offset.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c