public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Fred Isaman <iisaman@netapp.com>
To: linux-nfs@vger.kernel.org
Subject: [PATCH 1/7] SQUASHME: pnfs: export get_lseg and put_lseg
Date: Fri, 11 Jun 2010 03:40:33 -0400	[thread overview]
Message-ID: <1276242039-18649-2-git-send-email-iisaman@netapp.com> (raw)
In-Reply-To: <1276242039-18649-1-git-send-email-iisaman@netapp.com>

Signed-off-by: Fred Isaman <iisaman@netapp.com>
---
 fs/nfs/pnfs.c             |    8 ++++++++
 fs/nfs/pnfs.h             |    6 ------
 include/linux/nfs4_pnfs.h |    3 +++
 3 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index ab47308..d6ba358 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -454,6 +454,14 @@ put_lseg(struct pnfs_layout_segment *lseg)
 		wake_up(&nfsi->lo_waitq);
 }
 
+EXPORT_SYMBOL(put_lseg);
+
+void get_lseg(struct pnfs_layout_segment *lseg)
+{
+	kref_get(&lseg->kref);
+}
+EXPORT_SYMBOL(get_lseg);
+
 static inline u64
 end_offset(u64 start, u64 len)
 {
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index 810ce9e..fd7c532 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -34,7 +34,6 @@ extern int pnfs4_proc_layoutreturn(struct nfs4_pnfs_layoutreturn *lrp, bool wait
 /* pnfs.c */
 extern const nfs4_stateid zero_stateid;
 
-void put_lseg(struct pnfs_layout_segment *lseg);
 void _pnfs_update_layout(struct inode *ino, struct nfs_open_context *ctx,
 	loff_t pos, u64 count, enum pnfs_iomode access_type,
 	struct pnfs_layout_segment **lsegpp);
@@ -95,11 +94,6 @@ static inline int lo_fail_bit(u32 iomode)
 			 NFS_INO_RW_LAYOUT_FAILED : NFS_INO_RO_LAYOUT_FAILED;
 }
 
-static inline void get_lseg(struct pnfs_layout_segment *lseg)
-{
-	kref_get(&lseg->kref);
-}
-
 /* Return true if a layout driver is being used for this mountpoint */
 static inline int pnfs_enabled_sb(struct nfs_server *nfss)
 {
diff --git a/include/linux/nfs4_pnfs.h b/include/linux/nfs4_pnfs.h
index 744ca33..b7772c8 100644
--- a/include/linux/nfs4_pnfs.h
+++ b/include/linux/nfs4_pnfs.h
@@ -92,6 +92,9 @@ layoutcommit_needed(struct nfs_inode *nfsi)
 	return nfsi->layout.lo_cred != NULL;
 }
 
+extern void put_lseg(struct pnfs_layout_segment *lseg);
+extern void get_lseg(struct pnfs_layout_segment *lseg);
+
 #else /* CONFIG_NFS_V4_1 */
 
 static inline bool
-- 
1.6.6.1


  reply	other threads:[~2010-06-11  7:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-11  7:40 [PATCH 0/7] LAYOUTGET invocation cleanup patches Fred Isaman
2010-06-11  7:40 ` Fred Isaman [this message]
2010-06-11  7:40   ` [PATCH 2/7] SQUASHME: pnfsblock: write_begin adjust for removed fields Fred Isaman
2010-06-11  7:40     ` [PATCH 3/7] SQUASHME: pnfsblock: write_end adjust for removed ok_to_use_pnfs Fred Isaman
2010-06-11  7:40       ` [PATCH 4/7] SQUASHME: pnfsblock: write_end_cleanup " Fred Isaman
2010-06-11  7:40         ` [PATCH 5/7] SQUASHME: pnfsblock: bl_write_pagelist support functions adjust for missing PG_USE_PNFS Fred Isaman
2010-06-11  7:40           ` [PATCH 6/7] SQUASHME: pnfsblock: bl_write_pagelist " Fred Isaman
2010-06-11  7:40             ` [PATCH 7/7] pnfs: Revert "pnfs_post_submit: Restore "pnfs: pnfs_do_flush" part 2" Fred Isaman
2010-06-11  8:07 ` [PATCH 0/7] LAYOUTGET invocation cleanup patches Boaz Harrosh
2010-06-11  8:47   ` Fred Isaman
2010-06-11  8:58     ` Boaz Harrosh
2010-06-11 13:44       ` Fred Isaman

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=1276242039-18649-2-git-send-email-iisaman@netapp.com \
    --to=iisaman@netapp.com \
    --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