Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758893Ab0FVRdZ (ORCPT ); Tue, 22 Jun 2010 13:33:25 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:32406 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758548Ab0FVR20 (ORCPT ); Tue, 22 Jun 2010 13:28:26 -0400 From: Yinghai Lu To: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton , David Miller , Benjamin Herrenschmidt Cc: Linus Torvalds , Johannes Weiner , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Yinghai Lu Subject: [PATCH 03/25] lmb: Print new doubled array location info Date: Tue, 22 Jun 2010 10:26:32 -0700 Message-Id: <1277227614-11581-4-git-send-email-yinghai@kernel.org> X-Mailer: git-send-email 1.6.4.2 In-Reply-To: <1277227614-11581-1-git-send-email-yinghai@kernel.org> References: <1277227614-11581-1-git-send-email-yinghai@kernel.org> X-Auth-Type: Internal IP X-Source-IP: rcsinet15.oracle.com [148.87.113.117] X-CT-RefId: str=0001.0A090209.4C20F2A5.018C,ss=1,fgs=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1256 Lines: 39 so will have more idea where it is, use lmb_debug to controll it Signed-off-by: Yinghai Lu --- lib/lmb.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/lmb.c b/lib/lmb.c index bbdb1ec..7a6e11a 100644 --- a/lib/lmb.c +++ b/lib/lmb.c @@ -192,8 +192,6 @@ static int lmb_double_array(struct lmb_type *type) if (!lmb_can_resize) return -1; - pr_debug("lmb: %s array full, doubling...", lmb_type_name(type)); - /* Calculate new doubled size */ old_size = type->max * sizeof(struct lmb_region); new_size = old_size << 1; @@ -221,6 +219,10 @@ static int lmb_double_array(struct lmb_type *type) } new_array = __va(addr); + if (lmb_debug) + pr_info("lmb: %s array is doubled to %ld at %llx - %llx", + lmb_type_name(type), type->max * 2, (u64)addr, (u64)addr + new_size); + /* Found space, we now need to move the array over before * we add the reserved region since it may be our reserved * array itself that is full. -- 1.6.4.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/