summaryrefslogtreecommitdiff
tag namerepair-prep-for-bulk-loading_2022-10-14 (41da961bc5c792913b0445e32b861b6a2238a12d)
tag date2022-10-14 14:18:34 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 0d083b9b32...
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+H93GTRKtOsFAmNJ0ioACgkQ+H93GTRK tOt0Mw//dRPnB5ooMJyNHHCDRJPyx/nM5d5YK8sGv73qholGTnMIXjvGt+uRAjU8 XqCUMsfahMcQ0mFKolT6jGCb3H+ApNnH486QE/KDxUSezeG3BgR9nlr6rv67MQwr 0n1228vdmpqy88B9tNRRuQKz1vKOxHsv9sXWATHPsqjUyW9p5E7ZnUpG6TgpwACA W3k0R81AG7aZTtcAkqGwZHkSuRJTLosmX0MLQSnisITKK4iWcvEFcymTi+wAEdpI jzwjJ2eBsAeDDwOPx0+4mJWZkOw1bYeDpfvyYZbk664TLOv7UslJ6fxTLo7fv3gI VaLNMZ5uubUHdbSDJw4EPBkBZJYRExbnaSm/I+L4rpq2Whap+uSEP4go13pOtLpQ FKH+/7cifefeGYRfa1HE3mViXerZosQ3znKh69DZO2WdBowVTmefF8Jswr2cHoi3 PkG6fFsHgaMUkCSYwbd+dIb3cK5R9Y2PU4alnFSNnyZwHOO3TbluJ0kjzuRdgV7u xIjdSdI8gHpfGWKb8pAS1Uq/LZC9HXeohzZS9IaptO0iVo+GxYw7a0Y/ai4RFuaG 3ol9jiCKzV/ATbPkJ6753AqMtxJURKjSEiJ/470K5ilJ0boavN2Xk0p7BsKPfnkt 4WmENcGvcPOzbR41e5YcI1RbgR5nXkEKW4Tcr90gZ2ss6mEsEvs= =zFph -----END PGP SIGNATURE-----