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-03 01:20:18 -0400 |
commit | d0ffb68c86ade11838acb4d31df55a1a056d8c1c (patch) | |
tree | 56fd16b199248ad7d811c115cbc1199b78f564c0 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 100142f6ec4d184a3e78870a878bdd80415852d4 (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/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions