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
a5cf5a4b
Commit
a5cf5a4b
authored
Jul 12, 2023
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: bcachefs_format.h should be using __u64
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
a0f8faea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
fs/bcachefs/bcachefs_format.h
fs/bcachefs/bcachefs_format.h
+10
-10
No files found.
fs/bcachefs/bcachefs_format.h
View file @
a5cf5a4b
...
...
@@ -695,7 +695,7 @@ struct bch_reservation {
/* Maximum size (in u64s) a single pointer could be: */
#define BKEY_EXTENT_PTR_U64s_MAX\
((sizeof(struct bch_extent_crc128) + \
sizeof(struct bch_extent_ptr)) / sizeof(u64))
sizeof(struct bch_extent_ptr)) / sizeof(
__
u64))
/* Maximum possible size of an entire extent value: */
#define BKEY_EXTENT_VAL_U64s_MAX \
...
...
@@ -707,7 +707,7 @@ struct bch_reservation {
/* Btree pointers don't carry around checksums: */
#define BKEY_BTREE_PTR_VAL_U64s_MAX \
((sizeof(struct bch_btree_ptr_v2) + \
sizeof(struct bch_extent_ptr) * BCH_REPLICAS_MAX) / sizeof(u64))
sizeof(struct bch_extent_ptr) * BCH_REPLICAS_MAX) / sizeof(
__
u64))
#define BKEY_BTREE_PTR_U64s_MAX \
(BKEY_U64s + BKEY_BTREE_PTR_VAL_U64s_MAX)
...
...
@@ -749,7 +749,7 @@ struct bch_inode_v3 {
}
__packed
__aligned
(
8
);
#define INODEv3_FIELDS_START_INITIAL 6
#define INODEv3_FIELDS_START_CUR (offsetof(struct bch_inode_v3, fields) / sizeof(u64))
#define INODEv3_FIELDS_START_CUR (offsetof(struct bch_inode_v3, fields) / sizeof(
__
u64))
struct
bch_inode_generation
{
struct
bch_val
v
;
...
...
@@ -916,7 +916,7 @@ struct bch_dirent {
#define DT_SUBVOL 16
#define BCH_DT_MAX 17
#define BCH_NAME_MAX ((unsigned) (U8_MAX * sizeof(u64) - \
#define BCH_NAME_MAX ((unsigned) (U8_MAX * sizeof(
__
u64) - \
sizeof(struct bkey) - \
offsetof(struct bch_dirent, d_name)))
...
...
@@ -1009,7 +1009,7 @@ struct bch_alloc_v4 {
}
__packed
__aligned
(
8
);
#define BCH_ALLOC_V4_U64s_V0 6
#define BCH_ALLOC_V4_U64s (sizeof(struct bch_alloc_v4) / sizeof(u64))
#define BCH_ALLOC_V4_U64s (sizeof(struct bch_alloc_v4) / sizeof(
__
u64))
BITMASK
(
BCH_ALLOC_V4_NEED_DISCARD
,
struct
bch_alloc_v4
,
flags
,
0
,
1
)
BITMASK
(
BCH_ALLOC_V4_NEED_INC_GEN
,
struct
bch_alloc_v4
,
flags
,
1
,
2
)
...
...
@@ -1289,10 +1289,10 @@ struct bch_key {
};
#define BCH_KEY_MAGIC \
(((
u64) 'b' << 0)|((
u64) 'c' << 8)| \
((
u64) 'h' << 16)|((
u64) '*' << 24)| \
((
u64) '*' << 32)|((
u64) 'k' << 40)| \
((
u64) 'e' << 48)|((
u64) 'y' << 56))
(((
__u64) 'b' << 0)|((__
u64) 'c' << 8)| \
((
__u64) 'h' << 16)|((__
u64) '*' << 24)| \
((
__u64) '*' << 32)|((__
u64) 'k' << 40)| \
((
__u64) 'e' << 48)|((__
u64) 'y' << 56))
struct
bch_encrypted_key
{
__le64
magic
;
...
...
@@ -2272,7 +2272,7 @@ static inline __u64 BTREE_NODE_ID(struct btree_node *n)
return
BTREE_NODE_ID_LO
(
n
)
|
(
BTREE_NODE_ID_HI
(
n
)
<<
4
);
}
static
inline
void
SET_BTREE_NODE_ID
(
struct
btree_node
*
n
,
u64
v
)
static
inline
void
SET_BTREE_NODE_ID
(
struct
btree_node
*
n
,
__
u64
v
)
{
SET_BTREE_NODE_ID_LO
(
n
,
v
);
SET_BTREE_NODE_ID_HI
(
n
,
v
>>
4
);
...
...
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