mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-23 11:01:15 +00:00
bcachefs: correctly initialize bch_extent_ptr
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
04c2c34f00
commit
b8adb83365
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue