mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 13:11:14 +00:00
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>
This commit is contained in:
parent
ff2eb6818d
commit
d8e0539ebd
2 changed files with 28 additions and 3 deletions
|
@ -396,6 +396,11 @@ static inline void nfs_free_fhandle(const struct nfs_fh *fh)
|
|||
}
|
||||
|
||||
#ifdef RPC_DEBUG
|
||||
extern u32 _nfs_display_fhandle_hash(const struct nfs_fh *fh);
|
||||
static inline u32 nfs_display_fhandle_hash(const struct nfs_fh *fh)
|
||||
{
|
||||
return _nfs_display_fhandle_hash(fh);
|
||||
}
|
||||
extern void _nfs_display_fhandle(const struct nfs_fh *fh, const char *caption);
|
||||
#define nfs_display_fhandle(fh, caption) \
|
||||
do { \
|
||||
|
@ -403,6 +408,9 @@ extern void _nfs_display_fhandle(const struct nfs_fh *fh, const char *caption);
|
|||
_nfs_display_fhandle(fh, caption); \
|
||||
} while (0)
|
||||
#else
|
||||
static inline u32 nfs_display_fhandle_hash(const struct nfs_fh *fh)
|
||||
{
|
||||
}
|
||||
static inline void nfs_display_fhandle(const struct nfs_fh *fh,
|
||||
const char *caption)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue