Re: btrfs_extref_hash 64-bit vs. btrfs_crc32c 32-bit

2017-09-24 Thread Hans van Kranenburg
On 09/23/2017 12:35 PM, Hans van Kranenburg wrote: > Hi, > > When looking around in the kernel code, I ran into this (hash.h): > > u32 btrfs_crc32c(u32 crc, const void *address, unsigned int length); > > [...] > > static inline u64 btrfs_extref_hash(u64 parent_objectid, const char *name, > int

btrfs_extref_hash 64-bit vs. btrfs_crc32c 32-bit

2017-09-23 Thread Hans van Kranenburg
Hi, When looking around in the kernel code, I ran into this (hash.h): u32 btrfs_crc32c(u32 crc, const void *address, unsigned int length); [...] static inline u64 btrfs_extref_hash(u64 parent_objectid, const char *name, int len) { return (u64) btrfs_crc32c(parent_objectid, name, len); } [...]