[PATCH] pfnmap: do_no_page BUG_ON again
authorHugh Dickins <hugh@veritas.com>
Tue, 29 Nov 2005 16:55:48 +0000 (16:55 +0000)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 29 Nov 2005 22:09:17 +0000 (14:09 -0800)
commit325f04dbca60a4cfe4ac25e7cf246edd07eb4c5f
treeeb9e9fb10b1897fae3130c55c4821b829748767b
parente5bbe4dfc8dbfc50ef89f8641e020616d4d1e69e
[PATCH] pfnmap: do_no_page BUG_ON again

Use copy_user_highpage directly instead of cow_user_page in do_no_page:
in the immediately following page_cache_release, and elsewhere, it is
assuming that new_page is normal.  If any VM_PFNMAP driver can get to
do_no_page, it's just a BUG (but not in the case of do_anonymous_page).

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