[PATCH] madvise: do not split the maps
authorPrasanna Meda <pmeda@akamai.com>
Wed, 22 Jun 2005 00:14:36 +0000 (17:14 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 01:46:13 +0000 (18:46 -0700)
commite798c6e87b64d9fdbd5e9f757b1c033223763d9f
treeda4cdd7c60acff82d2fcc826cdbae43440a6df44
parentb15e0905f2b9964fc7426fecab57445e96021b61
[PATCH] madvise: do not split the maps

This attempts to avoid splittings when it is not needed, that is when
vm_flags are same as new flags.  The idea is from the <2.6.11 mlock_fixup
and others.  This will provide base for the next madvise merging patch.

Signed-off-by: Prasanna Meda <pmeda@akamai.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/madvise.c