xfs: repair the AGI
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 10 Aug 2018 05:43:04 +0000 (22:43 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 10 Aug 2018 18:44:31 +0000 (11:44 -0700)
commit13942aa94a8b5df662d93c42c307b2f50cbe88b0
tree38276489cfc812cd420471d86bc4cf1a245e7f65
parent0e93d3f43ec7d3308bff25ce1be81d46330168c9
xfs: repair the AGI

Rebuild the AGI header items with some help from the rmapbt.

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