summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2019-06-20 21:52:23 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2019-06-25 07:50:16 -0700
commit973c566e29794eff38a5627761f9e88f69117e9b (patch)
tree3a56432a4c1064f636e60d9b4dddb85781629ad1 /security
parent55e6bea2cf45dc034c7dd50cb0760fe88590725d (diff)
xfs: skip small alloc cntbt logic on NULL cursor
The small allocation helper is implemented in a way that is fairly tightly integrated to the existing allocation algorithms. It expects a cntbt cursor beyond the end of the tree, attempts to locate the last record in the tree and only attempts an AGFL allocation if the cntbt is empty. The upcoming generic algorithm doesn't rely on the cntbt processing of this function. It will only call this function when the cntbt doesn't have a big enough extent or is empty and thus AGFL allocation is the only remaining option. Tweak xfs_alloc_ag_vextent_small() to handle a NULL cntbt cursor and skip the cntbt logic. This facilitates use by the existing allocation code and new code that only requires an AGFL allocation attempt. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions