bcachefs: BTREE_ID_logged_ops
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 27 Aug 2023 22:27:41 +0000 (18:27 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:12 +0000 (17:10 -0400)
commitaaad530ac6b1c836de4a29d227ab68be97e39a73
tree0055c4852c1d71ad2ef96e36ed0c691aa1d24a8f
parent5902cc283c060f0a006ee9b2f2a64855a09399b4
bcachefs: BTREE_ID_logged_ops

Add a new btree for long running logged operations - i.e. for logging
operations that we can't do within a single btree transaction, so that
they can be resumed if we crash.

Keys in the logged operations btree will represent operations in
progress, with the state of the operation stored in the value.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/Makefile
fs/bcachefs/bcachefs.h
fs/bcachefs/bcachefs_format.h
fs/bcachefs/btree_update.c
fs/bcachefs/btree_update.h
fs/bcachefs/logged_ops.c [new file with mode: 0644]
fs/bcachefs/logged_ops.h [new file with mode: 0644]
fs/bcachefs/recovery.c
fs/bcachefs/recovery_types.h
fs/bcachefs/super.c