]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: handle invalid extent item reference found in check_committed_ref()
authorDavid Sterba <dsterba@suse.com>
Wed, 24 Jan 2024 14:37:59 +0000 (15:37 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:47 +0000 (16:24 +0100)
commita4259b6c191119f270561c75eee840363f697c04
treedb8c5b88bbe8cd41c7a79de760b2021e588eb96c
parent7411055db5ce64f836aaffd422396af0075fdc99
btrfs: handle invalid extent item reference found in check_committed_ref()

The check_committed_ref() 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.

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/extent-tree.c