]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/btrfs/hash.h
Switch btrfs_name_hash() to crc32c
[linux-2.6-omap-h63xx.git] / fs / btrfs / hash.h
index 868ee17ca77a022a5fa2467419cbb69cffd38fed..2a020b2767683238bbb1faafa18f0cbb9a20dd53 100644 (file)
 
 #ifndef __HASH__
 #define __HASH__
-u64 btrfs_name_hash(const char *name, int len);
+
+#include "crc32c.h"
+static inline u64 btrfs_name_hash(const char *name, int len)
+{
+       return btrfs_crc32c((u32)~1, name, len);
+}
 #endif