]> git.baikalelectronics.ru Git - kernel.git/commit
mm: move sys_mmap_pgoff from util.c
authorHugh Dickins <hugh.dickins@tiscali.co.uk>
Wed, 30 Dec 2009 20:17:34 +0000 (20:17 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Dec 2009 20:23:27 +0000 (12:23 -0800)
commitfb556ceb7b4aa174ba9bcfe4a14bd2063c343fd3
tree9f8609685f07d410bc6536a0d3e47e366edf93d4
parente92e905a04e83097d208fdbe360c6dfa79374ab1
mm: move sys_mmap_pgoff from util.c

Move sys_mmap_pgoff() from mm/util.c to mm/mmap.c and mm/nommu.c,
where we'd expect to find such code: especially now that it contains
the MAP_HUGETLB handling.  Revert mm/util.c to how it was in 2.6.32.

This patch just ignores MAP_HUGETLB in the nommu case, as in 2.6.32,
whereas 2.6.33-rc2 reported -ENOSYS.  Perhaps validate_mmap_request()
should reject it with -EINVAL?  Add that later if necessary.

Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mmap.c
mm/nommu.c
mm/util.c