Commit a16b19cd authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Allow for more btrees

Expand some bitfields so we can keep adding more btrees.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 1ba8a796
...@@ -225,7 +225,7 @@ struct btree_path { ...@@ -225,7 +225,7 @@ struct btree_path {
/* btree_iter_copy starts here: */ /* btree_iter_copy starts here: */
struct bpos pos; struct bpos pos;
enum btree_id btree_id:4; enum btree_id btree_id:5;
bool cached:1; bool cached:1;
bool preserve:1; bool preserve:1;
enum btree_path_uptodate uptodate:2; enum btree_path_uptodate uptodate:2;
...@@ -235,7 +235,7 @@ struct btree_path { ...@@ -235,7 +235,7 @@ struct btree_path {
*/ */
bool should_be_locked:1; bool should_be_locked:1;
unsigned level:3, unsigned level:3,
locks_want:4; locks_want:3;
u8 nodes_locked; u8 nodes_locked;
struct btree_path_level { struct btree_path_level {
...@@ -269,7 +269,7 @@ struct btree_iter { ...@@ -269,7 +269,7 @@ struct btree_iter {
struct btree_path *update_path; struct btree_path *update_path;
struct btree_path *key_cache_path; struct btree_path *key_cache_path;
enum btree_id btree_id:4; enum btree_id btree_id:8;
unsigned min_depth:3; unsigned min_depth:3;
unsigned advanced:1; unsigned advanced:1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment