Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dm-vdo murmurhash: remove u64 alignment requirement

Signed-off-by: Susan LeGendre-McGhee <slegendr@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

authored by

Susan LeGendre-McGhee and committed by
Mikulas Patocka
87d76d28 2deb70d3

+2 -5
+2 -5
drivers/md/dm-vdo/murmurhash3.c
··· 44 44 u64 *hash_out = out; 45 45 46 46 /* body */ 47 - 48 - const u64 *blocks = (const u64 *)(data); 49 - 50 47 int i; 51 48 52 49 for (i = 0; i < nblocks; i++) { 53 - u64 k1 = get_unaligned_le64(&blocks[i * 2]); 54 - u64 k2 = get_unaligned_le64(&blocks[i * 2 + 1]); 50 + u64 k1 = get_unaligned_le64(&data[i * 16]); 51 + u64 k2 = get_unaligned_le64(&data[i * 16 + 8]); 55 52 56 53 k1 *= c1; 57 54 k1 = ROTL64(k1, 31);