提交 30ff0603 编写于 作者: C Christoph Hellwig 提交者: Trond Myklebust

pnfs: add a nfs4_get_deviceid helper

This will be used by the block layout driver when splitting extents.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NTrond Myklebust <trond.myklebust@primarydata.com>
上级 9dd2fcd3
......@@ -280,6 +280,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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册