Re: [PATCH 2/5] hugetlb: add phys addr to struct huge_bootmem_page

From: Tabi Timur-B04825
Date: Sun Jul 24 2011 - 12:48:25 EST


On Thu, Jun 30, 2011 at 1:50 PM, Becky Bruce <beckyb@xxxxxxxxxxxxxxxxxxx> wrote:

> Because there was no bootmem allocation in the normal case - the non-highmem
> version stores data structure in the huge page itself.  This is perfectly fine as long
> as you have a mapping.  Since this isn't true for HIGHMEM pages, I allocate
> bootmem to store the early data structure that stores information about the
> hugepage (this happens in arch-specific code in alloc_bootmem_huge_page).

I would put this text in a comment in the code.

--
Timur Tabi
Linux kernel developer at Freescale
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/