NFS: Remove unused function slot_idx
[deliverable/linux.git] / fs / nfs / nfs4session.h
CommitLineData
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)
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 */
This page took 0.0273 seconds and 5 git commands to generate.