summaryrefslogtreecommitdiff
tag namebmap-intent-cleanups_2022-11-09 (7cdf578e4efc632a0014c4fb0da334fc8c1c03cc)
tag date2022-11-09 19:10:11 -0800
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 643820821b...
xfs: bmap log intent cleanups
The next major target of online repair are metadata that are persisted in blocks mapped by a file fork. In other words, we want to repair directories, extended attributes, symbolic links, and the realtime free space information. For file-based metadata, we assume that the space metadata is correct, which enables repair to construct new versions of the metadata in a temporary file. We then need to swap the file fork mappings of the two files atomically. With this patchset, we begin constructing such a facility based on the existing bmap log items and a new extent swap log item. This series cleans up a few parts of the file block mapping log intent code before we start adding support for realtime bmap intents. Most of it involves cleaning up tracepoints so that more of the data extraction logic ends up in the tracepoint code and not the tracepoint call site, which should reduce overhead further when tracepoints are disabled. There is also a change to pass bmap intents all the way back to the bmap code instead of unboxing the intent values and re-boxing them after the _finish_one function completes. Signed-off-by: Darrick J. Wong <djwong@kernel.org> -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEUzaAxoMeQq6m2jMV+H93GTRKtOsFAmNsa5MACgkQ+H93GTRK tOuynA//VrHfNSiRL3voqZxFryPjswGFZFrPIwetcMY/Tat8X/WpcsFIcZFKCqi4 GD55Kbga5N7mfLIU98L7ZdAnhOZG4njaOW2YPit7s0g6F6TU0nvwGxCrVzr7AZpl chDs77o9d5SiyZ5tuU3ZPxqosWLIPmU1dS/s6e8QikXYHd2AI+PoW3QfIOo/2UkQ Pw6JAzUPotLtSb0kgV0OOBNUqAUM96+9IlU6Xv/q1/BwHAIiVUN7P1aPdzQBzLo2 zy75EM12lHEcDgd7VyBL/p48Tc2soNvnvYvKaIMcNBZeF596gvtmL8tLzEh97Zqs FEyrglnOu663hjt+VdwZH1vfa66A8tWhLBblgVs2koLoa7C2EVvvB/vUoRUqbnHf dcrU1RfqaeurSRY/9Ile4QGhsZxv8LtUBaU0gj3+bfzLO3K2pcI0Da8FHZcR+GIs SUXPAsPzbrkPHLm/RTlKklo9OI6fda+OGDdP2bZVPqKJ3mpuFFLikZWtiL/IEF4W 7ymM6neB3pLBBH3TR4k7enhBKC9rkD8FERJhtGMWWEbEyGMUbIg6HntrH1DXb6wN FeymD29PU0uQgC701g48Heqny5c81ojuIkxBNtwVUxR87ExMCW+8BOhoV2rcg+Gl fvYOfReIkiXiVzYGyFSD6hd+p3YSZebbvZS4KwQdai7ZNNzJLwk= =K5yB -----END PGP SIGNATURE-----