]> asedeno.scripts.mit.edu Git - linux.git/commit
xfs: track best extent from cntbt lastblock scan in alloc cursor
authorBrian Foster <bfoster@redhat.com>
Mon, 14 Oct 2019 00:10:32 +0000 (17:10 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 21 Oct 2019 16:04:58 +0000 (09:04 -0700)
commitc62321a2a0ea3c53ab7a41cf4d4071ee37bcc2c0
tree7340bc9edf8dcc4bb37941ae68479bb3877eaf81
parentd6d3aff20377fcb38913152d53c54e0010462ccb
xfs: track best extent from cntbt lastblock scan in alloc cursor

If the size lookup lands in the last block of the by-size btree, the
near mode algorithm scans the entire block for the extent with best
available locality. In preparation for similar best available
extent tracking across both btrees, extend the allocation cursor
with best extent data and lift the associated state from the cntbt
last block scan code. No functional changes.

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>
fs/xfs/libxfs/xfs_alloc.c