diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-11-03 20:11:29 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-11-03 20:19:25 -0400 |
commit | 2ab2ab0f781ae750473763e8a042c900a982d399 (patch) | |
tree | 2d76ee40a4cf6b6a54c180a9100216cc45c26f91 /libbcachefs/fs-io.c | |
parent | e288c9f1de8a1b21a77cbfb80dfec37f2515e33c (diff) |
Update bcachefs sources to b12d1535f3 bcachefs: fix bounds checks in bch2_bio_map()
Diffstat (limited to 'libbcachefs/fs-io.c')
-rw-r--r-- | libbcachefs/fs-io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbcachefs/fs-io.c b/libbcachefs/fs-io.c index 250dd55f..986bb7d2 100644 --- a/libbcachefs/fs-io.c +++ b/libbcachefs/fs-io.c @@ -963,12 +963,12 @@ static void bchfs_read(struct bch_fs *c, struct btree_iter *iter, if (bkey_extent_is_data(k.k)) { struct bkey_s_c_extent e = bkey_s_c_to_extent(k); - struct bch_extent_crc_unpacked crc; const union bch_extent_entry *i; + struct extent_ptr_decoded p; - extent_for_each_crc(e, crc, i) - want_full_extent |= ((crc.csum_type != 0) | - (crc.compression_type != 0)); + extent_for_each_ptr_decode(e, p, i) + want_full_extent |= ((p.crc.csum_type != 0) | + (p.crc.compression_type != 0)); } readpage_bio_extend(readpages_iter, |