aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/file-get-fs-opts.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/file-get-fs-opts.c')
-rw-r--r--libdiskfs/file-get-fs-opts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/file-get-fs-opts.c b/libdiskfs/file-get-fs-opts.c
index b3bca821..1e70da23 100644
--- a/libdiskfs/file-get-fs-opts.c
+++ b/libdiskfs/file-get-fs-opts.c
@@ -39,9 +39,9 @@ diskfs_S_file_get_fs_options (struct protid *cred,
if (err)
return err;
- rwlock_reader_lock (&diskfs_fsys_lock);
+ pthread_rwlock_rdlock (&diskfs_fsys_lock);
err = diskfs_append_args (&argz, &argz_len);
- rwlock_reader_unlock (&diskfs_fsys_lock);
+ pthread_rwlock_unlock (&diskfs_fsys_lock);
if (! err)
/* Move ARGZ from a malloced buffer into a vm_alloced one. */