1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _BCACHEFS_SB_DOWNGRADE_FORMAT_H 3 #define _BCACHEFS_SB_DOWNGRADE_FORMAT_H 4 5 struct bch_sb_field_downgrade_entry { 6 __le16 version; 7 __le64 recovery_passes[2]; 8 __le16 nr_errors; 9 __le16 errors[] __counted_by(nr_errors); 10 } __packed __aligned(2); 11 12 struct bch_sb_field_downgrade { 13 struct bch_sb_field field; 14 struct bch_sb_field_downgrade_entry entries[]; 15 }; 16 17 #endif /* _BCACHEFS_SB_DOWNGRADE_FORMAT_H */ 18