diff options
Diffstat (limited to 'sys/isofs/cd9660')
-rw-r--r-- | sys/isofs/cd9660/cd9660_vnops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/isofs/cd9660/cd9660_vnops.c b/sys/isofs/cd9660/cd9660_vnops.c index 1a7d185..52909b1 100644 --- a/sys/isofs/cd9660/cd9660_vnops.c +++ b/sys/isofs/cd9660/cd9660_vnops.c @@ -55,8 +55,8 @@ #include <sys/filio.h> #include <vm/vm.h> -#include <vm/vm_zone.h> #include <vm/vnode_pager.h> +#include <vm/uma.h> #include <isofs/cd9660/iso.h> #include <isofs/cd9660/cd9660_node.h> @@ -664,14 +664,14 @@ cd9660_readlink(ap) if (uio->uio_segflg == UIO_SYSSPACE) symname = uio->uio_iov->iov_base; else - symname = zalloc(namei_zone); + symname = uma_zalloc(namei_zone, M_WAITOK); /* * Ok, we just gathering a symbolic name in SL record. */ if (cd9660_rrip_getsymname(dirp, symname, &symlen, imp) == 0) { if (uio->uio_segflg != UIO_SYSSPACE) - zfree(namei_zone, symname); + uma_zfree(namei_zone, symname); brelse(bp); return (EINVAL); } @@ -685,7 +685,7 @@ cd9660_readlink(ap) */ if (uio->uio_segflg != UIO_SYSSPACE) { error = uiomove(symname, symlen, uio); - zfree(namei_zone, symname); + uma_zfree(namei_zone, symname); return (error); } uio->uio_resid -= symlen; |