]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit53f5d322a7c9a69ef281bb9db79d9ac1959217de
tree7cdc7bf5c0df29b218c9c40d6cddd5124587b7a5
parentc0541c087d9e0e0115cdfb9c857136552491225e
[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