From: Johann Lombardi Date: Thu, 14 Jan 2010 13:00:47 +0000 (+0100) Subject: quiet noisy error message when rehash is disabled X-Git-Tag: v1_8_2~25 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=86523d63b07a7ed42b4e6190e45c0e1812d0c951;p=fs%2Flustre-release.git quiet noisy error message when rehash is disabled Rehash is sometimes disabled temporarily, so quiet message printed on the console when cur_bits != max_bits. --- diff --git a/lustre/obdclass/class_hash.c b/lustre/obdclass/class_hash.c index 9bf81f4..0867098 100644 --- a/lustre/obdclass/class_hash.c +++ b/lustre/obdclass/class_hash.c @@ -127,7 +127,8 @@ lustre_hash_init(char *name, unsigned int cur_bits, unsigned int max_bits, lh->lh_ops = ops; lh->lh_flags = flags; if (cur_bits != max_bits && (lh->lh_flags & LH_REHASH) == 0) - CWARN("Rehash is disabled, ignore max_bits %d\n", max_bits); + CDEBUG(D_INFO, "Rehash is disabled, ignore max_bits %d\n", + max_bits); /* theta * 1000 */ __lustre_hash_set_theta(lh, 500, 2000);