mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
xfs: consider minlen sized extents in xfs_rtallocate_extent_block
minlen is the lower bound on the extent length that the caller can accept, and maxlen is at this point the maximal available length. This means a minlen extent is perfectly fine to use, so do it. This matches the equivalent logic in xfs_rtallocate_extent_exact that also accepts a minlen sized extent. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
This commit is contained in:
parent
b5785f6159
commit
944df75958
@ -309,7 +309,7 @@ xfs_rtallocate_extent_block(
|
||||
/*
|
||||
* Searched the whole thing & didn't find a maxlen free extent.
|
||||
*/
|
||||
if (minlen < maxlen && besti != -1) {
|
||||
if (minlen <= maxlen && besti != -1) {
|
||||
xfs_rtxlen_t p; /* amount to trim length by */
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user