OSDN Git Service

xfs: add helpers to allocate and initialize fresh btree roots
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 30 May 2018 05:18:09 +0000 (22:18 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 30 May 2018 15:03:14 +0000 (08:03 -0700)
commit73d6b42aa4dcdd7cdc07a945f035b0c1ca48f891
tree6220e252945fcf43b943812defbd99265d2e9fc6
parent0a9633fa2f9a7ae52e2068fd706e2dee10be94a0
xfs: add helpers to allocate and initialize fresh btree roots

Add a pair of helper functions to allocate and initialize fresh btree
roots.  The repair functions will use these as part of recreating
corrupted metadata.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
fs/xfs/scrub/repair.c
fs/xfs/scrub/repair.h