summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2019-10-13 17:10:34 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2019-10-21 09:04:58 -0700
commit78d7aabdeea38368dc5e0aff2d3d1c353a7ab344 (patch)
tree6bcfb1000a5dcfa27478a18de329e12c55d320eb /tools/perf/scripts/python
parent4a65b7c2c72c3940a4472c49743fdb65a03a9935 (diff)
downloadlinux-78d7aabdeea38368dc5e0aff2d3d1c353a7ab344.tar.gz
linux-78d7aabdeea38368dc5e0aff2d3d1c353a7ab344.zip
xfs: refactor and reuse best extent scanning logic
The bnobt "find best" helper implements a simple btree walker function. This general pattern, or a subset thereof, is reused in various parts of a near mode allocation operation. For example, the bnobt left/right scans are each iterative btree walks along with the cntbt lastblock scan. Rework this function into a generic btree walker, add a couple parameters to control termination behavior from various contexts and reuse it where applicable. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions