From 4e1f3ea7fdc6b897dc595abd2e785714521af4f0 Mon Sep 17 00:00:00 2001 From: nikita Date: Tue, 5 Dec 2006 22:03:24 +0000 Subject: [PATCH] iam: change number of bits used by TEA portion of sandwich hash. --- lustre/kernel_patches/patches/ext3-iam-separate.patch | 2 +- lustre/obdclass/mea.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/kernel_patches/patches/ext3-iam-separate.patch b/lustre/kernel_patches/patches/ext3-iam-separate.patch index f25dcfb..b6b3b1c 100644 --- a/lustre/kernel_patches/patches/ext3-iam-separate.patch +++ b/lustre/kernel_patches/patches/ext3-iam-separate.patch @@ -3096,7 +3096,7 @@ Index: iam/fs/ext3/iam_lvar.c + hinfo.seed = 0; + ext3fs_dirhash(name, namelen, &hinfo); + result2 = hinfo.hash; -+ result = (0xff000000 & result2) | (0x00ffffff & result); ++ result = (0xfc000000 & result2) | (0x03ffffff & result); + } + } + return result; diff --git a/lustre/obdclass/mea.c b/lustre/obdclass/mea.c index 051fe79..03888e5 100644 --- a/lustre/obdclass/mea.c +++ b/lustre/obdclass/mea.c @@ -101,7 +101,7 @@ static __u32 hash_build0(const char *name, int namelen) hinfo.seed = 0; ldiskfsfs_dirhash(name, namelen, &hinfo); result2 = hinfo.hash; - result = (0xff000000 & result2) | (0x00ffffff & result); + result = (0xfc000000 & result2) | (0x03ffffff & result); } } -- 1.8.3.1