summaryrefslogtreecommitdiffstats
path: root/sys/gnu
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-01-02 11:34:57 +0000
committerbde <bde@FreeBSD.org>1999-01-02 11:34:57 +0000
commit734d13314e6e9f235abcba66a420f81b29606173 (patch)
treea59d3d6af3585db9166b59563c58b540faccaa4d /sys/gnu
parent60b0c6afef485cb129b9755b9ca0fc373c700689 (diff)
downloadFreeBSD-src-734d13314e6e9f235abcba66a420f81b29606173.zip
FreeBSD-src-734d13314e6e9f235abcba66a420f81b29606173.tar.gz
Ifdefed conditionally used simplock variables.
Diffstat (limited to 'sys/gnu')
-rw-r--r--sys/gnu/ext2fs/ext2_ihash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/gnu/ext2fs/ext2_ihash.c b/sys/gnu/ext2fs/ext2_ihash.c
index 9e0b5e4..853c739 100644
--- a/sys/gnu/ext2fs/ext2_ihash.c
+++ b/sys/gnu/ext2fs/ext2_ihash.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_ihash.c 8.7 (Berkeley) 5/17/95
- * $Id: ufs_ihash.c,v 1.16 1998/02/09 06:11:10 eivind Exp $
+ * $Id: ufs_ihash.c,v 1.17 1998/11/10 09:16:27 peter Exp $
*/
#include <sys/param.h>
@@ -53,7 +53,9 @@ static MALLOC_DEFINE(M_UFSIHASH, "UFS ihash", "UFS Inode hash tables");
static LIST_HEAD(ihashhead, inode) *ihashtbl;
static u_long ihash; /* size of hash table - 1 */
#define INOHASH(device, inum) (&ihashtbl[((device) + (inum)) & ihash])
+#ifndef NULL_SIMPLELOCKS
static struct simplelock ufs_ihash_slock;
+#endif
/*
* Initialize inode hash table.
OpenPOWER on IntegriCloud