diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-06-06 20:48:54 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-07-15 02:00:15 +0300 |
commit | f73e6bb6d6c70b72aff021237b8c4722cc43a919 (patch) | |
tree | e59a561331929080cbcee9cb8e54277bc6b8a12d /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 2574e95a8b78ef853100d6889f154883fec989a2 (diff) | |
download | linux-f73e6bb6d6c70b72aff021237b8c4722cc43a919.tar.xz |
bcachefs: bch2_accounting_mem_gc()
Add a new helper to free zeroed out accounting entries, and use it in
bch2_replicas_gc2(); bch2_replicas_gc2() was killing superblock replicas
entries if their corresponding accounting counters were nonzero, but
that's incorrect - the superblock replicas entry needs to exist if the
accounting entry exists, not if it's nonzero, because we check and
create the replicas entry when creating the new accounting entry - we
don't know when it's becoming nonzero.
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