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

2011-07-24 Thread Tabi Timur-B04825
On Thu, Jun 30, 2011 at 1:50 PM, Becky Bruce 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 alloc

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

2011-07-22 Thread Becky Bruce
On Jul 21, 2011, at 5:44 PM, Andrew Morton wrote: > On Tue, 28 Jun 2011 14:54:45 -0500 > Becky Bruce wrote: > >> From: Becky Bruce >> >> This is needed on HIGHMEM systems - we don't always have a virtual >> address so store the physical address and map it in as needed. >> >> Signed-off-by: B

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

2011-07-21 Thread Andrew Morton
On Tue, 28 Jun 2011 14:54:45 -0500 Becky Bruce wrote: > From: Becky Bruce > > This is needed on HIGHMEM systems - we don't always have a virtual > address so store the physical address and map it in as needed. > > Signed-off-by: Becky Bruce > --- > include/linux/hugetlb.h |3 +++ > mm/hu

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

2011-06-30 Thread Becky Bruce
On Jun 28, 2011, at 4:39 PM, Benjamin Herrenschmidt wrote: > On Tue, 2011-06-28 at 14:54 -0500, Becky Bruce wrote: >> struct page *alloc_huge_page_node(struct hstate *h, int nid); >> diff --git a/mm/hugetlb.c b/mm/hugetlb.c >> index 6402458..2db81ea 100644 >> --- a/mm/hugetlb.c >> +++ b/mm/hugetl

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

2011-06-28 Thread Benjamin Herrenschmidt
On Tue, 2011-06-28 at 14:54 -0500, Becky Bruce wrote: > struct page *alloc_huge_page_node(struct hstate *h, int nid); > diff --git a/mm/hugetlb.c b/mm/hugetlb.c > index 6402458..2db81ea 100644 > --- a/mm/hugetlb.c > +++ b/mm/hugetlb.c > @@ -1105,8 +1105,14 @@ static void __init > gather_bootmem_pr

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

2011-06-28 Thread Becky Bruce
From: Becky Bruce This is needed on HIGHMEM systems - we don't always have a virtual address so store the physical address and map it in as needed. Signed-off-by: Becky Bruce --- include/linux/hugetlb.h |3 +++ mm/hugetlb.c|8 +++- 2 files changed, 10 insertions(+), 1 d