From 318cbeeecf54d416eb936f4bb65c00b18aab686b Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 20 Mar 2002 04:09:59 +0000 Subject: Remove references to vm_zone.h and switch over to the new uma API. Also, remove maxsockets. If you look carefully you'll notice that the old zone allocator never honored this anyway. --- sys/kern/vfs_syscalls.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/kern/vfs_syscalls.c') diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 5d57da0..915e26a 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -72,8 +72,8 @@ #include #include -#include #include +#include static int change_dir(struct nameidata *ndp, struct thread *td); static void checkdirs(struct vnode *olddp, struct vnode *newdp); @@ -1538,7 +1538,7 @@ symlink(td, uap) int error; struct nameidata nd; - path = zalloc(namei_zone); + path = uma_zalloc(namei_zone, M_WAITOK); if ((error = copyinstr(SCARG(uap, path), path, MAXPATHLEN, NULL)) != 0) goto out; restart: @@ -1574,7 +1574,7 @@ restart: ASSERT_VOP_UNLOCKED(nd.ni_dvp, "symlink"); ASSERT_VOP_UNLOCKED(nd.ni_vp, "symlink"); out: - zfree(namei_zone, path); + uma_zfree(namei_zone, path); return (error); } -- cgit v1.1