diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-06-16 09:52:26 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-06-22 13:24:02 -0400 |
commit | 035168ab39f66e4946d493f9ee20d11e154f332a (patch) | |
tree | 9315dded7db8ccba9fb3601bdc3ab03310bd87ff /fs/nfs/nfs4_fs.h | |
parent | 71ac6da9944e2c9ec73ca64ca7bca74428858585 (diff) |
NFSv4.1: Make nfs4_setup_sequence take a nfs_server argument
In anticipation of the day when we have per-filesystem sessions, and also
in order to allow the session to change in the event of a filesystem
migration event.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r-- | fs/nfs/nfs4_fs.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h index c538c6106e16..9c0aa818b41e 100644 --- a/fs/nfs/nfs4_fs.h +++ b/fs/nfs/nfs4_fs.h | |||
@@ -223,7 +223,12 @@ extern int nfs4_proc_fs_locations(struct inode *dir, const struct qstr *name, | |||
223 | extern struct nfs4_state_recovery_ops *nfs4_reboot_recovery_ops[]; | 223 | extern struct nfs4_state_recovery_ops *nfs4_reboot_recovery_ops[]; |
224 | extern struct nfs4_state_recovery_ops *nfs4_nograce_recovery_ops[]; | 224 | extern struct nfs4_state_recovery_ops *nfs4_nograce_recovery_ops[]; |
225 | #if defined(CONFIG_NFS_V4_1) | 225 | #if defined(CONFIG_NFS_V4_1) |
226 | extern int nfs4_setup_sequence(struct nfs_client *clp, | 226 | static inline struct nfs4_session *nfs4_get_session(const struct nfs_server *server) |
227 | { | ||
228 | return server->nfs_client->cl_session; | ||
229 | } | ||
230 | |||
231 | extern int nfs4_setup_sequence(const struct nfs_server *server, | ||
227 | struct nfs4_sequence_args *args, struct nfs4_sequence_res *res, | 232 | struct nfs4_sequence_args *args, struct nfs4_sequence_res *res, |
228 | int cache_reply, struct rpc_task *task); | 233 | int cache_reply, struct rpc_task *task); |
229 | extern void nfs4_destroy_session(struct nfs4_session *session); | 234 | extern void nfs4_destroy_session(struct nfs4_session *session); |
@@ -234,7 +239,12 @@ extern int nfs4_init_session(struct nfs_server *server); | |||
234 | extern int nfs4_proc_get_lease_time(struct nfs_client *clp, | 239 | extern int nfs4_proc_get_lease_time(struct nfs_client *clp, |
235 | struct nfs_fsinfo *fsinfo); | 240 | struct nfs_fsinfo *fsinfo); |
236 | #else /* CONFIG_NFS_v4_1 */ | 241 | #else /* CONFIG_NFS_v4_1 */ |
237 | static inline int nfs4_setup_sequence(struct nfs_client *clp, | 242 | static inline struct nfs4_session *nfs4_get_session(const struct nfs_server *server) |
243 | { | ||
244 | return NULL; | ||
245 | } | ||
246 | |||
247 | static inline int nfs4_setup_sequence(const struct nfs_server *server, | ||
238 | struct nfs4_sequence_args *args, struct nfs4_sequence_res *res, | 248 | struct nfs4_sequence_args *args, struct nfs4_sequence_res *res, |
239 | int cache_reply, struct rpc_task *task) | 249 | int cache_reply, struct rpc_task *task) |
240 | { | 250 | { |