Message ID | 1407787617-26050-4-git-send-email-hch@lst.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index ba468e2..c27fe18 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h @@ -277,6 +277,13 @@ 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 nfs4_deviceid_node * +nfs4_get_deviceid(struct nfs4_deviceid_node *d) +{ + atomic_inc(&d->ref); + return d; +} + static inline struct pnfs_layout_segment * pnfs_get_lseg(struct pnfs_layout_segment *lseg) {
This will be used by the block layout driver when splitting extents. Signed-off-by: Christoph Hellwig <hch@lst.de> --- fs/nfs/pnfs.h | 7 +++++++ 1 file changed, 7 insertions(+)