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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2006/7/6, Franck Bui-Huu <vagabon.xyz@xxxxxxxxx>:
@@ -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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux