summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/nfs/nfs4_idmap_impl.h
diff options
context:
space:
mode:
authorPavel Filipensky <Pavel.Filipensky@Sun.COM>2010-06-06 13:20:55 +0200
committerPavel Filipensky <Pavel.Filipensky@Sun.COM>2010-06-06 13:20:55 +0200
commitf932e4e7f553e8ba4e6125a39681b70e62f50af2 (patch)
treeede96dee09c2b3999036a8d8fddc12f68f71d507 /usr/src/uts/common/nfs/nfs4_idmap_impl.h
parentd669963431730ebd1423ef63416091cc1e628a2c (diff)
downloadillumos-gate-f932e4e7f553e8ba4e6125a39681b70e62f50af2.tar.gz
6930814 share/unshare issues
6931194 exportfs() uses exportinfo_t after dropping exported_lock and without doing exi_count++ 6836258 exportinfo 16-way hash is too small 6953045 Put implementation of the Pearson's hashing algorithm into a separate file
Diffstat (limited to 'usr/src/uts/common/nfs/nfs4_idmap_impl.h')
-rw-r--r--usr/src/uts/common/nfs/nfs4_idmap_impl.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/usr/src/uts/common/nfs/nfs4_idmap_impl.h b/usr/src/uts/common/nfs/nfs4_idmap_impl.h
index 344e98213a..f0f166688d 100644
--- a/usr/src/uts/common/nfs/nfs4_idmap_impl.h
+++ b/usr/src/uts/common/nfs/nfs4_idmap_impl.h
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,17 +19,15 @@
* CDDL HEADER END
*/
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
*/
#ifndef _NFS4_IDMAP_IMPL_H
#define _NFS4_IDMAP_IMPL_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/list.h>
#include <sys/door.h>
+#include <sys/pkp_hash.h>
/*
* This is a private header file. Applications should not directly include
@@ -44,7 +41,7 @@ extern "C" {
/*
* Cache Entry Definitions
*/
-#define NFSID_CACHE_ANCHORS 256
+#define NFSID_CACHE_ANCHORS PKP_HASH_SIZE
typedef struct nfsidmap {
struct nfsidmap *id_chain[2]; /* must be first */