]> git.itanic.dy.fi Git - linux-stable/commit
xfs: consider minlen sized extents in xfs_rtallocate_extent_block
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Dec 2023 04:57:17 +0000 (05:57 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Fri, 22 Dec 2023 05:48:10 +0000 (11:18 +0530)
commit944df75958807d56f2db9fdc769eb15dd9f0366a
tree472a2164b7eaaff9f19c9e99ab911465fa39a1d8
parentb5785f615918423f4ad4abe28eeb2679db8712b0
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>
fs/xfs/xfs_rtalloc.c