linux-mips
[Top] [All Lists]

Re: [PATCH] do not count pages in holes with sparsemem

To: "Atsushi Nemoto" <anemo@mba.ocn.ne.jp>
Subject: Re: [PATCH] do not count pages in holes with sparsemem
From: "Franck Bui-Huu" <vagabon.xyz@gmail.com>
Date: Thu, 6 Jul 2006 17:05:35 +0200
Cc: vagabon.xyz@gmail.com, linux-mips@linux-mips.org, ralf@linux-mips.org
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KjATFb+4IkDMblfk2E/xlQIIqIgnf54EL6Ocx+D2nK83XiI05qIyf/Bm0AVvvQYTaxo0nbznSYKgqtKSCXh/WNOzr9QHaY/6jklk4LTbM26Vkt1glLOtWrkdOOzYJI20Dzk8e/MODsXuOKiwKCVYQ1WUtoDNFHJFy+L0XNN7A0Q=
In-reply-to: <44AD2537.1030509@innova-card.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <44ABC59C.6070607@innova-card.com> <20060705.231737.59032119.anemo@mba.ocn.ne.jp> <44AD0C2B.7060204@innova-card.com> <20060706.233634.59465089.anemo@mba.ocn.ne.jp> <44AD2537.1030509@innova-card.com>
Sender: linux-mips-bounce@linux-mips.org
2006/7/6, Franck Bui-Huu <vagabon.xyz@gmail.com>:
@@ -207,8 +207,10 @@ #ifndef CONFIG_FLATMEM
                for (j = 0; j < zones_size[i]; j++, pfn++)
                        if (!page_is_ram(pfn))
                                zholes_size[i]++;
-#endif
        free_area_init_node(0, NODE_DATA(0), zones_size, 0, zholes_size);
+#else
+       free_area_init_node(0, NODE_DATA(0), zones_size, ARCH_PFN_OFFSET, NULL);

which is equivalent to:

      free_area_init(zones_size);

--
              Franck

<Prev in Thread] Current Thread [Next in Thread>