From: Kent Overstreet Date: Sat, 24 May 2025 18:20:58 +0000 (-0400) Subject: bcachefs: Fix missing BTREE_UPDATE_internal_snapshot_node X-Git-Tag: v6.16-rc1~48^2~67 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=97e69f12edb19a17589ca0b6f3988b2a28af87c8;p=linux-block.git bcachefs: Fix missing BTREE_UPDATE_internal_snapshot_node 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 --- diff --git a/fs/bcachefs/namei.c b/fs/bcachefs/namei.c index a84b69d6caef..ff7ba297d3ef 100644 --- 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; }