diff options
Diffstat (limited to 'libtrivfs/protid-dup.c')
-rw-r--r-- | libtrivfs/protid-dup.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libtrivfs/protid-dup.c b/libtrivfs/protid-dup.c index 61696032..75f3ca88 100644 --- a/libtrivfs/protid-dup.c +++ b/libtrivfs/protid-dup.c @@ -35,11 +35,8 @@ trivfs_protid_dup (struct trivfs_protid *cred, struct trivfs_protid **dup) if (! err) { - pthread_mutex_lock (&cred->po->cntl->lock); new->po = cred->po; - new->po->refcnt++; - pthread_mutex_unlock (&cred->po->cntl->lock); - + refcount_ref (&new->po->refcnt); new->isroot = cred->isroot; err = iohelp_dup_iouser (&new->user, cred->user); |