]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/extents_types.h
Update bcachefs sources to fd381c355c bcachefs: Fix a null ptr deref in fsck check_ex...
[bcachefs-tools-debian] / libbcachefs / extents_types.h
index 6d4284105053bb1a77908674b9242cd36951b779..43d6c341eccabb86be8c5395fef5b558bb52004a 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 #ifndef _BCACHEFS_EXTENTS_TYPES_H
 #define _BCACHEFS_EXTENTS_TYPES_H
 
@@ -20,10 +21,10 @@ struct bch_extent_crc_unpacked {
 
 struct extent_ptr_decoded {
        unsigned                        idx;
-       unsigned                        ec_nr;
+       bool                            has_ec;
        struct bch_extent_crc_unpacked  crc;
        struct bch_extent_ptr           ptr;
-       struct bch_extent_stripe_ptr    ec[4];
+       struct bch_extent_stripe_ptr    ec;
 };
 
 struct bch_io_failures {