diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-09-22 09:28:53 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-10-19 11:45:14 -0700 |
commit | d47fef9342d0c322f69695a0eb2e2a643575b66d (patch) | |
tree | b11feb92d7871885d1f16d5229033e7bbf6aac80 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | efb79ea31067ae3dd0f348eb06e6b9a5e9907078 (diff) |
xfs: don't track firstrec/firstkey separately in xchk_btree
The btree scrubbing code checks that the records (or keys) that it finds
in a btree block are all in order by calling the btree cursor's
->recs_inorder function. This of course makes no sense for the first
item in the block, so we switch that off with a separate variable in
struct xchk_btree.
Christoph helped me figure out that the variable is unnecessary, since
we just accessed bc_ptrs[level] and can compare that against zero. Use
that, and save ourselves some memory space.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions