lkml.org 
[lkml]   [2008]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] [6/9] GBPAGES: Add gbpages support to lookup_address
    On Tue, 29 Jan 2008, Andi Kleen wrote:

    >
    > Signed-off-by: Andi Kleen <ak@suse.de>
    >
    > ---
    > arch/x86/mm/pageattr.c | 5 +++++
    > include/asm-x86/pgtable.h | 1 +
    > 2 files changed, 6 insertions(+)
    >
    > Index: linux/arch/x86/mm/pageattr.c
    > ===================================================================
    > --- linux.orig/arch/x86/mm/pageattr.c
    > +++ linux/arch/x86/mm/pageattr.c
    > @@ -152,9 +152,14 @@ pte_t *lookup_address(unsigned long addr
    >
    > if (pgd_none(*pgd))
    > return NULL;
    > +
    > + *level = PG_LEVEL_1G;
    > pud = pud_offset(pgd, address);
    > if (pud_none(*pud))
    > return NULL;

    Please move the level update here, so it is consistent with PMD.

    Thanks,

    tglx


    \
     
     \ /
      Last update: 2008-01-31 17:05    [W:0.026 / U:90.892 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site