xfs: introduce scrubber cross-referencing stubs

Create some stubs that will be used to cross-reference metadata records.
The actual cross-referencing will be filled in by subsequent patches.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
This commit is contained in:
Darrick J. Wong
2018-01-16 18:53:05 -08:00
parent 858333dcf0
commit 166d76410d
7 changed files with 157 additions and 1 deletions

View File

@@ -577,6 +577,17 @@ out_buf:
return error;
}
/* Cross-reference with the other btrees. */
STATIC void
xfs_scrub_inode_xref(
struct xfs_scrub_context *sc,
xfs_ino_t ino,
struct xfs_dinode *dip)
{
if (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)
return;
}
/* Scrub an inode. */
int
xfs_scrub_inode(
@@ -626,6 +637,7 @@ xfs_scrub_inode(
xfs_scrub_ino_set_preen(sc, ino, bp);
}
xfs_scrub_inode_xref(sc, ino, dip);
out:
if (bp)
xfs_trans_brelse(sc->tp, bp);