xfs: factor out a xfs_rtallocate helper
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Aug 2024 22:37:10 +0000 (15:37 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 1 Sep 2024 15:58:19 +0000 (08:58 -0700)
commita9f646af4307aca3e9006668264761949d5eb35c
treea70f930a07b663b64b5ba5aad4cda41afc6198d6
parent1e21d1897f935815618d419c94e88452070ec8e5
xfs: factor out a xfs_rtallocate helper

Split out a helper from xfs_rtallocate that performs the actual
allocation.  This keeps the scope of the xfs_rtalloc_args structure
contained, and prepares for rtgroups support.

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