diff options
| author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-12-27 23:56:13 -0500 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:20 -0400 |
| commit | e3ad29379e47014461d540629628c2cc158c025d (patch) | |
| tree | 1a03c3467b88a65fd5e06b88d1bae9a6bd377299 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 8d65e475b20610854419fef8dba155200b45a687 (diff) | |
| download | linux-e3ad29379e47014461d540629628c2cc158c025d.tar.gz linux-e3ad29379e47014461d540629628c2cc158c025d.zip | |
bcachefs: Optimize bucket reuse
If the btree updates pointing to a bucket were never flushed by the
journal before the bucket became empty again, we can reuse the bucket
without a journal flush.
This tweaks the tracking of journal sequence numbers in alloc keys to
implement this optimization: now, we only update the journal sequence
number in alloc keys on transitions to and from empty. When a bucket
becomes empty, we check if we can tell the journal not to flush entries
starting from when the bucket was used.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
