diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-06-24 16:01:33 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-07-01 11:39:30 -0400 |
commit | fbce336534ddf6487e371dc3aafa2ccc8439b72e (patch) | |
tree | 64784dddf652f0f79ac39e6338dc807b89fdeb1d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7610360136de688029cc77eb824ce4541da5f1e5 (diff) |
bcachefs: Evict/bypass key cache when deleting
Fix a performance bug when doing many unlinks.
The btree has optimizations to ensure we don't have too many whiteouts
to scan in peek() before we find a real key to return, but unflushed key
cache deletions break this.
To fix this, tweak the existing code for redirecting updates that create
a key to the underlying btree so that we can use it for deletions as
well.
Reported-by: John Schoenick <johns@valvesoftware.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions