Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264034AbUFKPR6 (ORCPT ); Fri, 11 Jun 2004 11:17:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264048AbUFKPR6 (ORCPT ); Fri, 11 Jun 2004 11:17:58 -0400 Received: from e2.ny.us.ibm.com ([32.97.182.102]:52608 "EHLO e2.ny.us.ibm.com") by vger.kernel.org with ESMTP id S264034AbUFKPRu (ORCPT ); Fri, 11 Jun 2004 11:17:50 -0400 Date: Fri, 11 Jun 2004 08:17:40 -0700 From: "Martin J. Bligh" To: Takao Indoh , arjanv@redhat.com cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4]Diskdump Update Message-ID: <78040000.1086967058@[10.10.2.4]> In-Reply-To: References: <1086954645.2731.23.camel@laptop.fenrus.com> X-Mailer: Mulberry/2.2.1 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 592 Lines: 22 > Ok, I fix it. > > - page = mem_map + nr; > + page = pfn_to_page(nr); That's correct now ... > I also need fix this. > > - for (nr = 0; nr < max_mapnr; nr++) { > + for (nr = 0; nr < max_pfn; nr++) { ... but that's not (at least AFAICS from this snippet). You need to iterate over pgdats, and then over the lmem_map inside each pgdat. M. - 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/