Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit f73e6bb6 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 2574e95a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment