From 32432174fd2a919ab6b25b90aff646f3f4256c5e Mon Sep 17 00:00:00 2001 From: nikita Date: Thu, 2 Nov 2006 16:22:49 +0000 Subject: [PATCH] sync with last changes to iam_lvar.c. --- lustre/obdclass/mea.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/obdclass/mea.c b/lustre/obdclass/mea.c index 2dd4131..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) @@ -149,7 +149,7 @@ int mea_name2idx(struct lmv_stripe_md *mea, const char *name, int namelen) LASSERT(mea && mea->mea_count); c = raw_name2idx(mea->mea_magic, mea->mea_count, name, namelen); - + LASSERT(c < mea->mea_count); return c; } -- 1.8.3.1