diff options
| author | Kent Overstreet <[email protected]> | 2024-04-07 19:07:09 -0400 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2024-05-08 17:29:20 -0400 |
| commit | f40d13f94df744185f99732e89bc8d085729ecc9 (patch) | |
| tree | f0575c15e130d0b2a0c6ad459efd8d646bcece4a /tools/perf/scripts/python | |
| parent | 930e1a92d62d3f0dbf8d27002c539819738ef6bb (diff) | |
bcachefs: Run bch2_check_fix_ptrs() via triggers
Currently, the reflink_p gc trigger does repair as well - turning a
reflink_p key into an error key if the reflink_v it points to doesn't
exist.
This won't work with online check/repair, because the repair path once
online will be subject to transaction restarts, but BTREE_TRIGGER_gc is
not idempotant - we can't run it multiple times if we get a transaction
restart.
So we need to split these paths; to do so this patch calls
check_fix_ptrs() by a new general path - a new trigger type,
BTREE_TRIGGER_check_repair.
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions