From 10a5fab6e529d3244e7ac360c5097aff9273be16 Mon Sep 17 00:00:00 2001 From: tappro Date: Mon, 6 Nov 2006 14:36:49 +0000 Subject: [PATCH] return TEA hash back --- lustre/kernel_patches/patches/ext3-iam-separate.patch | 4 ++-- lustre/obdclass/mea.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lustre/kernel_patches/patches/ext3-iam-separate.patch b/lustre/kernel_patches/patches/ext3-iam-separate.patch index d11300c..f424195 100644 --- a/lustre/kernel_patches/patches/ext3-iam-separate.patch +++ b/lustre/kernel_patches/patches/ext3-iam-separate.patch @@ -2962,8 +2962,8 @@ Index: iam/fs/ext3/iam_lvar.c + return ((void *)ent) + e_size(leaf, ent); +} + -+#define LVAR_HASH_TEA (0) -+#define LVAR_HASH_R5 (1) ++#define LVAR_HASH_TEA (1) ++#define LVAR_HASH_R5 (0) +#define LVAR_HASH_PREFIX (0) + +static inline lvar_hash_t get_hash(const struct iam_container *bag, diff --git a/lustre/obdclass/mea.c b/lustre/obdclass/mea.c index 2d68aa7..030cf61 100644 --- a/lustre/obdclass/mea.c +++ b/lustre/obdclass/mea.c @@ -64,8 +64,8 @@ static int mea_all_chars_hash(int count, char *name, int namelen) #ifdef __KERNEL__ /* This hash calculate method must be same as the lvar hash method */ -#define LVAR_HASH_TEA (0) -#define LVAR_HASH_R5 (1) +#define LVAR_HASH_TEA (1) +#define LVAR_HASH_R5 (0) #define LVAR_HASH_PREFIX (0) static __u32 hash_build(char *name, int namelen) -- 1.8.3.1