diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-12-30 22:37:25 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:36 +0300 |
commit | e3e464ac6d09269b19cea3dc32b626db44d0e6ba (patch) | |
tree | 7aafd377933161ed88573a5e3dab7ee3d8e0e06a /fs/bcachefs/recovery.h | |
parent | 57b0b3db475de6b724e4db3b827c00484cdde642 (diff) | |
download | linux-e3e464ac6d09269b19cea3dc32b626db44d0e6ba.tar.xz |
bcachefs: Move extent overwrite handling out of core btree code
Ever since the btree code was first written, handling of overwriting
existing extents - including partially overwriting and splittin existing
extents - was handled as part of the core btree insert path. The modern
transaction and iterator infrastructure didn't exist then, so that was
the only way for it to be done.
This patch moves that outside of the core btree code to a pass that runs
at transaction commit time.
This is a significant simplification to the btree code and overall
reduction in code size, but more importantly it gets us much closer to
the core btree code being completely independent of extents and is
important prep work for snapshots.
This introduces a new feature bit; the old and new extent update models
are incompatible when the filesystem needs journal replay.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/recovery.h')
-rw-r--r-- | fs/bcachefs/recovery.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/bcachefs/recovery.h b/fs/bcachefs/recovery.h index ccd84a8fe60d..c91309301563 100644 --- a/fs/bcachefs/recovery.h +++ b/fs/bcachefs/recovery.h @@ -5,8 +5,6 @@ struct journal_keys { struct journal_key { enum btree_id btree_id:8; - unsigned allocated:1; - struct bpos pos; struct bkey_i *k; u32 journal_seq; u32 journal_offset; |