[0/4] xfs: btree bulk loading
mbox series

Message ID 157063967800.2912204.4012307770844087647.stgit@magnolia
Headers show
  • xfs: btree bulk loading
Related show


Darrick J. Wong Oct. 9, 2019, 4:47 p.m. UTC
Hi all,

This series creates a bulk loading function for metadata btree cursors.

We start by creating the idea of a "fake root" for the btree type so
that we can use a special btree cursor to stage a new btree without
altering anything that might already exist.

Next, we add utility functions to compute the desired btree shape for a
given number of records.

Finally we extend all four per-AG btree cursor types to support staging
cursors and therefore bulk loading.  This will be used by upcoming patch
series to implement online repair and refactor offline repair.

If you're going to start using this mess, you probably ought to just
pull from my git trees, which are linked below.

This is an extraordinary way to destroy everything.  Enjoy!
Comments and questions are, as always, welcome.


kernel git tree:

xfsprogs git tree: