summaryrefslogtreecommitdiff
path: root/libdiskfs/dir-mkdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/dir-mkdir.c')
-rw-r--r--libdiskfs/dir-mkdir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/dir-mkdir.c b/libdiskfs/dir-mkdir.c
index 30d7a3b4..1ddb8087 100644
--- a/libdiskfs/dir-mkdir.c
+++ b/libdiskfs/dir-mkdir.c
@@ -36,7 +36,7 @@ diskfs_S_dir_mkdir (struct protid *dircred,
if (diskfs_check_readonly ())
return EROFS;
- mutex_lock (&dnp->lock);
+ pthread_mutex_lock (&dnp->lock);
error = diskfs_lookup (dnp, name, CREATE, 0, ds, dircred);
if (error == EAGAIN)
@@ -47,7 +47,7 @@ diskfs_S_dir_mkdir (struct protid *dircred,
if (error != ENOENT)
{
diskfs_drop_dirstat (dnp, ds);
- mutex_unlock (&dnp->lock);
+ pthread_mutex_unlock (&dnp->lock);
return error;
}
@@ -65,6 +65,6 @@ diskfs_S_dir_mkdir (struct protid *dircred,
if (!error)
diskfs_nput (np);
- mutex_unlock (&dnp->lock);
+ pthread_mutex_unlock (&dnp->lock);
return error;
}