Whamcloud - gitweb
b=23289 skip big loop in mds_lov_dump_objids if D_INFO is not set
authorJian Yu <jian.yu@oracle.com>
Tue, 2 Nov 2010 06:57:41 +0000 (14:57 +0800)
committerVitaly Fertman <vitaly.fertman@sun.com>
Tue, 2 Nov 2010 12:08:05 +0000 (15:08 +0300)
o=liang
i=andreas.dilger
i=vitaly.fertman

lustre/mds/mds_lov.c

index 15886e2..40d477d 100644 (file)
@@ -58,6 +58,9 @@ static void mds_lov_dump_objids(const char *label, struct obd_device *obd)
         struct mds_obd *mds = &obd->u.mds;
         unsigned int i=0, j;
 
+        if ((libcfs_debug & D_INFO) == 0)
+                return;
+
         CDEBUG(D_INFO, "dump from %s\n", label);
         if (mds->mds_lov_page_dirty == NULL) {
                 CERROR("NULL bitmap!\n");