mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
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:
parent
7098ba57c4
commit
97e69f12ed
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user