]> git.hungrycats.org Git - linux/commit
[PATCH] More careful about VMA merging
authorAndrew Morton <akpm@digeo.com>
Mon, 21 Apr 2003 09:23:10 +0000 (02:23 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 21 Apr 2003 09:23:10 +0000 (02:23 -0700)
commit5a49258a919b2c48d45e49721cb0c0fafa0b3ae4
tree476856a4a160ea53dcaddae765fd9515e1626302
parent1bb563dba34662c5efe8e627ab63bb8c4c4484cd
[PATCH] More careful about VMA merging

The VMA merging code can merge vmas which have a ->vm_ops->close() handler.
But this means that per-VMA resources in one of the merged VMAs will not be
freed.

Fix that up by just refusing to merge any VMA's which look "complex": they
have special flags set or they have a ->close handler.
mm/mmap.c