]> 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)
commit463854d552ec81fa34ef4b2244beea855b179275
tree015ce4660196b8caad61036c09b22293d443578b
parent280c1cf06e1c6267483922fcbe534ad1114749cb
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