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 <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2025-05-24 14:20:58 -04:00
parent 7098ba57c4
commit 97e69f12ed

View File

@ -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;
}