aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2000-01-13 20:18:25 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2000-01-13 20:18:25 +0000
commit34ddf54812f12d73be026b938c32623ba61a489d (patch)
treea57fc703f091c3e3a8aee4b95573b3df195d21b0 /sys
parent278b83e09bddb181b876e55e4fac4425bcf39305 (diff)
downloadsrc-34ddf54812f12d73be026b938c32623ba61a489d.tar.gz
src-34ddf54812f12d73be026b938c32623ba61a489d.zip
The alpha build cuases the 'nfsuid bloated' warning to occur. Well,
there is nothing we can do about it. In fact, after further review there simply are not very many instances of the two structures NFS checks for 'bloat' so I've decided to simply rip the checks out entirely. Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
Notes
Notes: svn path=/head/; revision=55934
Diffstat (limited to 'sys')
-rw-r--r--sys/nfs/nfs.h12
-rw-r--r--sys/nfs/nfs_common.c11
-rw-r--r--sys/nfs/nfs_subs.c11
-rw-r--r--sys/nfsclient/nfs.h12
-rw-r--r--sys/nfsclient/nfs_subs.c11
-rw-r--r--sys/nfsclient/nfsargs.h12
-rw-r--r--sys/nfsclient/nfsstats.h12
-rw-r--r--sys/nfsserver/nfs.h12
-rw-r--r--sys/nfsserver/nfs_srvsubs.c11
-rw-r--r--sys/nfsserver/nfsrvstats.h12
10 files changed, 0 insertions, 116 deletions
diff --git a/sys/nfs/nfs.h b/sys/nfs/nfs.h
index 2d009a1821bc..e07a4f5315d1 100644
--- a/sys/nfs/nfs.h
+++ b/sys/nfs/nfs.h
@@ -114,18 +114,6 @@
#endif
/*
- * Expected allocation sizes for major data structures. If the actual size
- * of the structure exceeds these sizes, then malloc() will be allocating
- * almost twice the memory required. This is used in nfs_init() to warn
- * the sysadmin that the size of a structure should be reduced.
- * (These sizes are always a power of 2. If the kernel malloc() changes
- * to one that does not allocate space in powers of 2 size, then this all
- * becomes bunk!)
- */
-#define NFS_SVCALLOC 256
-#define NFS_UIDALLOC 128
-
-/*
* Arguments to mount NFS
*/
#define NFS_ARGSVERSION 3 /* change when nfs_args changes */
diff --git a/sys/nfs/nfs_common.c b/sys/nfs/nfs_common.c
index 50bd75aff65c..28fce31df420 100644
--- a/sys/nfs/nfs_common.c
+++ b/sys/nfs/nfs_common.c
@@ -1107,17 +1107,6 @@ nfs_init(vfsp)
nfsmount_zone = zinit("NFSMOUNT", sizeof(struct nfsmount), 0, 0, 1);
- /*
- * Check to see if major data structures haven't bloated.
- */
- if (sizeof (struct nfssvc_sock) > NFS_SVCALLOC) {
- printf("struct nfssvc_sock bloated (> %dbytes)\n",NFS_SVCALLOC);
- printf("Try reducing NFS_UIDHASHSIZ\n");
- }
- if (sizeof (struct nfsuid) > NFS_UIDALLOC) {
- printf("struct nfsuid bloated (> %dbytes)\n",NFS_UIDALLOC);
- printf("Try unionizing the nu_nickname and nu_flag fields\n");
- }
nfs_mount_type = vfsp->vfc_typenum;
nfsrtt.pos = 0;
rpc_vers = txdr_unsigned(RPC_VER2);
diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c
index 50bd75aff65c..28fce31df420 100644
--- a/sys/nfs/nfs_subs.c
+++ b/sys/nfs/nfs_subs.c
@@ -1107,17 +1107,6 @@ nfs_init(vfsp)
nfsmount_zone = zinit("NFSMOUNT", sizeof(struct nfsmount), 0, 0, 1);
- /*
- * Check to see if major data structures haven't bloated.
- */
- if (sizeof (struct nfssvc_sock) > NFS_SVCALLOC) {
- printf("struct nfssvc_sock bloated (> %dbytes)\n",NFS_SVCALLOC);
- printf("Try reducing NFS_UIDHASHSIZ\n");
- }
- if (sizeof (struct nfsuid) > NFS_UIDALLOC) {
- printf("struct nfsuid bloated (> %dbytes)\n",NFS_UIDALLOC);
- printf("Try unionizing the nu_nickname and nu_flag fields\n");
- }
nfs_mount_type = vfsp->vfc_typenum;
nfsrtt.pos = 0;
rpc_vers = txdr_unsigned(RPC_VER2);
diff --git a/sys/nfsclient/nfs.h b/sys/nfsclient/nfs.h
index 2d009a1821bc..e07a4f5315d1 100644
--- a/sys/nfsclient/nfs.h
+++ b/sys/nfsclient/nfs.h
@@ -114,18 +114,6 @@
#endif
/*
- * Expected allocation sizes for major data structures. If the actual size
- * of the structure exceeds these sizes, then malloc() will be allocating
- * almost twice the memory required. This is used in nfs_init() to warn
- * the sysadmin that the size of a structure should be reduced.
- * (These sizes are always a power of 2. If the kernel malloc() changes
- * to one that does not allocate space in powers of 2 size, then this all
- * becomes bunk!)
- */
-#define NFS_SVCALLOC 256
-#define NFS_UIDALLOC 128
-
-/*
* Arguments to mount NFS
*/
#define NFS_ARGSVERSION 3 /* change when nfs_args changes */
diff --git a/sys/nfsclient/nfs_subs.c b/sys/nfsclient/nfs_subs.c
index 50bd75aff65c..28fce31df420 100644
--- a/sys/nfsclient/nfs_subs.c
+++ b/sys/nfsclient/nfs_subs.c
@@ -1107,17 +1107,6 @@ nfs_init(vfsp)
nfsmount_zone = zinit("NFSMOUNT", sizeof(struct nfsmount), 0, 0, 1);
- /*
- * Check to see if major data structures haven't bloated.
- */
- if (sizeof (struct nfssvc_sock) > NFS_SVCALLOC) {
- printf("struct nfssvc_sock bloated (> %dbytes)\n",NFS_SVCALLOC);
- printf("Try reducing NFS_UIDHASHSIZ\n");
- }
- if (sizeof (struct nfsuid) > NFS_UIDALLOC) {
- printf("struct nfsuid bloated (> %dbytes)\n",NFS_UIDALLOC);
- printf("Try unionizing the nu_nickname and nu_flag fields\n");
- }
nfs_mount_type = vfsp->vfc_typenum;
nfsrtt.pos = 0;
rpc_vers = txdr_unsigned(RPC_VER2);
diff --git a/sys/nfsclient/nfsargs.h b/sys/nfsclient/nfsargs.h
index 2d009a1821bc..e07a4f5315d1 100644
--- a/sys/nfsclient/nfsargs.h
+++ b/sys/nfsclient/nfsargs.h
@@ -114,18 +114,6 @@
#endif
/*
- * Expected allocation sizes for major data structures. If the actual size
- * of the structure exceeds these sizes, then malloc() will be allocating
- * almost twice the memory required. This is used in nfs_init() to warn
- * the sysadmin that the size of a structure should be reduced.
- * (These sizes are always a power of 2. If the kernel malloc() changes
- * to one that does not allocate space in powers of 2 size, then this all
- * becomes bunk!)
- */
-#define NFS_SVCALLOC 256
-#define NFS_UIDALLOC 128
-
-/*
* Arguments to mount NFS
*/
#define NFS_ARGSVERSION 3 /* change when nfs_args changes */
diff --git a/sys/nfsclient/nfsstats.h b/sys/nfsclient/nfsstats.h
index 2d009a1821bc..e07a4f5315d1 100644
--- a/sys/nfsclient/nfsstats.h
+++ b/sys/nfsclient/nfsstats.h
@@ -114,18 +114,6 @@
#endif
/*
- * Expected allocation sizes for major data structures. If the actual size
- * of the structure exceeds these sizes, then malloc() will be allocating
- * almost twice the memory required. This is used in nfs_init() to warn
- * the sysadmin that the size of a structure should be reduced.
- * (These sizes are always a power of 2. If the kernel malloc() changes
- * to one that does not allocate space in powers of 2 size, then this all
- * becomes bunk!)
- */
-#define NFS_SVCALLOC 256
-#define NFS_UIDALLOC 128
-
-/*
* Arguments to mount NFS
*/
#define NFS_ARGSVERSION 3 /* change when nfs_args changes */
diff --git a/sys/nfsserver/nfs.h b/sys/nfsserver/nfs.h
index 2d009a1821bc..e07a4f5315d1 100644
--- a/sys/nfsserver/nfs.h
+++ b/sys/nfsserver/nfs.h
@@ -114,18 +114,6 @@
#endif
/*
- * Expected allocation sizes for major data structures. If the actual size
- * of the structure exceeds these sizes, then malloc() will be allocating
- * almost twice the memory required. This is used in nfs_init() to warn
- * the sysadmin that the size of a structure should be reduced.
- * (These sizes are always a power of 2. If the kernel malloc() changes
- * to one that does not allocate space in powers of 2 size, then this all
- * becomes bunk!)
- */
-#define NFS_SVCALLOC 256
-#define NFS_UIDALLOC 128
-
-/*
* Arguments to mount NFS
*/
#define NFS_ARGSVERSION 3 /* change when nfs_args changes */
diff --git a/sys/nfsserver/nfs_srvsubs.c b/sys/nfsserver/nfs_srvsubs.c
index 50bd75aff65c..28fce31df420 100644
--- a/sys/nfsserver/nfs_srvsubs.c
+++ b/sys/nfsserver/nfs_srvsubs.c
@@ -1107,17 +1107,6 @@ nfs_init(vfsp)
nfsmount_zone = zinit("NFSMOUNT", sizeof(struct nfsmount), 0, 0, 1);
- /*
- * Check to see if major data structures haven't bloated.
- */
- if (sizeof (struct nfssvc_sock) > NFS_SVCALLOC) {
- printf("struct nfssvc_sock bloated (> %dbytes)\n",NFS_SVCALLOC);
- printf("Try reducing NFS_UIDHASHSIZ\n");
- }
- if (sizeof (struct nfsuid) > NFS_UIDALLOC) {
- printf("struct nfsuid bloated (> %dbytes)\n",NFS_UIDALLOC);
- printf("Try unionizing the nu_nickname and nu_flag fields\n");
- }
nfs_mount_type = vfsp->vfc_typenum;
nfsrtt.pos = 0;
rpc_vers = txdr_unsigned(RPC_VER2);
diff --git a/sys/nfsserver/nfsrvstats.h b/sys/nfsserver/nfsrvstats.h
index 2d009a1821bc..e07a4f5315d1 100644
--- a/sys/nfsserver/nfsrvstats.h
+++ b/sys/nfsserver/nfsrvstats.h
@@ -114,18 +114,6 @@
#endif
/*
- * Expected allocation sizes for major data structures. If the actual size
- * of the structure exceeds these sizes, then malloc() will be allocating
- * almost twice the memory required. This is used in nfs_init() to warn
- * the sysadmin that the size of a structure should be reduced.
- * (These sizes are always a power of 2. If the kernel malloc() changes
- * to one that does not allocate space in powers of 2 size, then this all
- * becomes bunk!)
- */
-#define NFS_SVCALLOC 256
-#define NFS_UIDALLOC 128
-
-/*
* Arguments to mount NFS
*/
#define NFS_ARGSVERSION 3 /* change when nfs_args changes */