mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
bcachefs: split out sb-downgrade_format.h
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
016c22e410
commit
4c5eef0c50
@ -513,6 +513,7 @@ struct bch_sb_field {
|
|||||||
#include "snapshot_format.h"
|
#include "snapshot_format.h"
|
||||||
#include "subvolume_format.h"
|
#include "subvolume_format.h"
|
||||||
#include "sb-counters_format.h"
|
#include "sb-counters_format.h"
|
||||||
|
#include "sb-downgrade_format.h"
|
||||||
#include "sb-members_format.h"
|
#include "sb-members_format.h"
|
||||||
|
|
||||||
enum bch_sb_field_type {
|
enum bch_sb_field_type {
|
||||||
@ -546,7 +547,6 @@ struct bch_sb_field_journal_v2 {
|
|||||||
} d[];
|
} d[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* BCH_SB_FIELD_crypt: */
|
/* BCH_SB_FIELD_crypt: */
|
||||||
|
|
||||||
struct nonce {
|
struct nonce {
|
||||||
@ -738,18 +738,6 @@ struct bch_sb_field_ext {
|
|||||||
__le64 btrees_lost_data;
|
__le64 btrees_lost_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct bch_sb_field_downgrade_entry {
|
|
||||||
__le16 version;
|
|
||||||
__le64 recovery_passes[2];
|
|
||||||
__le16 nr_errors;
|
|
||||||
__le16 errors[] __counted_by(nr_errors);
|
|
||||||
} __packed __aligned(2);
|
|
||||||
|
|
||||||
struct bch_sb_field_downgrade {
|
|
||||||
struct bch_sb_field field;
|
|
||||||
struct bch_sb_field_downgrade_entry entries[];
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Superblock: */
|
/* Superblock: */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
17
fs/bcachefs/sb-downgrade_format.h
Normal file
17
fs/bcachefs/sb-downgrade_format.h
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
|
#ifndef _BCACHEFS_SB_DOWNGRADE_FORMAT_H
|
||||||
|
#define _BCACHEFS_SB_DOWNGRADE_FORMAT_H
|
||||||
|
|
||||||
|
struct bch_sb_field_downgrade_entry {
|
||||||
|
__le16 version;
|
||||||
|
__le64 recovery_passes[2];
|
||||||
|
__le16 nr_errors;
|
||||||
|
__le16 errors[] __counted_by(nr_errors);
|
||||||
|
} __packed __aligned(2);
|
||||||
|
|
||||||
|
struct bch_sb_field_downgrade {
|
||||||
|
struct bch_sb_field field;
|
||||||
|
struct bch_sb_field_downgrade_entry entries[];
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif /* _BCACHEFS_SB_DOWNGRADE_FORMAT_H */
|
Loading…
Reference in New Issue
Block a user