Commit 466298e2 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: bch2_dev_get_ioref2(); backpointers.c

parent 0e57996c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -486,8 +486,8 @@ static int check_extent_checksum(struct btree_trans *trans,

	bytes = p.crc.compressed_size << 9;

	struct bch_dev *ca = bch2_dev_bkey_exists(c, dev);
	if (!bch2_dev_get_ioref(ca, READ))
	struct bch_dev *ca = bch2_dev_get_ioref2(c, dev, READ);
	if (!ca)
		return false;

	data_buf = kvmalloc(bytes, GFP_KERNEL);