git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
NFS: Cleanup file handle allocations in fs/nfs/super.c
[safe/jmp/linux-2.6]
/
fs
/
btrfs
/
hash.h
diff --git
a/fs/btrfs/hash.h
b/fs/btrfs/hash.h
index
868ee17
..
db2ff97
100644
(file)
--- a/
fs/btrfs/hash.h
+++ b/
fs/btrfs/hash.h
@@
-18,5
+18,10
@@
#ifndef __HASH__
#define __HASH__
-u64 btrfs_name_hash(const char *name, int len);
+
+#include <linux/crc32c.h>
+static inline u64 btrfs_name_hash(const char *name, int len)
+{
+ return crc32c((u32)~1, name, len);
+}
#endif