From: Kent Overstreet Date: Sat, 12 Jan 2019 04:23:27 +0000 (-0500) Subject: bcachefs: correctly initialize bch_extent_ptr X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b8adb833652909221efde19b1813627382b5bf51;p=linux.git bcachefs: correctly initialize bch_extent_ptr Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/alloc_foreground.c b/fs/bcachefs/alloc_foreground.c index 36aa7a5f28065..9eae8c29e3c4e 100644 --- a/fs/bcachefs/alloc_foreground.c +++ b/fs/bcachefs/alloc_foreground.c @@ -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,