]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: push the calls to xfs_rtallocate_range out to xfs_bmap_rtalloc
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Aug 2024 22:36:56 +0000 (15:36 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 1 Sep 2024 15:58:19 +0000 (08:58 -0700)
commitc8e5a0bfe0086d4b99f95d98a946ebc9a56ecf20
treeef61f4a68ade2895cfa01776bb43ce1bf014976c
parent237130564ef3745ab4a8b5ba09da929befc761d9
xfs: push the calls to xfs_rtallocate_range out to xfs_bmap_rtalloc

Currently the various low-level RT allocator functions call into
xfs_rtallocate_range directly, which ties them into the locking protocol
for the RT bitmap.  As these helpers already return the allocated range,
lift the call to xfs_rtallocate_range into xfs_bmap_rtalloc so that it
happens as high as possible in the stack, which will simplify future
changes to the locking protocol.

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