mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-11 00:08:50 +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
@ -289,6 +289,7 @@ out:
|
||||
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…
x
Reference in New Issue
Block a user