]> git.baikalelectronics.ru Git - kernel.git/commit
get_user_pages: don't try to follow PFNMAP pages
authorLinus Torvalds <torvalds@g5.osdl.org>
Tue, 13 Dec 2005 00:24:33 +0000 (16:24 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 13 Dec 2005 00:24:33 +0000 (16:24 -0800)
commit2a6bd2581c10762ce07e8c6e8c4be062c4839d97
treea592cbfad237a5e373724918a0cc17ee9c421237
parent2da269eaae121d213eeb53eb4879cf4b7e28209b
get_user_pages: don't try to follow PFNMAP pages

Nick Piggin points out that a few drivers play games with VM_IO (why?
who knows..) and thus a pfn-remapped area may not have that bit set even
if remap_pfn_range() set it originally.

So make it explicit in get_user_pages() that we don't follow VM_PFNMAP
pages, since pretty much by definition they do not have a "struct page"
associated with them.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/memory.c