Whamcloud - gitweb
return TEA hash back
authortappro <tappro>
Mon, 6 Nov 2006 14:36:49 +0000 (14:36 +0000)
committertappro <tappro>
Mon, 6 Nov 2006 14:36:49 +0000 (14:36 +0000)
lustre/kernel_patches/patches/ext3-iam-separate.patch
lustre/obdclass/mea.c

index d11300c..f424195 100644 (file)
@@ -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,
index 2d68aa7..030cf61 100644 (file)
@@ -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)