NOMMU: Revert 'nommu: get_user_pages(): pin last page on non-page-aligned start'
authorDavid Howells <dhowells@redhat.com>
Thu, 25 Mar 2010 16:48:38 +0000 (16:48 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 25 Mar 2010 21:13:26 +0000 (14:13 -0700)
commit5ed04b460ccc5d70dbd5a584fdb13a4188bb145e
tree8b3fa49efdec009515b9de7503160877953c4027
parent6c6bb846e52c105ad8278862d18ceac46f08940b
NOMMU: Revert 'nommu: get_user_pages(): pin last page on non-page-aligned start'

Revert the following patch:

commit 0dd976a5c00195916d28fdae946d45fcca2c20d3
Author: Steven J. Magnani <steve@digidescorp.com>
Date:   Fri Mar 5 13:42:24 2010 -0800

nommu: get_user_pages(): pin last page on non-page-aligned start

As it assumes that the mappings begin at the start of pages - something that
isn't necessarily true on NOMMU systems.  On NOMMU systems, it is possible for
a mapping to only occupy part of the page, and not necessarily touch either end
of it; in fact it's also possible for multiple non-overlapping mappings to
coexist on one page (consider direct mappings of ROMFS files, for example).

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Steven J. Magnani <steve@digidescorp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/nommu.c