Commit 97e69f12 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix missing BTREE_UPDATE_internal_snapshot_node



Repair code will do updates on older snapshot versions, so needs the
correct annotation.

Reported-by: default avatar <syzbot+42581416dba62b364750@syzkaller.appspotmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 7098ba57
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
	}