Skip to content

Commit 0560eb9

Browse files
author
Kent Overstreet
committed
bcachefs: ec_format.h
Signed-off-by: Kent Overstreet <[email protected]>
1 parent c6c4ff6 commit 0560eb9

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

fs/bcachefs/bcachefs_format.h

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -720,22 +720,6 @@ struct bch_backpointer {
720720
struct bpos pos;
721721
} __packed __aligned(8);
722722

723-
/* Erasure coding */
724-
725-
struct bch_stripe {
726-
struct bch_val v;
727-
__le16 sectors;
728-
__u8 algorithm;
729-
__u8 nr_blocks;
730-
__u8 nr_redundant;
731-
732-
__u8 csum_granularity_bits;
733-
__u8 csum_type;
734-
__u8 pad;
735-
736-
struct bch_extent_ptr ptrs[];
737-
} __packed __aligned(8);
738-
739723
/* Reflink: */
740724

741725
struct bch_reflink_p {
@@ -835,6 +819,7 @@ struct bch_sb_field {
835819
x(downgrade, 14)
836820

837821
#include "alloc_background_format.h"
822+
#include "ec_format.h"
838823
#include "inode_format.h"
839824
#include "dirent_format.h"
840825
#include "xattr_format.h"

fs/bcachefs/ec_format.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
#ifndef _BCACHEFS_EC_FORMAT_H
3+
#define _BCACHEFS_EC_FORMAT_H
4+
5+
struct bch_stripe {
6+
struct bch_val v;
7+
__le16 sectors;
8+
__u8 algorithm;
9+
__u8 nr_blocks;
10+
__u8 nr_redundant;
11+
12+
__u8 csum_granularity_bits;
13+
__u8 csum_type;
14+
__u8 pad;
15+
16+
struct bch_extent_ptr ptrs[];
17+
} __packed __aligned(8);
18+
19+
#endif /* _BCACHEFS_EC_FORMAT_H */

0 commit comments

Comments
 (0)