[pnfs] [PATCH 07/17] [SQUASHME] nfs41: move nfs4_proc_create_session's declaration to nfs4_fs.h

Benny Halevy bhalevy at panasas.com
Tue Jun 3 13:39:35 EDT 2008


Declarations should be in header file that's included by the c file
that implements them so to make sure they match.

Signed-off-by: Benny Halevy <bhalevy at panasas.com>
---
 fs/nfs/nfs41_session_recovery.c |    3 ---
 fs/nfs/nfs4_fs.h                |    1 +
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/fs/nfs/nfs41_session_recovery.c b/fs/nfs/nfs41_session_recovery.c
index 7440f19..e876cfa 100644
--- a/fs/nfs/nfs41_session_recovery.c
+++ b/fs/nfs/nfs41_session_recovery.c
@@ -74,9 +74,6 @@ static int nfs41_wait_session_recover_sync(struct rpc_clnt *clnt,
 			   nfs4_wait_bit_killable, TASK_KILLABLE);
 }
 
-int nfs4_proc_create_session(struct nfs_client *clp,
-			     struct nfs4_session *session);
-
 static int session_reclaimer(void *arg)
 {
 	int ret;
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
index 643a3b8..7c36eb1 100644
--- a/fs/nfs/nfs4_fs.h
+++ b/fs/nfs/nfs4_fs.h
@@ -213,6 +213,7 @@ extern int nfs4_setup_sequence(struct nfs_client *clp,
 	struct nfs41_sequence_res *res, int cache_reply, struct rpc_task *task);
 extern void nfs4_put_session(struct nfs4_session **session);
 extern struct nfs4_session *nfs4_alloc_session(void);
+extern int nfs4_proc_create_session(struct nfs_client *, struct nfs4_session *);
 extern int nfs4_proc_destroy_session(struct nfs4_session *, struct rpc_clnt *);
 #endif /* CONFIG_NFS_V4_1 */
 
-- 
1.5.3.3



More information about the pNFS mailing list