diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-17 02:19:23 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:42 -0500 |
commit | cea07a7b6ac2cd9f40e20a5010203014c4996eb2 (patch) | |
tree | 6b7d76ce014dcc8db154c69784c492746b11791e /fs/bcachefs/recovery.c | |
parent | 41b84fb489f7707af4490d1e5e22d88f3207da71 (diff) | |
download | lwn-cea07a7b6ac2cd9f40e20a5010203014c4996eb2.tar.gz lwn-cea07a7b6ac2cd9f40e20a5010203014c4996eb2.zip |
bcachefs: vstruct_for_each() now declares loop iter
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r-- | fs/bcachefs/recovery.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index 0314a4c00aee..a792f42ab5ff 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -344,14 +344,11 @@ static int journal_replay_entry_early(struct bch_fs *c, static int journal_replay_early(struct bch_fs *c, struct bch_sb_field_clean *clean) { - struct jset_entry *entry; - int ret; - if (clean) { - for (entry = clean->start; + for (struct jset_entry *entry = clean->start; entry != vstruct_end(&clean->field); entry = vstruct_next(entry)) { - ret = journal_replay_entry_early(c, entry); + int ret = journal_replay_entry_early(c, entry); if (ret) return ret; } @@ -366,7 +363,7 @@ static int journal_replay_early(struct bch_fs *c, continue; vstruct_for_each(&i->j, entry) { - ret = journal_replay_entry_early(c, entry); + int ret = journal_replay_entry_early(c, entry); if (ret) return ret; } |