Commit 928c839c authored by Justin Husted's avatar Justin Husted Committed by Kent Overstreet

bcachefs: Initialize btree_node flags field in bch2_btree_root_alloc.

Valgrind data indicated that the flags field was only partially
initialized when written to disk.
Signed-off-by: default avatarJustin Husted <sigstop@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 43cfbad6
...@@ -2187,6 +2187,7 @@ void bch2_btree_root_alloc(struct bch_fs *c, enum btree_id id) ...@@ -2187,6 +2187,7 @@ void bch2_btree_root_alloc(struct bch_fs *c, enum btree_id id)
bch2_bset_init_first(b, &b->data->keys); bch2_bset_init_first(b, &b->data->keys);
bch2_btree_build_aux_trees(b); bch2_btree_build_aux_trees(b);
b->data->flags = 0;
b->data->min_key = POS_MIN; b->data->min_key = POS_MIN;
b->data->max_key = POS_MAX; b->data->max_key = POS_MAX;
b->data->format = bch2_btree_calc_format(b); b->data->format = bch2_btree_calc_format(b);
......
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