summaryrefslogtreecommitdiff
tag namerepair-ag-btrees_2021-08-25 (e3897356c16f8262e30c0901b667dab0b393934a)
tag date2021-08-25 22:27:12 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 719314e770...
xfs: online repair of AG btrees
This is the first part of the twenty-second revision of a patchset that adds to XFS kernel support for online metadata scrubbing and repair. There aren't any on-disk format changes. New for this version is a rebase against 5.5-rc4, bulk loading of btrees, integration with the health reporting subsystem, and the explicit revalidation of all metadata structures that were rebuilt. First, create a new data structure that provides an abstraction of a big memory array by using linked lists. This is where we store records for btree reconstruction. This first implementation is memory inefficient and consumes a /lot/ of kernel memory, but lays the groundwork for a later patch in the set to convert the implementation to use a (memfd) swap file, which enables us to use pageable memory without pounding the slab cache. The three patches after that implement reconstruction of the free space btrees, inode btrees, and reference count btree. The reverse mapping btree requires considerably more thought and will be covered later. -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEUzaAxoMeQq6m2jMV+H93GTRKtOsFAmEnJjAACgkQ+H93GTRK tOtT/xAAqV1QEycdN724yBlFAi4nQJtkI4zeJwO3s89dGAO4RC1kz4L2W6mMGKby TfIsvcpkFlYi0yVE+LkAW4j4eQkIePIgXAeJkXMExBSXJGB/kV/zE6LebL7ejoOn nNve1hem0xDooGdMCtHQkZN/Q0SbLqpGOzIfCHWg589iSoFjjA5g4eyjsWoVb7hY X12eALmbk0aXZe+5fGFgICOxb4SDiXkhi6BzfYs1cd1xfLgyA2yuBywWsXJkdamV c1VnUdCzKmZpwZ/p6+1k2QvF0OUIaWc1+6OOvQTpoXqAbsdYYNwS+WLZlc764Ry4 qJaPOVnyhoWwsDhJzZNqKBgX+rHiQyqkE/tkKryW4RiY12NPL+lXdrYmpME4CY98 71mEv9YuzVYrTA9SWgIx52QRN+Aur75EsU0VyzA0l38O3+toTeQQ4/OZL+S4ENAN 8LbqTt8AEv0xPWyAXn//ViiVzCvCOBOMwzQHj7jk5DfC5HOGi5Bn2eww+q7Kojfh RV/n3ZfSYADeelyv00zyAqdILfVOP9mw4TKllUvH/PcJsZraH1zr8yPQno/zMYB3 n0QMZZh/NAGZGQ8Hn8KmG1hFFCrp31/mzDkly1Za4PTggHXK0o2iwYMisOw75Pqo DSak+AQEUViRhoTMQlDtxyf4VkfvMuOsXM87wPkr05FuRFmflrs= =ftdZ -----END PGP SIGNATURE-----