diff options
| author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-12-25 20:07:00 -0500 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:21 -0400 |
| commit | 5222a4607cd8b9d8882e81796917c10193d10be0 (patch) | |
| tree | b68fb2d883efdb75eaf1376c9f2a0baf30fb30fc /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | f28620c108a9476c7b4b25b8e36b94b6b2b29295 (diff) | |
| download | linux-5222a4607cd8b9d8882e81796917c10193d10be0.tar.gz linux-5222a4607cd8b9d8882e81796917c10193d10be0.zip | |
bcachefs: BTREE_ITER_WITH_JOURNAL
This adds a new btree iterator flag, BTREE_ITER_WITH_JOURNAL, that is
automatically enabled when initializing a btree iterator before journal
replay has completed - it overlays the contents of the journal with the
btree.
This lets us delete bch2_btree_and_journal_walk() and just use the
normal btree iterator interface instead - which also lets us delete a
significant amount of duplicated code.
Note that BTREE_ITER_WITH_JOURNAL is still unoptimized in this patch -
we're redoing the binary search over keys in the journal every time we
call bch2_btree_iter_peek().
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
