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
3fe8a186
Commit
3fe8a186
authored
Jan 06, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: eytzinger_for_each() declares loop iter
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
4ecad0da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
fs/bcachefs/bset.c
fs/bcachefs/bset.c
+1
-1
fs/bcachefs/eytzinger.h
fs/bcachefs/eytzinger.h
+2
-2
No files found.
fs/bcachefs/bset.c
View file @
3fe8a186
...
@@ -720,7 +720,7 @@ static noinline void __build_ro_aux_tree(struct btree *b, struct bset_tree *t)
...
@@ -720,7 +720,7 @@ static noinline void __build_ro_aux_tree(struct btree *b, struct bset_tree *t)
{
{
struct
bkey_packed
*
prev
=
NULL
,
*
k
=
btree_bkey_first
(
b
,
t
);
struct
bkey_packed
*
prev
=
NULL
,
*
k
=
btree_bkey_first
(
b
,
t
);
struct
bkey_i
min_key
,
max_key
;
struct
bkey_i
min_key
,
max_key
;
unsigned
j
,
cacheline
=
1
;
unsigned
cacheline
=
1
;
t
->
size
=
min
(
bkey_to_cacheline
(
b
,
t
,
btree_bkey_last
(
b
,
t
)),
t
->
size
=
min
(
bkey_to_cacheline
(
b
,
t
,
btree_bkey_last
(
b
,
t
)),
bset_ro_tree_capacity
(
b
,
t
));
bset_ro_tree_capacity
(
b
,
t
));
...
...
fs/bcachefs/eytzinger.h
View file @
3fe8a186
...
@@ -156,7 +156,7 @@ static inline unsigned inorder_to_eytzinger1(unsigned i, unsigned size)
...
@@ -156,7 +156,7 @@ static inline unsigned inorder_to_eytzinger1(unsigned i, unsigned size)
}
}
#define eytzinger1_for_each(_i, _size) \
#define eytzinger1_for_each(_i, _size) \
for (
(_i) = eytzinger1_first((_size));
\
for (
unsigned (_i) = eytzinger1_first((_size));
\
(_i) != 0; \
(_i) != 0; \
(_i) = eytzinger1_next((_i), (_size)))
(_i) = eytzinger1_next((_i), (_size)))
...
@@ -227,7 +227,7 @@ static inline unsigned inorder_to_eytzinger0(unsigned i, unsigned size)
...
@@ -227,7 +227,7 @@ static inline unsigned inorder_to_eytzinger0(unsigned i, unsigned size)
}
}
#define eytzinger0_for_each(_i, _size) \
#define eytzinger0_for_each(_i, _size) \
for (
(_i) = eytzinger0_first((_size));
\
for (
unsigned (_i) = eytzinger0_first((_size));
\
(_i) != -1; \
(_i) != -1; \
(_i) = eytzinger0_next((_i), (_size)))
(_i) = eytzinger0_next((_i), (_size)))
...
...
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