mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
NFS: refactor code for calculating the crc32 hash of a filehandle
We want to be able to display the crc32 hash of the filehandle in tracepoints. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
c2dd1378fa
commit
1264a2f053
2 changed files with 21 additions and 2 deletions
|
@ -38,7 +38,6 @@
|
|||
#include <linux/slab.h>
|
||||
#include <linux/compat.h>
|
||||
#include <linux/freezer.h>
|
||||
#include <linux/crc32.h>
|
||||
|
||||
#include <asm/uaccess.h>
|
||||
|
||||
|
@ -1190,7 +1189,7 @@ u32 _nfs_display_fhandle_hash(const struct nfs_fh *fh)
|
|||
{
|
||||
/* wireshark uses 32-bit AUTODIN crc and does a bitwise
|
||||
* not on the result */
|
||||
return ~crc32(0xFFFFFFFF, &fh->data[0], fh->size);
|
||||
return nfs_fhandle_hash(fh);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue