aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/ntfs/ntfs_ihash.c
diff options
context:
space:
mode:
authorJason Evans <jasone@FreeBSD.org>2000-10-04 01:29:17 +0000
committerJason Evans <jasone@FreeBSD.org>2000-10-04 01:29:17 +0000
commita18b1f1d4ddeb48bde093cc8a8ecf5d48391a03c (patch)
treebe38329315e26593acf6a8b824bb4069d9701eba /sys/fs/ntfs/ntfs_ihash.c
parent645b8b81f004da9bf1d09dd4707177be1640f1f9 (diff)
downloadsrc-a18b1f1d4ddeb48bde093cc8a8ecf5d48391a03c.tar.gz
src-a18b1f1d4ddeb48bde093cc8a8ecf5d48391a03c.zip
Convert lockmgr locks from using simple locks to using mutexes.
Add lockdestroy() and appropriate invocations, which corresponds to lockinit() and must be called to clean up after a lockmgr lock is no longer needed.
Notes
Notes: svn path=/head/; revision=66615
Diffstat (limited to 'sys/fs/ntfs/ntfs_ihash.c')
-rw-r--r--sys/fs/ntfs/ntfs_ihash.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/fs/ntfs/ntfs_ihash.c b/sys/fs/ntfs/ntfs_ihash.c
index 0deecff73851..cd2300d88067 100644
--- a/sys/fs/ntfs/ntfs_ihash.c
+++ b/sys/fs/ntfs/ntfs_ihash.c
@@ -75,6 +75,15 @@ ntfs_nthashinit()
}
/*
+ * Destroy inode hash table.
+ */
+void
+ntfs_nthashdestroy(void)
+{
+ lockdestroy(&ntfs_hashlock);
+}
+
+/*
* Use the device/inum pair to find the incore inode, and return a pointer
* to it. If it is in core, return it, even if it is locked.
*/