xfs: consolidate the xfs_alloc_lookup_* helpers
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Feb 2024 20:35:14 +0000 (12:35 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:35:14 +0000 (12:35 -0800)
commit73a8fd93c421c4a6ac2c581c4d3478d3d68a0def
treeab2ca8e3eb6c3170071289386114a359577aec09
parente9e66df8bfa4132d905543a6b099ec8a3380b732
xfs: consolidate the xfs_alloc_lookup_* helpers

Add a single xfs_alloc_lookup helper to sort out the argument passing and
setting of the active flag instead of duplicating the logic three times.

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/libxfs/xfs_alloc.c