diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-05 05:54:26 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-15 07:44:43 +0300 |
commit | 006ccc3090e2f30f5f97857f3946312692a5279e (patch) | |
tree | feec9949b369a1f70b4a933f26730e6636e8c0e7 /fs/bcachefs/btree_types.h | |
parent | 701ff57eb3d7c86c9a53de959e0c48fa8ca446d4 (diff) | |
download | linux-006ccc3090e2f30f5f97857f3946312692a5279e.tar.xz |
bcachefs: Kill journal pre-reservations
This deletes the complicated and somewhat expensive journal
pre-reservation machinery in favor of just using journal watermarks:
when the journal is more than half full, we run journal reclaim more
aggressively, and when the journal is more than 3/4s full we only allow
journal reclaim to get new journal reservations.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_types.h')
-rw-r--r-- | fs/bcachefs/btree_types.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/bcachefs/btree_types.h b/fs/bcachefs/btree_types.h index f3669fa68591..6fbd4ef3df6b 100644 --- a/fs/bcachefs/btree_types.h +++ b/fs/bcachefs/btree_types.h @@ -327,7 +327,6 @@ struct bkey_cached { struct rhash_head hash; struct list_head list; - struct journal_preres res; struct journal_entry_pin journal; u64 seq; @@ -441,11 +440,9 @@ struct btree_trans { struct journal_entry_pin *journal_pin; struct journal_res journal_res; - struct journal_preres journal_preres; u64 *journal_seq; struct disk_reservation *disk_res; unsigned journal_u64s; - unsigned journal_preres_u64s; struct replicas_delta_list *fs_usage_deltas; }; |