Commit 82ebd49c authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: fix a replicas bug

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent a420eea6
......@@ -267,6 +267,8 @@ int bch2_mark_bkey_replicas(struct bch_fs *c,
struct bch_replicas_entry_padded search;
int ret;
memset(&search, 0, sizeof(search));
if (type == BKEY_TYPE_EXTENTS) {
struct bch_devs_list cached = bch2_bkey_cached_devs(k);
unsigned i;
......@@ -564,6 +566,8 @@ bool bch2_bkey_replicas_marked(struct bch_fs *c,
struct bch_replicas_entry_padded search;
bool ret;
memset(&search, 0, sizeof(search));
if (type == BKEY_TYPE_EXTENTS) {
struct bch_devs_list cached = bch2_bkey_cached_devs(k);
unsigned i;
......
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