summaryrefslogtreecommitdiff
tag namerepair-prep-for-bulk-loading_2022-11-09 (0c8d42e7e36a62e46daea9a3397034d4b05eeeba)
tag date2022-11-09 19:09:53 -0800
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 2f9aee9809...
xfs: prepare repair for bulk loading
Before we start merging the online repair functions, let's improve the bulk loading code a bit. First, we need to fix a misinteraction between the AIL and the btree bulkloader wherein the delwri at the end of the bulk load fails to queue a buffer for writeback if it happens to be on the AIL list. Second, we introduce EFIs in the btree bulkloader block allocator to to guarantee that staging blocks are freed if the filesystem goes down before committing the new btree. Third, we change the bulkloader itself to copy multiple records into a block if possible, and add some debugging knobs so that developers can control the slack factors, just like they can do for xfs_repair. Signed-off-by: Darrick J. Wong <djwong@kernel.org> -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEUzaAxoMeQq6m2jMV+H93GTRKtOsFAmNsa4EACgkQ+H93GTRK tOvtsw//bWkfl0WSm2gitEdmSt4Kn0rF13hXhAWo1WoiAeL54wC0NaHwf5I5UNfH QI60CFz9fKhOFzDMRRPBLihuiRgTsuSR5PvXz7VVgWmTwDzyiuw1yYTIw0sV19Ta ufktm2yBrLpzVY3bYB4CVfk3EVcgJniOE888fZRs7hxrYXrrAtPvdcKOrVqee0Y7 MGbDjyUbWJNeqnoUZhndH02nDVJ0IW97Q+YvtYm05CfFsuK3FrcYKP2fKLj0fxO3 /MdKodwPTELJtInvQMr2cYrrBfF3hqRrNsHQ2ucTQx4kTWN2PoAzMlXiGSfU/42b +16lTBPWvZjEJNixDgsKAdmA1OoudXDYrGBrVRjQoul9z2vGjYIoP9btqI/a02T/ wbbCYiA8FofmREDRjOffuDRdw96+d3TUpmuZvwKghI6GghiMBCqF8fUHRdBjbejV Yu95czvH28NB8IaITJqop10jpHhm+u0m+B8zaNHhyxp+hGSvasBH+/omIlYlsYCH AOLZwwogu0+Vm4xmhBDBhsfgjb9qeUvPSQozHnu68R/P2NCNm+nTM2N/AgjiXrAy PhM4J6FUHxzsLGVA4jpbtw0yEfSgi268CnmHcIZmqBTGFgDUMZGWYOas+whhAUex pA1NSu/m+pc3VEGd3NtvlEDqlyEksP6NrJiy1m9PvZcRtud3tpo= =MQS1 -----END PGP SIGNATURE-----