Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4c5eef0c
Commit
4c5eef0c
authored
May 28, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: split out sb-downgrade_format.h
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
016c22e4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
13 deletions
+18
-13
fs/bcachefs/bcachefs_format.h
fs/bcachefs/bcachefs_format.h
+1
-13
fs/bcachefs/sb-downgrade_format.h
fs/bcachefs/sb-downgrade_format.h
+17
-0
No files found.
fs/bcachefs/bcachefs_format.h
View file @
4c5eef0c
...
...
@@ -513,6 +513,7 @@ struct bch_sb_field {
#include "snapshot_format.h"
#include "subvolume_format.h"
#include "sb-counters_format.h"
#include "sb-downgrade_format.h"
#include "sb-members_format.h"
enum
bch_sb_field_type
{
...
...
@@ -546,7 +547,6 @@ struct bch_sb_field_journal_v2 {
}
d
[];
};
/* BCH_SB_FIELD_crypt: */
struct
nonce
{
...
...
@@ -738,18 +738,6 @@ struct bch_sb_field_ext {
__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: */
/*
...
...
fs/bcachefs/sb-downgrade_format.h
0 → 100644
View file @
4c5eef0c
/* 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 */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment