Skip to content
Snippets Groups Projects
Commit 433320e5 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

zfs: fix vdev_disk_physio

parent 6e099f6c
No related branches found
No related tags found
No related merge requests found
......@@ -203,9 +203,9 @@ vdev_disk_physio(struct device *dev, caddr_t data, size_t size,
bio = alloc_bio();
if (write)
bio->bio_cmd = BIO_READ;
else
bio->bio_cmd = BIO_WRITE;
else
bio->bio_cmd = BIO_READ;
bio->bio_dev = dev;
bio->bio_data = data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment