(More complex) logged operations
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | bcachefs: BTREE_ID_logged_opsfs/ fs/ fs/ +7 more | +154 | 0 replies | |
| 2/3 | bcachefs: Log truncate operationsfs/ fs/ fs/ +3 more | +75 | 0 replies | |
| 3/3 | bcachefs: Log finsert/fcollapse operationsfs/ fs/ fs/ +1 more | +152 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] (More complex) logged operations
Hi all,
this patch series introduces a logged operations btree, for operations that are too big to be done in a single btree transaction, and then changes truncate and finsert/fcollapse to use it.
This fixes a recently noticed bug where the deleted inodes btree broke truncate atomicity after unclean shutdown, because that was relying on scanning the inodes btree for BCH_INODE_I_SIZE_DIRTY inodes...
Kent Overstreet (3):
bcachefs: BTREE_ID_logged_ops
bcachefs: Log truncate operations
bcachefs: Log finsert/fcollapse operations
fs/bcachefs/Makefile | 1 + fs/bcachefs/bcachefs.h | 1 + fs/bcachefs/bcachefs_format.h | 40 ++++- fs/bcachefs/bkey_methods.c | 1 + fs/bcachefs/btree_update.c | 18 +++ fs/bcachefs/btree_update.h | 1 + fs/bcachefs/io_misc.c | 275 ++++++++++++++++++++-------------- fs/bcachefs/io_misc.h | 19 +++ fs/bcachefs/logged_ops.c | 110 ++++++++++++++ fs/bcachefs/logged_ops.h | 20 +++ fs/bcachefs/recovery.c | 1 + fs/bcachefs/recovery_types.h | 1 + fs/bcachefs/super.c | 1 + 13 files changed, 376 insertions(+), 113 deletions(-) create mode 100644 fs/bcachefs/logged_ops.c create mode 100644 fs/bcachefs/logged_ops.h
Signature · 1 line
2.40.1