mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
NFSv4.1/flexfiles: Add refcounting to struct nfs4_ff_layout_mirror
We do want to share mirrors between layout segments, so add a refcount to enable that. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
parent
a6970317f2
commit
28a0d72c68
2 changed files with 28 additions and 9 deletions
|
@ -77,6 +77,7 @@ struct nfs4_ff_layout_mirror {
|
|||
u32 uid;
|
||||
u32 gid;
|
||||
struct rpc_cred *cred;
|
||||
atomic_t ref;
|
||||
spinlock_t lock;
|
||||
struct nfs4_ff_layoutstat read_stat;
|
||||
struct nfs4_ff_layoutstat write_stat;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue