diff options
author | Lu Fengqi <lufq.fnst@cn.fujitsu.com> | 2016-07-15 11:00:28 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-10-25 14:28:36 +0200 |
commit | 36d02f3eb807e86c3b06ad78a9c99ddef2021076 (patch) | |
tree | 6037f4e822baa294a2f9cfcc5cc91f52b1c6ca49 /inode-item.c | |
parent | 876db7f50c0658f9c2946a341ad270f3968a28fc (diff) |
btrfs-progs: move btrfs_extref_hash() to hash.h
Move btrfs_extref_hash() from inode-item.c to hash.h,
so that the function can be called elsewhere.
Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Diffstat (limited to 'inode-item.c')
-rw-r--r-- | inode-item.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/inode-item.c b/inode-item.c index 913b81ad..f7b6ead5 100644 --- a/inode-item.c +++ b/inode-item.c @@ -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) |