]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] get_user_pages: kill get_page_map
authorHugh Dickins <hugh@veritas.com>
Wed, 22 Jun 2005 00:15:10 +0000 (17:15 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 01:46:21 +0000 (18:46 -0700)
commit08ef472937e918875a82fd350d3de138aac50414
tree990a503a711b82f94ad78ea5794a46992db05228
parent7c2f3fda5666c280bcd00ac3b86963270b23e796
[PATCH] get_user_pages: kill get_page_map

Since its birth, get_user_pages has been calling a misguided get_page_map
function.  follow_page has already returned NULL if the pfn is invalid, we
cannot reach an invalid pfn from a validated struct page.

Remove get_page_map, and the messy rewind in get_user_pages to cope with
its failure.  Oh, and could we please call that "struct page *page" like
everywhere else, instead of "struct page *map"?

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