btrfs-progs: move btrfs_extref_hash() to hash.h
[platform/upstream/btrfs-progs.git] / inode-item.c
index 913b81a..f7b6ead 100644 (file)
@@ -19,7 +19,7 @@
 #include "ctree.h"
 #include "disk-io.h"
 #include "transaction.h"
-#include "crc32c.h"
+#include "hash.h"
 
 static int find_name_in_backref(struct btrfs_path *path, const char * name,
                         int name_len, struct btrfs_inode_ref **ref_ret)
@@ -184,12 +184,6 @@ out:
                return ret_inode_ref;
 }
 
-static inline u64 btrfs_extref_hash(u64 parent_ino, const char *name,
-                                   int namelen)
-{
-       return (u64)btrfs_crc32c(parent_ino, name, namelen);
-}
-
 static int btrfs_find_name_in_ext_backref(struct btrfs_path *path,
                u64 parent_ino, const char *name, int namelen,
                struct btrfs_inode_extref **extref_ret)