aboutsummaryrefslogtreecommitdiff
path: root/module/os/linux/zfs/vdev_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/os/linux/zfs/vdev_file.c')
-rw-r--r--module/os/linux/zfs/vdev_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/os/linux/zfs/vdev_file.c b/module/os/linux/zfs/vdev_file.c
index 2b483c9a9fa4..ac41a2615f16 100644
--- a/module/os/linux/zfs/vdev_file.c
+++ b/module/os/linux/zfs/vdev_file.c
@@ -242,7 +242,7 @@ vdev_file_io_start(zio_t *zio)
vdev_t *vd = zio->io_vd;
vdev_file_t *vf = vd->vdev_tsd;
- if (zio->io_type == ZIO_TYPE_IOCTL) {
+ if (zio->io_type == ZIO_TYPE_FLUSH) {
/* XXPOLICY */
if (!vdev_readable(vd)) {
zio->io_error = SET_ERROR(ENXIO);