]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita3140c4727546952736f9eb0e91fc43146985f7f
tree2a7c1fb54b6383af854a19f2545ad49abb3dc64a
parentc1c42f39dd1defcf2d8aa53c873045b4d29aa27a
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