diff --git a/module/zfs/zfs_ioctl.c b/module/zfs/zfs_ioctl.c index 2fd836a4ae..40a6e64cf0 100644 --- a/module/zfs/zfs_ioctl.c +++ b/module/zfs/zfs_ioctl.c @@ -974,13 +974,13 @@ put_nvlist(zfs_cmd_t *zc, nvlist_t *nvl) if (size > zc->zc_nvlist_dst_size) { error = ENOMEM; } else { - packed = vmem_alloc(size, KM_SLEEP); + packed = kmem_alloc(size, KM_SLEEP); VERIFY(nvlist_pack(nvl, &packed, &size, NV_ENCODE_NATIVE, KM_SLEEP) == 0); if (ddi_copyout(packed, (void *)(uintptr_t)zc->zc_nvlist_dst, size, zc->zc_iflags) != 0) error = EFAULT; - vmem_free(packed, size); + kmem_free(packed, size); } zc->zc_nvlist_dst_size = size; diff --git a/module/zfs/zil.c b/module/zfs/zil.c index 9c0d647c98..7c04debd78 100644 --- a/module/zfs/zil.c +++ b/module/zfs/zil.c @@ -1040,7 +1040,7 @@ zil_itx_create(uint64_t txtype, size_t lrsize) lrsize = P2ROUNDUP_TYPED(lrsize, sizeof (uint64_t), size_t); - itx = kmem_alloc(offsetof(itx_t, itx_lr)+lrsize, KM_SLEEP|KM_NODEBUG); + itx = kmem_alloc(offsetof(itx_t, itx_lr) + lrsize, KM_SLEEP); itx->itx_lr.lrc_txtype = txtype; itx->itx_lr.lrc_reclen = lrsize; itx->itx_sod = lrsize; /* if write & WR_NEED_COPY will be increased */