From c9a360f3334f20a956021b78e5379460645c75d0 Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Tue, 2 Nov 2010 14:57:41 +0800 Subject: [PATCH] b=23289 skip big loop in mds_lov_dump_objids if D_INFO is not set o=liang i=andreas.dilger i=vitaly.fertman --- lustre/mds/mds_lov.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/mds/mds_lov.c b/lustre/mds/mds_lov.c index 15886e2..40d477d 100644 --- a/lustre/mds/mds_lov.c +++ b/lustre/mds/mds_lov.c @@ -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"); -- 1.8.3.1