diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2002-03-20 04:09:59 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2002-03-20 04:09:59 +0000 |
commit | c897b81311792ccf6a93feff2a405e2ae53f664e (patch) | |
tree | daba3c4ee1ae7fcfe85223bbb04c0bc9cea8fba2 /sys/kern/vfs_extattr.c | |
parent | e38eb7fbe4881a27c538d6954f14551481d36ce1 (diff) | |
download | src-c897b81311792ccf6a93feff2a405e2ae53f664e.tar.gz src-c897b81311792ccf6a93feff2a405e2ae53f664e.zip |
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.
Notes
Notes:
svn path=/head/; revision=92751
Diffstat (limited to 'sys/kern/vfs_extattr.c')
-rw-r--r-- | sys/kern/vfs_extattr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index 5d57da02002f..915e26abf593 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -72,8 +72,8 @@ #include <vm/vm.h> #include <vm/vm_object.h> -#include <vm/vm_zone.h> #include <vm/vm_page.h> +#include <vm/uma.h> 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); } |