summaryrefslogtreecommitdiffstats
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-08-12 16:06:31 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-08-22 08:58:16 -0400
commit1264a2f053a32376696e51184f086d35113e75ff (patch)
tree3753683f3c47273e616c4221faf2eba7829ace89 /fs/nfs/inode.c
parentc2dd1378fa3b52ab1705f1ce0bd46d1b91eb1d58 (diff)
downloadop-kernel-dev-1264a2f053a32376696e51184f086d35113e75ff.zip
op-kernel-dev-1264a2f053a32376696e51184f086d35113e75ff.tar.gz
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>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r--fs/nfs/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index af6e806..9a98b04 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -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);
}
/*
OpenPOWER on IntegriCloud