summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_rmap_btree.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-02-19 17:01:34 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2020-03-03 18:47:34 -0800
commit153755c4546c23ea37bbc858bb9762ff210b7f1c (patch)
tree86e2677c16f61c1941c3b4534cf8966b0093c072 /fs/xfs/libxfs/xfs_rmap_btree.h
parent1527543616cb93c2687cff9346d263b49e7db289 (diff)
xfs: support bulk loading of staged btrees
Add a new btree function that enables us to bulk load a btree cursor. This will be used by the upcoming online repair patches to generate new btrees. This avoids the programmatic inefficiency of calling xfs_btree_insert in a loop (which generates a lot of log traffic) in favor of stamping out new btree blocks with ordered buffers, and then committing both the new root and scheduling the removal of the old btree blocks in a single transaction commit. The design of this new generic code is based off the btree rebuilding code in xfs_repair's phase 5 code, with the explicit goal of enabling us to share that code between scrub and repair. It has the additional feature of being able to control btree block loading factors. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_rmap_btree.h')
0 files changed, 0 insertions, 0 deletions