• Andi Kleen's avatar
    hugetlb: modular state for hugetlb page size · a5516438
    Andi Kleen authored
    
    
    The goal of this patchset is to support multiple hugetlb page sizes.  This
    is achieved by introducing a new struct hstate structure, which
    encapsulates the important hugetlb state and constants (eg.  huge page
    size, number of huge pages currently allocated, etc).
    
    The hstate structure is then passed around the code which requires these
    fields, they will do the right thing regardless of the exact hstate they
    are operating on.
    
    This patch adds the hstate structure, with a single global instance of it
    (default_hstate), and does the basic work of converting hugetlb to use the
    hstate.
    
    Future patches will add more hstate structures to allow for different
    hugetlbfs mounts to have different page sizes.
    
    [akpm@linux-foundation.org: coding-style fixes]
    Acked-by: default avatarAdam Litke <agl@us.ibm.com>
    Acked-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    Signed-off-by: default avatarNick Piggin <npiggin@suse.de>
    Signed-off-by: Andrew Morton <akpm@linux-foundation...
    a5516438
mmap.c 58.8 KB