tag name | repair-ag-btrees_2020-03-03 (6497da3953550b5f1e29b46034bbe56235959abb) |
tag date | 2020-03-03 18:48:15 -0800 |
tagged by | Darrick J. Wong <darrick.wong@oracle.com> |
tagged object | commit df94eeb9f5... |
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.