bcachefs: Allow for more btrees
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 3 Dec 2022 01:36:06 +0000 (20:36 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:48 +0000 (17:09 -0400)
Expand some bitfields so we can keep adding more btrees.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_types.h

index 6a852f7fbf70ace68c162ff1a61383ce0e1da4f8..e47fd252c3fb98b61de1b261fc1642d728bb4404 100644 (file)
@@ -225,7 +225,7 @@ struct btree_path {
        /* btree_iter_copy starts here: */
        struct bpos             pos;
 
-       enum btree_id           btree_id:4;
+       enum btree_id           btree_id:5;
        bool                    cached:1;
        bool                    preserve:1;
        enum btree_path_uptodate uptodate:2;
@@ -235,7 +235,7 @@ struct btree_path {
         */
        bool                    should_be_locked:1;
        unsigned                level:3,
-                               locks_want:4;
+                               locks_want:3;
        u8                      nodes_locked;
 
        struct btree_path_level {
@@ -269,7 +269,7 @@ struct btree_iter {
        struct btree_path       *update_path;
        struct btree_path       *key_cache_path;
 
-       enum btree_id           btree_id:4;
+       enum btree_id           btree_id:8;
        unsigned                min_depth:3;
        unsigned                advanced:1;