]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: track best extent from cntbt lastblock scan in alloc cursor
authorBrian Foster <bfoster@redhat.com>
Thu, 16 Jan 2020 22:13:32 +0000 (17:13 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 16 Jan 2020 22:13:32 +0000 (17:13 -0500)
commit19fe42e37b3ffeeb7bb273d245bd3132789a8baa
tree1d53c6015bf2d66f37d1cf8d0eee1361f0a60e0f
parente055d59e7230dc61413b0266cc929273871daa68
xfs: track best extent from cntbt lastblock scan in alloc cursor

Source kernel commit: c62321a2a0ea3c53ab7a41cf4d4071ee37bcc2c0

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_alloc.c