nfs_subs.c (88091) | nfs_subs.c (92783) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 23 unchanged lines hidden (view full) --- 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95 37 */ 38 39#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 23 unchanged lines hidden (view full) --- 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95 37 */ 38 39#include <sys/cdefs.h> |
40__FBSDID("$FreeBSD: head/sys/nfsclient/nfs_subs.c 88091 2001-12-18 01:22:09Z iedowse $"); | 40__FBSDID("$FreeBSD: head/sys/nfsclient/nfs_subs.c 92783 2002-03-20 10:07:52Z jeff $"); |
41 42/* 43 * These functions support the macros and help fiddle mbuf chains for 44 * the nfs op functions. They do things like create the rpc header and 45 * copy data between mbuf chains and uio lists. 46 */ 47 48#include <sys/param.h> --- 11 unchanged lines hidden (view full) --- 60#include <sys/malloc.h> 61#include <sys/sysent.h> 62#include <sys/syscall.h> 63#include <sys/sysproto.h> 64 65#include <vm/vm.h> 66#include <vm/vm_object.h> 67#include <vm/vm_extern.h> | 41 42/* 43 * These functions support the macros and help fiddle mbuf chains for 44 * the nfs op functions. They do things like create the rpc header and 45 * copy data between mbuf chains and uio lists. 46 */ 47 48#include <sys/param.h> --- 11 unchanged lines hidden (view full) --- 60#include <sys/malloc.h> 61#include <sys/sysent.h> 62#include <sys/syscall.h> 63#include <sys/sysproto.h> 64 65#include <vm/vm.h> 66#include <vm/vm_object.h> 67#include <vm/vm_extern.h> |
68#include <vm/vm_zone.h> | 68#include <vm/uma.h> |
69 70#include <nfs/rpcv2.h> 71#include <nfs/nfsproto.h> 72#include <nfsclient/nfs.h> 73#include <nfsclient/nfsnode.h> 74#include <nfs/xdr_subs.h> 75#include <nfsclient/nfsm_subs.h> 76#include <nfsclient/nfsmount.h> --- 306 unchanged lines hidden (view full) --- 383/* 384 * Called once to initialize data structures... 385 */ 386int 387nfs_init(struct vfsconf *vfsp) 388{ 389 int i; 390 | 69 70#include <nfs/rpcv2.h> 71#include <nfs/nfsproto.h> 72#include <nfsclient/nfs.h> 73#include <nfsclient/nfsnode.h> 74#include <nfs/xdr_subs.h> 75#include <nfsclient/nfsm_subs.h> 76#include <nfsclient/nfsmount.h> --- 306 unchanged lines hidden (view full) --- 383/* 384 * Called once to initialize data structures... 385 */ 386int 387nfs_init(struct vfsconf *vfsp) 388{ 389 int i; 390 |
391 nfsmount_zone = zinit("NFSMOUNT", sizeof(struct nfsmount), 0, 0, 1); | 391 nfsmount_zone = uma_zcreate("NFSMOUNT", sizeof(struct nfsmount), 392 NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0); |
392 rpc_vers = txdr_unsigned(RPC_VER2); 393 rpc_call = txdr_unsigned(RPC_CALL); 394 rpc_reply = txdr_unsigned(RPC_REPLY); 395 rpc_msgdenied = txdr_unsigned(RPC_MSGDENIED); 396 rpc_msgaccepted = txdr_unsigned(RPC_MSGACCEPTED); 397 rpc_mismatch = txdr_unsigned(RPC_MISMATCH); 398 rpc_autherr = txdr_unsigned(RPC_AUTHERR); 399 rpc_auth_unix = txdr_unsigned(RPCAUTH_UNIX); --- 660 unchanged lines hidden --- | 393 rpc_vers = txdr_unsigned(RPC_VER2); 394 rpc_call = txdr_unsigned(RPC_CALL); 395 rpc_reply = txdr_unsigned(RPC_REPLY); 396 rpc_msgdenied = txdr_unsigned(RPC_MSGDENIED); 397 rpc_msgaccepted = txdr_unsigned(RPC_MSGACCEPTED); 398 rpc_mismatch = txdr_unsigned(RPC_MISMATCH); 399 rpc_autherr = txdr_unsigned(RPC_AUTHERR); 400 rpc_auth_unix = txdr_unsigned(RPCAUTH_UNIX); --- 660 unchanged lines hidden --- |