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

bcachefs: bch2_dev_get_ioref2(); backpointers.c

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 0e57996c
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment