nfsd4: support putpubfh operation
[safe/jmp/linux-2.6] / fs / btrfs / hash.h
index d3be026..2a020b2 100644 (file)
 
 #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