summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2014-09-02 21:27:58 -0700
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-09-10 12:47:04 -0700
commit9dd2fcd32f488ea89c2227cc56069446147376e8 (patch)
tree30ea4e772c5c64cdf8120ad960b0910f622a92bf /fs/nfs/pnfs.h
parent661373b13d0490ff410a2133d4a7a117f2dd037e (diff)
downloadop-kernel-dev-9dd2fcd32f488ea89c2227cc56069446147376e8.zip
op-kernel-dev-9dd2fcd32f488ea89c2227cc56069446147376e8.tar.gz
pnfs: add a common GETDEVICELIST implementation
At a simple helper to issue a GETDEVICELIST operation and pre-load the device id cache based on the result. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index ce89ae3..3eeca49 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -277,6 +277,8 @@ bool nfs4_put_deviceid_node(struct nfs4_deviceid_node *);
void nfs4_mark_deviceid_unavailable(struct nfs4_deviceid_node *node);
bool nfs4_test_deviceid_unavailable(struct nfs4_deviceid_node *node);
void nfs4_deviceid_purge_client(const struct nfs_client *);
+int nfs4_deviceid_getdevicelist(struct nfs_server *server,
+ const struct nfs_fh *fh);
static inline struct pnfs_layout_segment *
pnfs_get_lseg(struct pnfs_layout_segment *lseg)
OpenPOWER on IntegriCloud