[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Use refcount_t for peropen reference counting in libnetfs.
From: |
Justus Winter |
Subject: |
Re: [PATCH] Use refcount_t for peropen reference counting in libnetfs. |
Date: |
Sun, 07 Feb 2016 17:30:28 +0100 |
User-agent: |
alot/0.3.8.dev |
Quoting Flavio Cruz (2016-02-07 07:33:00)
> * libnetfs/netfs.h: Use refcount_t.
> * libnetfs/make-peropen.c: Initialize to 1 with refcount_init just like in
> libdiskfs.
> * libnetfs/make-protid.c: Don't increment the count here. Do it like
> libdiskfs.
> * libnetfs/io-duplicate.c: Add refcount_ref since netfs_make_protid no longer
> increments the refcount.
> * libnetfs/io-reauthenticate.c: Likewise.
> * libnetfs/io-restrict-auth.c: Likewise.
> * libnetfs/release-peropen.c: Dereference without locking.
Merged, thanks!
Justus