aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/disk-io.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/disk-io.h')
-rw-r--r--fs/btrfs/disk-io.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/btrfs/disk-io.h b/fs/btrfs/disk-io.h
index fe4093cbd8..35b9293946 100644
--- a/fs/btrfs/disk-io.h
+++ b/fs/btrfs/disk-io.h
@@ -4,20 +4,11 @@
#include <linux/sizes.h>
#include <fs_internal.h>
-#include "crypto/hash.h"
#include "ctree.h"
#include "disk-io.h"
#define BTRFS_SUPER_INFO_OFFSET SZ_64K
#define BTRFS_SUPER_INFO_SIZE SZ_4K
-static inline u64 btrfs_name_hash(const char *name, int len)
-{
- u32 crc;
-
- crc = crc32c((u32)~1, (unsigned char *)name, len);
-
- return (u64)crc;
-}
int btrfs_csum_data(u16 csum_type, const u8 *data, u8 *out, size_t len);