]> git.baikalelectronics.ru Git - kernel.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)
commit9d7ea214fc60173838bf35bb810b3e64f2025624
tree7340bc9edf8dcc4bb37941ae68479bb3877eaf81
parentb88135dce9162863d85faf97681ae9158c17b641
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