From: Russell King Date: Mon, 7 Sep 2009 14:06:42 +0000 (+0100) Subject: ARM: Fix pfn_valid() for sparse memory X-Git-Tag: v2.6.32-rc1~691^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7cfda9fc3d7aa60cffab5367f2a72a4a70060cd;p=pandora-kernel.git ARM: Fix pfn_valid() for sparse memory 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: Russell King Tested-by: Khasim Syed Mohammed --- Reading git-diff-tree failed