diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-10-16 03:36:40 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-10-18 00:49:47 -0400 |
commit | d8b50597748d6d960c936c89b972516c5e39ee96 (patch) | |
tree | 5cc2529c2b90cac5d199ddbd7da59e5185d84d76 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7ee4be9c621e4cd6a87d134a46d7c56debdf6664 (diff) |
bcachefs: fix restart handling in bch2_alloc_write_key()
This is ugly:
We may discover in alloc_write_key that the data type we calculated is
wrong, because BCH_DATA_need_discard is checked/set elsewhere, and the
disk accounting counters we calculated need to be updated.
But bch2_alloc_key_to_dev_counters(..., BTREE_TRIGGER_gc) is not safe
w.r.t. transaction restarts, so we need to propagate the fixup back to
our gc state in case we take a transaction restart.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions