Whamcloud - gitweb
quiet noisy error message when rehash is disabled
authorJohann Lombardi <johann@sun.com>
Thu, 14 Jan 2010 13:00:47 +0000 (14:00 +0100)
committerJohann Lombardi <johann@sun.com>
Thu, 14 Jan 2010 13:00:47 +0000 (14:00 +0100)
Rehash is sometimes disabled temporarily, so quiet
message printed on the console when cur_bits != max_bits.

lustre/obdclass/class_hash.c

index 9bf81f4..0867098 100644 (file)
@@ -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);