diff options
| author | Brian Foster <[email protected]> | 2019-10-13 17:10:34 -0700 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2019-10-21 09:04:58 -0700 |
| commit | 78d7aabdeea38368dc5e0aff2d3d1c353a7ab344 (patch) | |
| tree | 6bcfb1000a5dcfa27478a18de329e12c55d320eb /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 4a65b7c2c72c3940a4472c49743fdb65a03a9935 (diff) | |
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 <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions