diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-19 02:36:22 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-17 10:33:08 -0400 |
commit | 475c638bc09f8279cd0d687f857d8513d2095d76 (patch) | |
tree | ff398457d8bf40af0552d33702d5ad275a155eaa /kernel/async.c | |
parent | ba83cd8fe637896b9b2c7832d3d55cbf79e564c4 (diff) |
bcachefs: btree write buffer: Do write buffer updates via journal
Instead of appending to the write buffer in the transaction commit path,
remember that we also have everything we need in the journal:
This adds a new journal entry type, BCH_JSET_ENTRY_buffered_keys, for
keys that needed to be added to the write buffer. Before doing a journal
write, in our compaction pass, we find those journal entries and add
them to the write buffer, and write them out with the normal
BCH_JSET_ENTRY_btree_keys type.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'kernel/async.c')
0 files changed, 0 insertions, 0 deletions