diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-01-11 23:23:27 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2019-04-03 12:44:02 -0400 |
commit | d0c3adff66e695d6a70e8302fda66216e3ac6f0b (patch) | |
tree | d70d9bec7205d783c950fb96b0faa2c01e1728a1 | |
parent | b1eba7a886b2ecd649e7bad52731990812e7aece (diff) |
bcachefs: correctly initialize bch_extent_ptr
-rw-r--r-- | fs/bcachefs/alloc_foreground.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/alloc_foreground.c b/fs/bcachefs/alloc_foreground.c index 596d3bc7d99e..14e6453bc3da 100644 --- a/fs/bcachefs/alloc_foreground.c +++ b/fs/bcachefs/alloc_foreground.c @@ -288,6 +288,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, |