Hugh Dickins 66f0dc481e 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>
2009-12-30 12:23:27 -08:00
..
2009-12-03 13:49:43 +01:00
2009-04-01 08:59:13 -07:00
2009-06-16 19:47:28 -07:00
2009-12-15 08:53:20 -08:00
2009-09-22 07:17:35 -07:00
2009-12-30 12:23:27 -08:00
2009-12-30 12:23:27 -08:00
2009-12-15 08:53:16 -08:00
2007-10-20 01:27:18 +02:00
2009-12-17 15:45:32 -08:00
2009-12-16 19:48:48 -05:00
2009-12-15 08:53:19 -08:00
2009-06-23 12:50:05 -07:00
2009-12-30 12:23:27 -08:00
2009-12-15 08:53:21 -08:00