nfs4session.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. #if defined(CONFIG_NFS_V4_1)
  10. extern struct nfs4_slot *nfs4_alloc_slot(struct nfs4_slot_table *tbl);
  11. extern void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot);
  12. extern void nfs41_set_target_slotid(struct nfs4_slot_table *tbl,
  13. u32 target_highest_slotid);
  14. extern void nfs41_update_target_slotid(struct nfs4_slot_table *tbl,
  15. struct nfs4_slot *slot,
  16. struct nfs4_sequence_res *res);
  17. extern int nfs4_setup_session_slot_tables(struct nfs4_session *ses);
  18. extern struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp);
  19. extern void nfs4_destroy_session(struct nfs4_session *session);
  20. extern int nfs4_init_session(struct nfs_server *server);
  21. extern int nfs4_init_ds_session(struct nfs_client *, unsigned long);
  22. #else /* defined(CONFIG_NFS_V4_1) */
  23. static inline int nfs4_init_session(struct nfs_server *server)
  24. {
  25. return 0;
  26. }
  27. #endif /* defined(CONFIG_NFS_V4_1) */
  28. #endif /* __LINUX_FS_NFS_NFS4SESSION_H */