diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-10-25 17:14:28 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-10-26 18:32:11 -0700 |
commit | 81fbfc7cfc1299ee6520db881902a3d234e6c73a (patch) | |
tree | 21eccbaff44bca0a47e6a86f94519670121be535 /fs/xfs/scrub/scrub.h | |
parent | f83480d33b5be815d1f8b368b417cca26368028f (diff) |
xfs: teach xfs_btree_has_record to return false if there are gaps
The current implementation of xfs_btree_has_record returns true if it
finds /any/ record within the given range. Unfortunately, that's not
what the predicate is supposed to do -- it's supposed to test if the
/entire/ range is covered by records.
Therefore, enhance the routine to check that the first record it
encounters starts earlier or at the same point as the low key, the last
record ends at or after the same point as the high key, and that there
aren't any gaps in the records.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/scrub/scrub.h')
0 files changed, 0 insertions, 0 deletions