summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ifs/ifs_vfsops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ufs/ifs/ifs_vfsops.c')
-rw-r--r--sys/ufs/ifs/ifs_vfsops.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/ufs/ifs/ifs_vfsops.c b/sys/ufs/ifs/ifs_vfsops.c
index 5b72c03..f0e2e8c 100644
--- a/sys/ufs/ifs/ifs_vfsops.c
+++ b/sys/ufs/ifs/ifs_vfsops.c
@@ -176,17 +176,17 @@ restart:
* case getnewvnode() or MALLOC() blocks, otherwise a duplicate
* may occur!
*/
- mtx_enter(&ifs_inode_hash_mtx, MTX_DEF);
+ mtx_lock(&ifs_inode_hash_mtx);
if (ifs_inode_hash_lock) {
while (ifs_inode_hash_lock) {
ifs_inode_hash_lock = -1;
msleep(&ifs_inode_hash_lock, &ifs_inode_hash_mtx, PVM, "ifsvgt", 0);
}
- mtx_exit(&ifs_inode_hash_mtx, MTX_DEF);
+ mtx_unlock(&ifs_inode_hash_mtx);
goto restart;
}
ifs_inode_hash_lock = 1;
- mtx_exit(&ifs_inode_hash_mtx, MTX_DEF);
+ mtx_unlock(&ifs_inode_hash_mtx);
/*
* If this MALLOC() is performed after the getnewvnode()
@@ -206,10 +206,10 @@ restart:
* otherwise the processes waken up immediately hit
* themselves into the mutex.
*/
- mtx_enter(&ifs_inode_hash_mtx, MTX_DEF);
+ mtx_lock(&ifs_inode_hash_mtx);
want_wakeup = ifs_inode_hash_lock < 0;
ifs_inode_hash_lock = 0;
- mtx_exit(&ifs_inode_hash_mtx, MTX_DEF);
+ mtx_unlock(&ifs_inode_hash_mtx);
if (want_wakeup)
wakeup(&ifs_inode_hash_lock);
*vpp = NULL;
@@ -247,10 +247,10 @@ restart:
* otherwise the processes waken up immediately hit
* themselves into the mutex.
*/
- mtx_enter(&ifs_inode_hash_mtx, MTX_DEF);
+ mtx_lock(&ifs_inode_hash_mtx);
want_wakeup = ifs_inode_hash_lock < 0;
ifs_inode_hash_lock = 0;
- mtx_exit(&ifs_inode_hash_mtx, MTX_DEF);
+ mtx_unlock(&ifs_inode_hash_mtx);
if (want_wakeup)
wakeup(&ifs_inode_hash_lock);
OpenPOWER on IntegriCloud