From: nikita Date: Thu, 2 Nov 2006 16:22:49 +0000 (+0000) Subject: sync with last changes to iam_lvar.c. X-Git-Tag: v1_8_0_110~486^2~259 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=32432174fd2a919ab6b25b90aff646f3f4256c5e;p=fs%2Flustre-release.git sync with last changes to iam_lvar.c. --- 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; }