• Russell King's avatar
    ARM: Fix pfn_valid() for sparse memory · b7cfda9f
    Russell King authored
    On OMAP platforms, some people want to declare to segment up the memory
    between the kernel and a separate application such that there is a hole
    in the middle of the memory as far as Linux is concerned.  However,
    they want to be able to mmap() the hole.
    
    This currently causes problems, because update_mmu_cache() thinks that
    there are valid struct pages for the "hole".  Fix this by making
    pfn_valid() slightly more expensive, by checking whether the PFN is
    contained within the meminfo array.
    Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
    Tested-by: default avatarKhasim Syed Mohammed <khasim@ti.com>
    b7cfda9f
page.h 4.42 KB