linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: linux-nfs@vger.kernel.org
Subject: [PATCH 3/4] pnfs: add a nfs4_get_deviceid helper
Date: Mon, 11 Aug 2014 22:06:56 +0200	[thread overview]
Message-ID: <1407787617-26050-4-git-send-email-hch@lst.de> (raw)
In-Reply-To: <1407787617-26050-1-git-send-email-hch@lst.de>

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(+)

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)
 {
-- 
1.9.1


  parent reply	other threads:[~2014-08-11 20:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-11 20:06 pnfs: factor GETDEVICEINFO implementations Christoph Hellwig
2014-08-11 20:06 ` [PATCH 1/4] " Christoph Hellwig
2014-08-12 11:36   ` Boaz Harrosh
2014-08-12 12:21     ` Christoph Hellwig
2014-08-12 12:33       ` Boaz Harrosh
2014-08-12 15:53       ` Christoph Hellwig
2014-08-21 14:46     ` Christoph Hellwig
2014-08-21 16:39       ` Boaz Harrosh
2014-08-11 20:06 ` [PATCH 2/4] pnfs add a common GETDEVICELIST implementation Christoph Hellwig
2014-08-11 20:06 ` Christoph Hellwig [this message]
2014-08-11 20:06 ` [PATCH 4/4] pnfs/blocklayout: use the device id cache Christoph Hellwig
2014-08-12  9:35 ` pnfs: factor GETDEVICEINFO implementations Boaz Harrosh
2014-08-12  9:52   ` Christoph Hellwig
2014-08-12 10:57     ` Boaz Harrosh
  -- strict thread matches above, loose matches on Subject: below --
2014-09-03  4:27 pnfs: factor GETDEVICEINFO implementations V2 Christoph Hellwig
2014-09-03  4:27 ` [PATCH 3/4] pnfs: add a nfs4_get_deviceid helper Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1407787617-26050-4-git-send-email-hch@lst.de \
    --to=hch@lst.de \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).