diff options
author | Justin Husted <sigstop@gmail.com> | 2019-10-31 19:10:19 -0700 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2019-11-03 23:17:43 -0500 |
commit | 36e4b3147e22143ffaa8caca56507d4ca9fb5aeb (patch) | |
tree | bee653c9adf88f4dbaca18851d6cab22477bc111 /libbcachefs/btree_cache.c | |
parent | 37899250f3b02dcca9969aae765454b937a47931 (diff) |
Temporary import of valgrind fixes for bcachefs branch.
Diffstat (limited to 'libbcachefs/btree_cache.c')
-rw-r--r-- | libbcachefs/btree_cache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbcachefs/btree_cache.c b/libbcachefs/btree_cache.c index 4169495..2d8f637 100644 --- a/libbcachefs/btree_cache.c +++ b/libbcachefs/btree_cache.c @@ -83,6 +83,9 @@ static void btree_node_data_alloc(struct bch_fs *c, struct btree *b, gfp_t gfp) if (bch2_btree_keys_alloc(b, btree_page_order(c), gfp)) goto err; + memset(&b->data->csum, 0, sizeof b->data->csum); + b->data->flags = 0; + bc->used++; list_move(&b->list, &bc->freeable); return; |