[PATCH] NOMMU: Make mremap() partially work for NOMMU kernels
authorDavid Howells <dhowells@redhat.com>
Wed, 27 Sep 2006 08:50:21 +0000 (01:50 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Sep 2006 15:26:14 +0000 (08:26 -0700)
commit6fa5f80bc34da1a49b42117602b44441402cac2f
tree7cdc7bf5c0df29b218c9c40d6cddd5124587b7a5
parent3034097a5017dd9281b1f795e80af9859627850e
[PATCH] NOMMU: Make mremap() partially work for NOMMU kernels

Make mremap() partially work for NOMMU kernels.  It may resize a VMA provided
that it doesn't exceed the size of the slab object in which the storage is
allocated that the VMA refers to.  Shareable VMAs may not be resized.

Moving VMAs (as permitted by MREMAP_MAYMOVE) is not currently supported.

This patch also makes use of the fact that the VMA list is now ordered to cut
it short when possible.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Documentation/nommu-mmap.txt
mm/nommu.c