summaryrefslogtreecommitdiff
tag namerepair-ag-btrees_2021-10-22 (6f93afad4c60d1e6cd54b2713d1d3246cd2bbe5b)
tag date2021-10-22 16:45:13 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 5e6274e9d6...
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+H93GTRKtOsFAmFzTQkACgkQ+H93GTRK tOschg/7B+A2o2jbwIGsWFuCT7TlZvOPRuHt01U337CjKzndLd+51FaFHnOZ+Iw4 RJC/PU4NyI+ujHT1kRd+RuQhVLTbcfm3AGgZJFbDo6Os0qSeDUBOXMY9vOg620th uBPhxbpE2PsKDprnvISA0h1/A5iYtA2bbhCMDduRIcIprFrnmowmxGBI6Mjbhw2T rjeLW4AxHH5h0WWVtVBclh2Vl6VGvqCFSckCWvsSoXLzBXUpsOq092Jk90tywB50 tLrox/QCL6ZdQV8N7SsKy3XkWnK9aDb47tWIwzgCpQ0vpYprj0CQIBiKSgJN1rsF v56lEUBjd2VP9kuIPNtrb4Xw/D6hz/Z+Jskxono85TA6BsB9XcawIaMJ6LwN8JgL IImiv+8GqZm9sxgeNc9G9oF9ipQ2a6lI24g0Hg9Mk5+sSp5rEp8dDacMUJlqciOa EUa8tUpaoOv3HgiVsQ79qAvk2ZirIQXUwt+U6lCzycMPZRSaPLG2EJq+HBqKNKQS 2pzR9RWNVYubvM/y+fXditDJo2aTpnfp9dopWL/THv5NNvGK6d6PDr3RoljIJgsq JB7J7BFwNDWJ7mWOZ9G54gLB8BgG3Tt+j9xeFe8E+IgPcww5cUnK83dlNZdv09ax bM9q2PrKHhMP9w1LNlTfmRti31lDjgqCrTyyI6EgUp7VNCS0K0U= =pIfY -----END PGP SIGNATURE-----