aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWeston Andros Adamson <dros@netapp.com>2012-03-06 20:46:43 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-03-07 10:34:07 -0500
commitd8e0539ebdff5ff27fa7eb019715d9dfb5171a3b (patch)
treec85febe66a9527be703fd82fd9e017df740364b3 /include
parentff2eb6818d0d5b2691c112f51c539a817fcc59fc (diff)
NFS: add filehandle crc for debug display
Match wireshark's CRC-32 hash for easier debugging Signed-off-by: Weston Andros Adamson <dros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nfs_fs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index c07a757649dc..ce8e4361ad14 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -396,6 +396,11 @@ static inline void nfs_free_fhandle(const struct nfs_fh *fh)
396} 396}
397 397
398#ifdef RPC_DEBUG 398#ifdef RPC_DEBUG
399extern u32 _nfs_display_fhandle_hash(const struct nfs_fh *fh);
400static inline u32 nfs_display_fhandle_hash(const struct nfs_fh *fh)
401{
402 return _nfs_display_fhandle_hash(fh);
403}
399extern void _nfs_display_fhandle(const struct nfs_fh *fh, const char *caption); 404extern void _nfs_display_fhandle(const struct nfs_fh *fh, const char *caption);
400#define nfs_display_fhandle(fh, caption) \ 405#define nfs_display_fhandle(fh, caption) \
401 do { \ 406 do { \
@@ -403,6 +408,9 @@ extern void _nfs_display_fhandle(const struct nfs_fh *fh, const char *caption);
403 _nfs_display_fhandle(fh, caption); \ 408 _nfs_display_fhandle(fh, caption); \
404 } while (0) 409 } while (0)
405#else 410#else
411static inline u32 nfs_display_fhandle_hash(const struct nfs_fh *fh)
412{
413}
406static inline void nfs_display_fhandle(const struct nfs_fh *fh, 414static inline void nfs_display_fhandle(const struct nfs_fh *fh,
407 const char *caption) 415 const char *caption)
408{ 416{