projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6357d60
)
bcachefs: Fix an assertion when nothing to replay
author
Kent Overstreet
<kent.overstreet@gmail.com>
Wed, 25 Mar 2020 21:57:29 +0000
(17:57 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:37 +0000
(17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/recovery.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/recovery.c
b/fs/bcachefs/recovery.c
index b4d9e1f98059993934ebdb0f7777f6a7edc895bc..27c9ba3382f9b16c548a6e777533a5a864905121 100644
(file)
--- a/
fs/bcachefs/recovery.c
+++ b/
fs/bcachefs/recovery.c
@@
-449,7
+449,8
@@
static int bch2_journal_replay(struct bch_fs *c,
sort(keys.d, keys.nr, sizeof(keys.d[0]), journal_sort_seq_cmp, NULL);
- replay_now_at(j, keys.journal_seq_base);
+ if (keys.nr)
+ replay_now_at(j, keys.journal_seq_base);
for_each_journal_key(keys, i) {
if (!i->level)