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
0b5961b0
Commit
0b5961b0
authored
Feb 23, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: jset_entry for loops declare loop iter
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
eb386617
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
9 deletions
+2
-9
fs/bcachefs/btree_journal_iter.c
fs/bcachefs/btree_journal_iter.c
+0
-2
fs/bcachefs/btree_write_buffer.c
fs/bcachefs/btree_write_buffer.c
+0
-2
fs/bcachefs/journal_io.c
fs/bcachefs/journal_io.c
+0
-3
fs/bcachefs/journal_io.h
fs/bcachefs/journal_io.h
+2
-2
No files found.
fs/bcachefs/btree_journal_iter.c
View file @
0b5961b0
...
...
@@ -510,8 +510,6 @@ int bch2_journal_keys_sort(struct bch_fs *c)
{
struct
genradix_iter
iter
;
struct
journal_replay
*
i
,
**
_i
;
struct
jset_entry
*
entry
;
struct
bkey_i
*
k
;
struct
journal_keys
*
keys
=
&
c
->
journal_keys
;
size_t
nr_keys
=
0
,
nr_read
=
0
;
...
...
fs/bcachefs/btree_write_buffer.c
View file @
0b5961b0
...
...
@@ -574,8 +574,6 @@ void bch2_journal_keys_to_write_buffer_end(struct bch_fs *c, struct journal_keys
static
int
bch2_journal_keys_to_write_buffer
(
struct
bch_fs
*
c
,
struct
journal_buf
*
buf
)
{
struct
journal_keys_to_wb
dst
;
struct
jset_entry
*
entry
;
struct
bkey_i
*
k
;
int
ret
=
0
;
bch2_journal_keys_to_write_buffer_start
(
c
,
&
dst
,
le64_to_cpu
(
buf
->
data
->
seq
));
...
...
fs/bcachefs/journal_io.c
View file @
0b5961b0
...
...
@@ -40,7 +40,6 @@ static void bch2_journal_replay_to_text(struct printbuf *out, struct bch_fs *c,
bch2_journal_ptrs_to_text
(
out
,
c
,
j
);
struct
jset_entry
*
entry
;
for_each_jset_entry_type
(
entry
,
&
j
->
j
,
BCH_JSET_ENTRY_datetime
)
{
struct
jset_entry_datetime
*
datetime
=
container_of
(
entry
,
struct
jset_entry_datetime
,
entry
);
...
...
@@ -394,7 +393,6 @@ static int journal_entry_btree_keys_validate(struct bch_fs *c,
static
void
journal_entry_btree_keys_to_text
(
struct
printbuf
*
out
,
struct
bch_fs
*
c
,
struct
jset_entry
*
entry
)
{
struct
bkey_i
*
k
;
bool
first
=
true
;
jset_entry_for_each_key
(
entry
,
k
)
{
...
...
@@ -1815,7 +1813,6 @@ static int bch2_journal_write_prep(struct journal *j, struct journal_buf *w)
if
(
!
wb
.
wb
)
bch2_journal_keys_to_write_buffer_start
(
c
,
&
wb
,
seq
);
struct
bkey_i
*
k
;
jset_entry_for_each_key
(
i
,
k
)
{
ret
=
bch2_journal_key_to_wb
(
c
,
&
wb
,
i
->
btree_id
,
k
);
if
(
ret
)
{
...
...
fs/bcachefs/journal_io.h
View file @
0b5961b0
...
...
@@ -39,12 +39,12 @@ static inline struct jset_entry *__jset_entry_type_next(struct jset *jset,
}
#define for_each_jset_entry_type(entry, jset, type) \
for (
entry = (jset)->start;
\
for (
struct jset_entry *entry = (jset)->start;
\
(entry = __jset_entry_type_next(jset, entry, type)); \
entry = vstruct_next(entry))
#define jset_entry_for_each_key(_e, _k) \
for (
_k = (_e)->start;
\
for (
struct bkey_i *_k = (_e)->start;
\
_k < vstruct_last(_e); \
_k = bkey_next(_k))
...
...
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