projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7098ba5
)
bcachefs: Fix missing BTREE_UPDATE_internal_snapshot_node
author
Kent Overstreet
<kent.overstreet@linux.dev>
Sat, 24 May 2025 18:20:58 +0000
(14:20 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 25 May 2025 07:22:18 +0000
(
03:22
-0400)
Repair code will do updates on older snapshot versions, so needs the
correct annotation.
Reported-by: syzbot+42581416dba62b364750@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/namei.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/bcachefs/namei.c
b/fs/bcachefs/namei.c
index a84b69d6caef7861c2acc1c55350bdddbbf88467..ff7ba297d3ef084c35ea5ca952da127d1fb17d55 100644
(file)
--- a/
fs/bcachefs/namei.c
+++ b/
fs/bcachefs/namei.c
@@
-857,7
+857,8
@@
int __bch2_check_dirent_target(struct btree_trans *trans,
n->v.d_inum = cpu_to_le64(target->bi_inum);
}
- ret = bch2_trans_update(trans, dirent_iter, &n->k_i, 0);
+ ret = bch2_trans_update(trans, dirent_iter, &n->k_i,
+ BTREE_UPDATE_internal_snapshot_node);
if (ret)
goto err;
}