Commit | Line | Data |
---|---|---|
73e39aaa TM |
1 | /* |
2 | * fs/nfs/nfs4session.h | |
3 | * | |
4 | * Copyright (c) 2012 Trond Myklebust <Trond.Myklebust@netapp.com> | |
5 | * | |
6 | */ | |
7 | #ifndef __LINUX_FS_NFS_NFS4SESSION_H | |
8 | #define __LINUX_FS_NFS_NFS4SESSION_H | |
9 | ||
10 | #if defined(CONFIG_NFS_V4_1) | |
11 | extern struct nfs4_slot *nfs4_alloc_slot(struct nfs4_slot_table *tbl); | |
12 | extern void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot); | |
13 | ||
14 | extern void nfs41_set_target_slotid(struct nfs4_slot_table *tbl, | |
15 | u32 target_highest_slotid); | |
16 | extern void nfs41_update_target_slotid(struct nfs4_slot_table *tbl, | |
17 | struct nfs4_slot *slot, | |
18 | struct nfs4_sequence_res *res); | |
19 | ||
20 | extern int nfs4_setup_session_slot_tables(struct nfs4_session *ses); | |
21 | ||
22 | extern struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp); | |
23 | extern void nfs4_destroy_session(struct nfs4_session *session); | |
24 | extern int nfs4_init_session(struct nfs_server *server); | |
25 | extern int nfs4_init_ds_session(struct nfs_client *, unsigned long); | |
26 | ||
27 | #else /* defined(CONFIG_NFS_V4_1) */ | |
28 | ||
29 | static inline int nfs4_init_session(struct nfs_server *server) | |
30 | { | |
31 | return 0; | |
32 | } | |
33 | ||
34 | #endif /* defined(CONFIG_NFS_V4_1) */ | |
35 | #endif /* __LINUX_FS_NFS_NFS4SESSION_H */ |