aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorBrian Foster <[email protected]>2019-10-13 17:10:33 -0700
committerDarrick J. Wong <[email protected]>2019-10-21 09:04:58 -0700
commit396bbf3c657e540162b7297e426e5939c2909854 (patch)
treea43a7d5cbd91f334c1d45820a3cff2157ae5dee7 /tools/perf/scripts/python/netdev-times.py
parentc62321a2a0ea3c53ab7a41cf4d4071ee37bcc2c0 (diff)
xfs: refactor cntbt lastblock scan best extent logic into helper
The cntbt lastblock scan checks the size, alignment, locality, etc. of each free extent in the block and compares it with the current best candidate. This logic will be reused by the upcoming optimized cntbt algorithm, so refactor it into a separate helper. Note that acur->diff is now initialized to -1 (unsigned) instead of 0 to support the more granular comparison logic in the new helper. 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/netdev-times.py')
0 files changed, 0 insertions, 0 deletions