]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: tree-checker: check for overlapping extent items
authorJosef Bacik <josef@toxicpanda.com>
Wed, 3 Aug 2022 18:28:47 +0000 (14:28 -0400)
committerDavid Sterba <dsterba@suse.com>
Wed, 17 Aug 2022 14:20:25 +0000 (16:20 +0200)
commit4c4c9096e896a1008394fad45e72c51249057fc3
tree015ce4660196b8caad61036c09b22293d443578b
parente259fff0ee2f93106a43ce5b292dc1c3bc8aeef0
btrfs: tree-checker: check for overlapping extent items

We're seeing a weird problem in production where we have overlapping
extent items in the extent tree.  It's unclear where these are coming
from, and in debugging we realized there's no check in the tree checker
for this sort of problem.  Add a check to the tree-checker to make sure
that the extents do not overlap each other.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-checker.c