summaryrefslogtreecommitdiff
path: root/libnetfs/file-sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs/file-sync.c')
-rw-r--r--libnetfs/file-sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libnetfs/file-sync.c b/libnetfs/file-sync.c
index 99492ed8..4f6b4db8 100644
--- a/libnetfs/file-sync.c
+++ b/libnetfs/file-sync.c
@@ -31,8 +31,8 @@ netfs_S_file_sync (struct protid *user,
if (!user)
return EOPNOTSUPP;
- mutex_lock (&user->po->np->lock);
+ pthread_mutex_lock (&user->po->np->lock);
err = netfs_attempt_sync (user->user, user->po->np, wait);
- mutex_unlock (&user->po->np->lock);
+ pthread_mutex_unlock (&user->po->np->lock);
return err;
}