fix "mspec: handle shrinking virtual memory areas"
authorCliff Wickman <cpw@sgi.com>
Tue, 25 Sep 2007 04:24:41 +0000 (21:24 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 25 Sep 2007 15:51:04 +0000 (08:51 -0700)
commitafa684f6fda6086b229348f0ea21df7c8ad17964
tree2a7c1fb54b6383af854a19f2545ad49abb3dc64a
parentf9b7cba1b8a74c10b0771ca28d4c554aeb9803fc
fix "mspec: handle shrinking virtual memory areas"

The vma_data structure may be shared by vma's from multiple tasks, with no
way of knowing which areas are shared or not shared, so release/clear pages
only when the refcount (of vma's) goes to zero.

Signed-off-by: Cliff Wickman <cpw@sgi.com>
Cc: Jes Sorensen <jes@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/mspec.c