diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-08-25 01:08:30 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-08-25 21:40:07 +0300 |
commit | 28a0d72c6867af307c000e068a6da93ae98bcd0c (patch) | |
tree | d36a73df089f293ac5b496082ae7597fd640cd24 /fs/nfs/flexfilelayout/flexfilelayout.h | |
parent | a6970317f2d5f596302d957ae2f5b0d7c8676371 (diff) | |
download | linux-28a0d72c6867af307c000e068a6da93ae98bcd0c.tar.xz |
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>
Diffstat (limited to 'fs/nfs/flexfilelayout/flexfilelayout.h')
-rw-r--r-- | fs/nfs/flexfilelayout/flexfilelayout.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayout.h b/fs/nfs/flexfilelayout/flexfilelayout.h index f92f9a0a856b..26b8258e256f 100644 --- a/fs/nfs/flexfilelayout/flexfilelayout.h +++ b/fs/nfs/flexfilelayout/flexfilelayout.h @@ -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; |