diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-08-24 22:08:30 (GMT) |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-08-25 18:40:07 (GMT) |
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 f92f9a0..26b8258 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; |