]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Sep 2022 08:31:35 +0000 (10:31 +0200)
commit8a239dd886e25d03bb2581c8ab30e8a1a12446b1
tree2e9e2f5b3c8b98d215bf99e20a9028a2a2a3fa2a
parentb83e1567af28055b9a0bb7b10fcdd58b02d00954
btrfs: tree-checker: check for overlapping extent items

[ Upstream commit 899b7f69f244e539ea5df1b4d756046337de44a5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/tree-checker.c