ext4: check for inconsistent extents between index and leaf block
authorZhang Yi <yi.zhang@huawei.com>
Wed, 8 Sep 2021 12:08:49 +0000 (20:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Dec 2021 11:25:54 +0000 (12:25 +0100)
commit0875873b2a97ab201fbb44ae4cd939ed52847d18
tree9264ecc4e36e3eb29b8a32bd99a6350ce409192a
parent76366c024f56545355c815f31837dd1175c60da6
ext4: check for inconsistent extents between index and leaf block

commit 9c6e071913792d80894cd0be98cc3c4b770e26d3 upstream.

Now that we can check out overlapping extents in leaf block and
out-of-order index extents in index block. But the .ee_block in the
first extent of one leaf block should equal to the .ei_block in it's
parent index extent entry. This patch add a check to verify such
inconsistent between the index and leaf block.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://lore.kernel.org/r/20210908120850.4012324-3-yi.zhang@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/extents.c