mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
zio: rename ZIO_TYPE_IOCTL to ZIO_TYPE_FLUSH
The only possible ioctl is a flush, and any other kind of meta-operation introduced in the future is likely to have different semantics (much like trim did). So, lets just call it what it is. Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Rob Norris <rob.norris@klarasystems.com> Closes #16064
This commit is contained in:
committed by
Brian Behlendorf
parent
b613709c46
commit
d7605ae77b
@@ -2548,11 +2548,11 @@ vdev_draid_read_config_spare(vdev_t *vd)
|
||||
}
|
||||
|
||||
/*
|
||||
* Handle any ioctl requested of the distributed spare. Only flushes
|
||||
* are supported in which case all children must be flushed.
|
||||
* Handle any flush requested of the distributed spare. All children must be
|
||||
* flushed.
|
||||
*/
|
||||
static int
|
||||
vdev_draid_spare_ioctl(zio_t *zio)
|
||||
vdev_draid_spare_flush(zio_t *zio)
|
||||
{
|
||||
vdev_t *vd = zio->io_vd;
|
||||
int error = 0;
|
||||
@@ -2592,8 +2592,8 @@ vdev_draid_spare_io_start(zio_t *zio)
|
||||
}
|
||||
|
||||
switch (zio->io_type) {
|
||||
case ZIO_TYPE_IOCTL:
|
||||
zio->io_error = vdev_draid_spare_ioctl(zio);
|
||||
case ZIO_TYPE_FLUSH:
|
||||
zio->io_error = vdev_draid_spare_flush(zio);
|
||||
break;
|
||||
|
||||
case ZIO_TYPE_WRITE:
|
||||
|
||||
Reference in New Issue
Block a user