aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4session.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-08-14 17:58:28 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-08-22 08:58:27 -0400
commit2f92ae343e2358a4936c2470debfc4424b29eb3e (patch)
tree4b26d5165fdaea44f009c8544d54330a31c5ce8a /fs/nfs/nfs4session.h
parent1037e6eaa37a42cec877f103c091cfe5304f4450 (diff)
NFSv4.1: Add tracepoints for debugging slot table operations
Add tracepoints to nfs41_setup_sequence and nfs41_sequence_done to track session and slot table state changes. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4session.h')
-rw-r--r--fs/nfs/nfs4session.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/nfs/nfs4session.h b/fs/nfs/nfs4session.h
index 86a066926f24..e3e6ce357f69 100644
--- a/fs/nfs/nfs4session.h
+++ b/fs/nfs/nfs4session.h
@@ -117,6 +117,16 @@ static inline int nfs4_has_persistent_session(const struct nfs_client *clp)
117 return 0; 117 return 0;
118} 118}
119 119
120#ifdef CONFIG_CRC32
121/*
122 * nfs_session_id_hash - calculate the crc32 hash for the session id
123 * @session - pointer to session
124 */
125#define nfs_session_id_hash(sess_id) \
126 (~crc32_le(0xFFFFFFFF, &(sess_id)->data[0], sizeof((sess_id)->data)))
127#else
128#define nfs_session_id_hash(session) (0)
129#endif
120#else /* defined(CONFIG_NFS_V4_1) */ 130#else /* defined(CONFIG_NFS_V4_1) */
121 131
122static inline int nfs4_init_session(struct nfs_client *clp) 132static inline int nfs4_init_session(struct nfs_client *clp)