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
ocfs2: add IO error check in ocfs2_get_sector()
[safe/jmp/linux-2.6]
/
fs
/
btrfs
/
hash.h
diff --git
a/fs/btrfs/hash.h
b/fs/btrfs/hash.h
index
d3be026
..
2a020b2
100644
(file)
--- a/
fs/btrfs/hash.h
+++ b/
fs/btrfs/hash.h
@@
-18,5
+18,10
@@
#ifndef __HASH__
#define __HASH__
-int btrfs_name_hash(const char *name, int len, u64 *hash_result);
+
+#include "crc32c.h"
+static inline u64 btrfs_name_hash(const char *name, int len)
+{
+ return btrfs_crc32c((u32)~1, name, len);
+}
#endif