• R
    ARM: Fix pfn_valid() for sparse memory · b7cfda9f
    Russell King 提交于
    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: NRussell King <rmk+kernel@arm.linux.org.uk>
    Tested-by: NKhasim Syed Mohammed <khasim@ti.com>
    b7cfda9f
page.h 4.4 KB