• Thomas Gleixner's avatar
    x86: CPA: avoid split of alias mappings · 8be8f54b
    Thomas Gleixner authored
    avoid over-eager large page splitup.
    
    When the target area needs to be split or is split already (ioremap)
    then the current code enforces the split of large mappings in the alias
    regions even if we could avoid it.
    
    Use a separate variable processed in the cpa_data structure to carry
    the number of pages which have been processed instead of reusing the
    numpages variable. This keeps numpages intact and gives the alias code
    a chance to keep large mappings intact.
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    8be8f54b
pageattr.c 21.7 KB