summaryrefslogtreecommitdiffstats
path: root/sys/isofs
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-03-20 10:17:00 +0000
committerjeff <jeff@FreeBSD.org>2002-03-20 10:17:00 +0000
commit378990c7c88bf4bfb6ac322cc48ecdf998b616be (patch)
tree755fd7bc8fb7b181af7e8ffa4ce1f8549fb903d8 /sys/isofs
parente6a7c8b87fa9f3c6f3a65bb808af93aee5ceb5f9 (diff)
downloadFreeBSD-src-378990c7c88bf4bfb6ac322cc48ecdf998b616be.zip
FreeBSD-src-378990c7c88bf4bfb6ac322cc48ecdf998b616be.tar.gz
Remove references to vm_zone.h and switch over to the new uma API.
Diffstat (limited to 'sys/isofs')
-rw-r--r--sys/isofs/cd9660/cd9660_vnops.c8
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;
OpenPOWER on IntegriCloud