]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: xrep_findroot_block should reject root blocks with siblings
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 18 Oct 2018 06:20:26 +0000 (17:20 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 18 Oct 2018 06:20:26 +0000 (17:20 +1100)
commitcab3c1056ce92a58b5eeeecb8346120fafdb99b5
treea2d3ec349747dd8f178ebac05af483079e28c283
parent3902ec53b2bbe61f5810dc363160f9b09c907e44
xfs: xrep_findroot_block should reject root blocks with siblings

In xrep_findroot_block, if we find a candidate root block with sibling
pointers or sibling blocks on the same tree level, we should not return
that block as a tree root because root blocks cannot have siblings.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/scrub/repair.c