xfs: refactor btree cursor allocation function
authorDarrick J. Wong <djwong@kernel.org>
Thu, 16 Sep 2021 19:25:32 +0000 (12:25 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 19 Oct 2021 18:45:15 +0000 (11:45 -0700)
commit56370ea6e5fe3e3d6e1ca2da58f95fb0d5e1779f
tree451401b83adf0d7f33a79fd96d791169b3fe2ee2
parent69724d920e7c30ca4421af615c499e92cfcc550b
xfs: refactor btree cursor allocation function

Refactor btree allocation to a common helper.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Chandan Babu R <chandan.babu@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_alloc_btree.c
fs/xfs/libxfs/xfs_bmap_btree.c
fs/xfs/libxfs/xfs_btree.h
fs/xfs/libxfs/xfs_ialloc_btree.c
fs/xfs/libxfs/xfs_refcount_btree.c
fs/xfs/libxfs/xfs_rmap_btree.c