From 86523d63b07a7ed42b4e6190e45c0e1812d0c951 Mon Sep 17 00:00:00 2001 From: Johann Lombardi Date: Thu, 14 Jan 2010 14:00:47 +0100 Subject: [PATCH] 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. --- lustre/obdclass/class_hash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 1.8.3.1