xfs: move btree bulkload record initialization to ->get_record implementations
authorDarrick J. Wong <djwong@kernel.org>
Fri, 15 Dec 2023 18:03:29 +0000 (10:03 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 15 Dec 2023 18:03:29 +0000 (10:03 -0800)
commit6dfeb0c2ecde71d61af77f65eabbdd6ca9315161
treeca2780f8b867c57d3ebec89b6854c88860b56062
parenta20ffa7d9f863056364b11a680145a76ef15acb2
xfs: move btree bulkload record initialization to ->get_record implementations

When we're performing a bulk load of a btree, move the code that
actually stores the btree record in the new btree block out of the
generic code and into the individual ->get_record implementations.
This is preparation for being able to store multiple records with a
single indirect call.

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