diff options
author | jeff <jeff@FreeBSD.org> | 2002-03-20 10:07:52 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2002-03-20 10:07:52 +0000 |
commit | 5cc8ffe0d4d9b652c6008e25f3fc1c6a8fd51976 (patch) | |
tree | 397a2dd149ec84023ae2f0cdea08eb53dc029e8d /sys/nfsclient/nfs_vfsops.c | |
parent | d0f60a59c9bb4d69370dd8ce40f1baf9c6f26046 (diff) | |
download | FreeBSD-src-5cc8ffe0d4d9b652c6008e25f3fc1c6a8fd51976.zip FreeBSD-src-5cc8ffe0d4d9b652c6008e25f3fc1c6a8fd51976.tar.gz |
Remove references to vm_zone.h and switch over to the new uma API.
Diffstat (limited to 'sys/nfsclient/nfs_vfsops.c')
-rw-r--r-- | sys/nfsclient/nfs_vfsops.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index 675cd94..8415661 100644 --- a/sys/nfsclient/nfs_vfsops.c +++ b/sys/nfsclient/nfs_vfsops.c @@ -58,7 +58,7 @@ __FBSDID("$FreeBSD$"); #include <vm/vm.h> #include <vm/vm_extern.h> -#include <vm/vm_zone.h> +#include <vm/uma.h> #include <net/if.h> #include <net/route.h> @@ -78,7 +78,7 @@ MALLOC_DEFINE(M_NFSBIGFH, "NFSV3 bigfh", "NFS version 3 file handle"); MALLOC_DEFINE(M_NFSDIROFF, "NFSV3 diroff", "NFS directory offset data"); MALLOC_DEFINE(M_NFSHASH, "NFS hash", "NFS hash tables"); -vm_zone_t nfsmount_zone; +uma_zone_t nfsmount_zone; struct nfsstats nfsstats; SYSCTL_NODE(_vfs, OID_AUTO, nfs, CTLFLAG_RW, 0, "NFS filesystem"); @@ -809,7 +809,7 @@ mountnfs(struct nfs_args *argp, struct mount *mp, struct sockaddr *nam, FREE(nam, M_SONAME); return (0); } else { - nmp = zalloc(nfsmount_zone); + nmp = uma_zalloc(nfsmount_zone, M_WAITOK); bzero((caddr_t)nmp, sizeof (struct nfsmount)); TAILQ_INIT(&nmp->nm_bufq); mp->mnt_data = (qaddr_t)nmp; @@ -895,7 +895,7 @@ mountnfs(struct nfs_args *argp, struct mount *mp, struct sockaddr *nam, bad: nfs_disconnect(nmp); crfree(nmp->nm_cred); - zfree(nfsmount_zone, nmp); + uma_zfree(nfsmount_zone, nmp); FREE(nam, M_SONAME); return (error); } @@ -936,7 +936,7 @@ nfs_unmount(struct mount *mp, int mntflags, struct thread *td) FREE(nmp->nm_nam, M_SONAME); crfree(nmp->nm_cred); - zfree(nfsmount_zone, nmp); + uma_zfree(nfsmount_zone, nmp); return (0); } |