summaryrefslogtreecommitdiff
path: root/sys/ntfs/ntfs_ihash.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ntfs/ntfs_ihash.c')
-rw-r--r--sys/ntfs/ntfs_ihash.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/ntfs/ntfs_ihash.c b/sys/ntfs/ntfs_ihash.c
index 50ee7ac17353..0deecff73851 100644
--- a/sys/ntfs/ntfs_ihash.c
+++ b/sys/ntfs/ntfs_ihash.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ntfs_ihash.c,v 1.2 1999/05/06 15:43:19 christos Exp $ */
+/* $NetBSD: ntfs_ihash.c,v 1.5 1999/09/30 16:56:40 jdolecek Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993, 1995
@@ -43,6 +43,7 @@
#include <sys/vnode.h>
#include <sys/malloc.h>
#include <sys/proc.h>
+#include <sys/mount.h>
#include <ntfs/ntfs.h>
#include <ntfs/ntfs_inode.h>
@@ -59,6 +60,7 @@ static u_long ntfs_nthash; /* size of hash table - 1 */
#ifndef NULL_SIMPLELOCKS
static struct simplelock ntfs_nthash_slock;
#endif
+struct lock ntfs_hashlock;
/*
* Initialize inode hash table.
@@ -66,7 +68,7 @@ static struct simplelock ntfs_nthash_slock;
void
ntfs_nthashinit()
{
-
+ lockinit(&ntfs_hashlock, PINOD, "ntfs_nthashlock", 0, 0);
ntfs_nthashtbl = HASHINIT(desiredvnodes, M_NTFSNTHASH, M_WAITOK,
&ntfs_nthash);
simple_lock_init(&ntfs_nthash_slock);