Commit b8adb833 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: correctly initialize bch_extent_ptr

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 04c2c34f
......@@ -289,6 +289,7 @@ struct open_bucket *bch2_bucket_alloc(struct bch_fs *c, struct bch_dev *ca,
ob->valid = true;
ob->sectors_free = ca->mi.bucket_size;
ob->ptr = (struct bch_extent_ptr) {
.type = 1 << BCH_EXTENT_ENTRY_ptr,
.gen = buckets->b[bucket].mark.gen,
.offset = bucket_to_sector(ca, bucket),
.dev = ca->dev_idx,
......
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