File tree Expand file tree Collapse file tree 2 files changed +18
-13
lines changed
Expand file tree Collapse file tree 2 files changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -513,6 +513,7 @@ struct bch_sb_field {
513513#include "snapshot_format.h"
514514#include "subvolume_format.h"
515515#include "sb-counters_format.h"
516+ #include "sb-downgrade_format.h"
516517#include "sb-members_format.h"
517518
518519enum bch_sb_field_type {
@@ -546,7 +547,6 @@ struct bch_sb_field_journal_v2 {
546547 } d [];
547548};
548549
549-
550550/* BCH_SB_FIELD_crypt: */
551551
552552struct nonce {
@@ -738,18 +738,6 @@ struct bch_sb_field_ext {
738738 __le64 btrees_lost_data ;
739739};
740740
741- struct bch_sb_field_downgrade_entry {
742- __le16 version ;
743- __le64 recovery_passes [2 ];
744- __le16 nr_errors ;
745- __le16 errors [] __counted_by (nr_errors );
746- } __packed __aligned (2 );
747-
748- struct bch_sb_field_downgrade {
749- struct bch_sb_field field ;
750- struct bch_sb_field_downgrade_entry entries [];
751- };
752-
753741/* Superblock: */
754742
755743/*
Original file line number Diff line number Diff line change 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 */
You can’t perform that action at this time.
0 commit comments