]> git.hungrycats.org Git - linux/commit
[PATCH] mm: follow_page invalid pte_page
authorHugh Dickins <hugh@veritas.com>
Sat, 5 Jun 2004 03:52:06 +0000 (20:52 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 5 Jun 2004 03:52:06 +0000 (20:52 -0700)
commitad6e519be1a98976388397325c6e3365e42c4271
tree8e1d36d07a70f131801be7179b128fa56d6f0eda
parente11f2cc49856eabafed09cf30e190646f78b7207
[PATCH] mm: follow_page invalid pte_page

The follow_page write-access case is relying on pte_page before checking
pfn_valid: rearrange that - and we don't need three struct page *pages.

(I notice mempolicy.c's verify_pages is also relying on pte_page, but I'll
leave that to Andi: maybe it ought to be failing on, or skipping over, VM_IO
or VM_RESERVED vmas?)

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/memory.c