summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorPeng Tao2014-05-29 15:06:59 +0200
committerTom Haynes2015-02-03 20:06:32 +0100
commit6b7f3cf96364eaf597940cb5c68a682894829915 (patch)
tree532e1216ff4e72da9600f5504d862ced8e0fd8db /fs/nfs/pnfs.h
parentnfs41: pull data server cache from file layout to generic pnfs (diff)
downloadkernel-qcow2-linux-6b7f3cf96364eaf597940cb5c68a682894829915.tar.gz
kernel-qcow2-linux-6b7f3cf96364eaf597940cb5c68a682894829915.tar.xz
kernel-qcow2-linux-6b7f3cf96364eaf597940cb5c68a682894829915.zip
nfs41: pull decode_ds_addr from file layout to generic pnfs
It can be reused by flexfile layout. Reviewed-by: Jeff Layton <jlayton@primarydata.com> Signed-off-by: Peng Tao <tao.peng@primarydata.com> Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index b0168f1dd072..403d7bb67c41 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -312,6 +312,9 @@ void pnfs_generic_write_commit_done(struct rpc_task *task, void *data);
void nfs4_pnfs_ds_put(struct nfs4_pnfs_ds *ds);
struct nfs4_pnfs_ds *nfs4_pnfs_ds_add(struct list_head *dsaddrs,
gfp_t gfp_flags);
+struct nfs4_pnfs_ds_addr *nfs4_decode_mp_ds_addr(struct net *net,
+ struct xdr_stream *xdr,
+ gfp_t gfp_flags);
static inline struct nfs4_deviceid_node *
nfs4_get_deviceid(struct nfs4_deviceid_node *d)