projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21e07cc
)
bcachefs: On missing backpointer to interior node, flush interior updates
author
Kent Overstreet
<kent.overstreet@linux.dev>
Thu, 30 Nov 2023 07:11:15 +0000
(
02:11
-0500)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:39 +0000
(11:47 -0500)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/backpointers.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/backpointers.c
b/fs/bcachefs/backpointers.c
index
2fb96fa
..
eb82645
100644
(file)
--- a/
fs/bcachefs/backpointers.c
+++ b/
fs/bcachefs/backpointers.c
@@
-441,6
+441,11
@@
static int check_bp_exists(struct btree_trans *trans,
memcmp(bkey_s_c_to_backpointer(bp_k).v, &bp, sizeof(bp))) {
if (last_flushed->level != bp.level ||
!bpos_eq(last_flushed->pos, orig_k.k->p)) {
+ if (bp.level) {
+ bch2_trans_unlock(trans);
+ bch2_btree_interior_updates_flush(c);
+ }
+
ret = bch2_btree_write_buffer_flush_sync(trans);
if (ret)
goto err;