diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-03-23 10:06:53 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-03-23 18:05:07 -0700 |
commit | 5e777b62b0bcb645f165fe5e056fe8862782affc (patch) | |
tree | a38ce3533a204c4d85951073e6598ca576b620b9 /kernel | |
parent | 6edb181053f067cee64d4239830062cb40ddab00 (diff) |
xfs: bmap scrubber should do rmap xref with bmap for sparse files
When we're scanning an extent mapping inode fork, ensure that every rmap
record for this ifork has a corresponding bmbt record too. This
(mostly) provides the ability to cross-reference rmap records with bmap
data. The rmap scrubber cannot do the xref on its own because that
requires taking an ilock with the agf lock held, which violates our
locking order rules (inode, then agf).
Note that we only do this for forks that are in btree format due to the
increased complexity; or forks that should have data but suspiciously
have zero extents because the inode could have just had its iforks
zapped by the inode repair code and now we need to reclaim the old
extents.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions