btrfs: move btrfs_name_hash to dir-item.h
[linux-2.6-block.git] / fs / btrfs / ctree.h
index 7b8e52fd6d991649ab251e351149f035c725d3bf..9c2e96b8711fe2165d42db0c20b75c9028049cef 100644 (file)
@@ -470,11 +470,6 @@ static inline u32 BTRFS_MAX_XATTR_SIZE(const struct btrfs_fs_info *info)
 #define BTRFS_BYTES_TO_BLKS(fs_info, bytes) \
                                ((bytes) >> (fs_info)->sectorsize_bits)
 
-static inline u64 btrfs_name_hash(const char *name, int len)
-{
-       return crc32c((u32)~1, name, len);
-}
-
 static inline gfp_t btrfs_alloc_write_mask(struct address_space *mapping)
 {
        return mapping_gfp_constraint(mapping, ~__GFP_FS);