aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/io-prenotify.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/io-prenotify.c')
-rw-r--r--libdiskfs/io-prenotify.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdiskfs/io-prenotify.c b/libdiskfs/io-prenotify.c
index f193f52b..4eb1c657 100644
--- a/libdiskfs/io-prenotify.c
+++ b/libdiskfs/io-prenotify.c
@@ -37,7 +37,7 @@ diskfs_S_io_prenotify (struct protid *cred,
np = cred->po->np;
/* Clamp it down */
- mutex_lock (&np->lock);
+ pthread_mutex_lock (&np->lock);
if (!cred->mapped)
{
@@ -55,9 +55,9 @@ diskfs_S_io_prenotify (struct protid *cred,
{
/* The user didn't need to do this, so we'll make sure they
have the right shared page info. */
- spin_lock (&cred->mapped->lock);
+ pthread_spin_lock (&cred->mapped->lock);
iohelp_put_shared_data (cred);
- spin_unlock (&cred->mapped->lock);
+ pthread_spin_unlock (&cred->mapped->lock);
goto out;
}
@@ -67,6 +67,6 @@ diskfs_S_io_prenotify (struct protid *cred,
if (!err && np->filemod_reqs)
diskfs_notice_filechange (np, FILE_CHANGED_EXTEND, 0, end);
out:
- mutex_unlock (&np->lock);
+ pthread_mutex_unlock (&np->lock);
return err;
}