[PATCH] madvise: merge the maps
authorPrasanna Meda <pmeda@akamai.com>
Wed, 22 Jun 2005 00:14:37 +0000 (17:14 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 01:46:13 +0000 (18:46 -0700)
commit05b7438475ddbac47e75506913d44550f0e75938
tree3871b9c9c0cfa3699de9581a9283dc9fee608f2c
parente798c6e87b64d9fdbd5e9f757b1c033223763d9f
[PATCH] madvise: merge the maps

This attempts to merge back the split maps.  This code is mostly copied
from Chrisw's mlock merging from post 2.6.11 trees.  The only difference is
in munmapped_error handling.  Also passed prev to willneed/dontneed,
eventhogh they do not handle it now, since I felt it will be cleaner,
instead of handling prev in madvise_vma in some cases and in subfunction in
some cases.

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