]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: fix bogosity when rmapping new AGFL blocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 2 Oct 2016 23:40:32 +0000 (10:40 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 2 Oct 2016 23:40:32 +0000 (10:40 +1100)
commit636f06d882cfc06ffd2933af86a16dec1fc8a59f
tree22dccdd8add6cd4c57d6d4d97cfaae3e95b1b93d
parent81f8132ae3611a6e7bd5bd8adeb68f71a64a7796
xfs_repair: fix bogosity when rmapping new AGFL blocks

When repair rebuilds the AGFL, the blocks can come either from the
in-core free space tree or they can come as a result of overestimating
the number of blocks needed to rebuild the on-disk free space btree.
The code in here was trying to only create rmap records for AGFL blocks
that did /not/ come from free space btree rebuild overestimation, but
was totally broken.  The initial and check conditions were totally wrong
if there was any overflow.  Remove a stray debug printf too.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/rmap.c