summaryrefslogtreecommitdiff
path: root/libnetfs/make-peropen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs/make-peropen.c')
-rw-r--r--libnetfs/make-peropen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnetfs/make-peropen.c b/libnetfs/make-peropen.c
index f7be58b1..413e9140 100644
--- a/libnetfs/make-peropen.c
+++ b/libnetfs/make-peropen.c
@@ -31,7 +31,7 @@ netfs_make_peropen (struct node *np, int flags, struct peropen *context)
po->filepointer = 0;
po->lock_status = LOCK_UN;
- po->refcnt = 0;
+ refcount_init (&po->refcnt, 1);
po->openstat = flags;
po->np = np;
po->path = NULL;