xfs: return maximum free size from xfs_rtany_summary()
authorOmar Sandoval <osandov@fb.com>
Mon, 16 Oct 2023 17:43:42 +0000 (10:43 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 19 Oct 2023 15:34:33 +0000 (08:34 -0700)
commit1b5d63963f9820b1c14883ee56b387586ff72aa0
treec674110e06c25bfe705335d0a54a5cd9a20ceed4
parente23aaf450de733044a74bc95528f728478b61c2a
xfs: return maximum free size from xfs_rtany_summary()

Instead of only returning whether there is any free space, return the
maximum size, which is fast thanks to the previous commit. This will be
used by two upcoming optimizations.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_rtalloc.c