summaryrefslogtreecommitdiff
tag namerepair-ag-btrees_2019-10-19 (038c10dc9f753430ccbd6fd0eee06199f4e9d518)
tag date2019-10-19 10:39:53 -0700
tagged byDarrick J. Wong <darrick.wong@oracle.com>
tagged objectcommit 15f6a2d7ce...
xfs: online repair of AG btrees
This is the first part of the twentieth 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.3-rc6, 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.