4 * Copyright (c) 2012 Trond Myklebust <Trond.Myklebust@netapp.com>
7 #ifndef __LINUX_FS_NFS_NFS4SESSION_H
8 #define __LINUX_FS_NFS_NFS4SESSION_H
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
);
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
);
20 extern int nfs4_setup_session_slot_tables(struct nfs4_session
*ses
);
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);
27 #else /* defined(CONFIG_NFS_V4_1) */
29 static inline int nfs4_init_session(struct nfs_server
*server
)
34 #endif /* defined(CONFIG_NFS_V4_1) */
35 #endif /* __LINUX_FS_NFS_NFS4SESSION_H */