blob: cb47b1eb0886a1aa86f6aa0e2cd06304ef161565 [file] [log] [blame]
Trond Myklebust73e39aa2012-11-26 12:49:34 -05001/*
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)
11extern struct nfs4_slot *nfs4_alloc_slot(struct nfs4_slot_table *tbl);
12extern void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot);
13
14extern void nfs41_set_target_slotid(struct nfs4_slot_table *tbl,
15 u32 target_highest_slotid);
16extern void nfs41_update_target_slotid(struct nfs4_slot_table *tbl,
17 struct nfs4_slot *slot,
18 struct nfs4_sequence_res *res);
19
20extern int nfs4_setup_session_slot_tables(struct nfs4_session *ses);
21
22extern struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp);
23extern void nfs4_destroy_session(struct nfs4_session *session);
24extern int nfs4_init_session(struct nfs_server *server);
25extern int nfs4_init_ds_session(struct nfs_client *, unsigned long);
26
27#else /* defined(CONFIG_NFS_V4_1) */
28
29static 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 */