diff options
author | Christoph Hellwig <hch@lst.de> | 2014-09-03 00:27:59 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-09-10 15:47:04 -0400 |
commit | 30ff0603ca4d66c8244efc80ea8470d3d04aee8b (patch) | |
tree | ee6417bbf67facef5cc1cd4b22d33f4a25b7ee2b /fs/nfs | |
parent | 9dd2fcd32f488ea89c2227cc56069446147376e8 (diff) |
pnfs: add a nfs4_get_deviceid helper
This will be used by the block layout driver when splitting extents.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/pnfs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index 3eeca49d9ca2..d84fe29fc88b 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h | |||
@@ -280,6 +280,13 @@ void nfs4_deviceid_purge_client(const struct nfs_client *); | |||
280 | int nfs4_deviceid_getdevicelist(struct nfs_server *server, | 280 | int nfs4_deviceid_getdevicelist(struct nfs_server *server, |
281 | const struct nfs_fh *fh); | 281 | const struct nfs_fh *fh); |
282 | 282 | ||
283 | static inline struct nfs4_deviceid_node * | ||
284 | nfs4_get_deviceid(struct nfs4_deviceid_node *d) | ||
285 | { | ||
286 | atomic_inc(&d->ref); | ||
287 | return d; | ||
288 | } | ||
289 | |||
283 | static inline struct pnfs_layout_segment * | 290 | static inline struct pnfs_layout_segment * |
284 | pnfs_get_lseg(struct pnfs_layout_segment *lseg) | 291 | pnfs_get_lseg(struct pnfs_layout_segment *lseg) |
285 | { | 292 | { |