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)
commit1002ff45eff5cb70b0f2da28df488c789af2aeab
treea2d3ec349747dd8f178ebac05af483079e28c283
parentdddde68b8f06dd83486124b8d245e7bfb15c185d
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