]> git.itanic.dy.fi Git - linux-stable/commit
xfs: factor out a xfs_rtalloc_sumlevel helper
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Dec 2023 04:57:32 +0000 (05:57 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Fri, 22 Dec 2023 05:48:14 +0000 (11:18 +0530)
commit8ceee72fdb6f26fe924e02b3342353bac5efa42d
tree9cd0a6b6307c744a8a67a62b7f35cf55270025b3
parent3c97c9f78d23c7e449fc9a0865b40f44748c3011
xfs: factor out a xfs_rtalloc_sumlevel helper

xfs_rtallocate_extent_size has two loops with nearly identical logic
in them.  Split that logic into a separate xfs_rtalloc_sumlevel helper.

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