projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2f61f4
)
bcachefs: Don't skip fake btree roots in fsck
author
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 10 Mar 2024 20:18:41 +0000
(16:18 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Wed, 3 Apr 2024 18:44:18 +0000
(14:44 -0400)
When a btree root is unreadable, we might still have keys fro the
journal to walk and mark.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_gc.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/btree_gc.c
b/fs/bcachefs/btree_gc.c
index e5d2c6daa663dec97308bae094a8144814a2406b..9db9c8a5beaa0e939094540deffcc38c33c2dbf8 100644
(file)
--- a/
fs/bcachefs/btree_gc.c
+++ b/
fs/bcachefs/btree_gc.c
@@
-931,9
+931,6
@@
static int bch2_gc_btree_init(struct btree_trans *trans,
b = bch2_btree_id_root(c, btree_id)->b;
- if (btree_node_fake(b))
- return 0;
-
six_lock_read(&b->c.lock, NULL, NULL);
printbuf_reset(&buf);
bch2_bpos_to_text(&buf, b->data->min_key);