bcachefs: Deferred btree updates
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 17 Jul 2018 17:50:15 +0000 (13:50 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:12 +0000 (17:08 -0400)
commit3636ed489ac05e61d59be29b8e69111ef781d528
tree902e9108089d77777bf1dd002893f84ce24cd16c
parenteb8632657f79ee29941f4013b81cdd4aaeeca1a8
bcachefs: Deferred btree updates

Will be used in the future for inode updates, which will be very helpful
for multithreaded workloads that have to update the inode with every
extent update (appends, or updates that change i_sectors)

Also will be used eventually for fully persistent alloc info

However - we still need a mechanism for reserving space in the journal
prior to getting a journal reservation, so it's not technically safe to
make use of this just yet, we could deadlock with the journal full
(although not likely to be an issue in practice)

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_types.h
fs/bcachefs/btree_update.h
fs/bcachefs/btree_update_leaf.c
fs/bcachefs/journal_reclaim.c
fs/bcachefs/journal_reclaim.h