]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mm: remove_mapping() safeness
authorNick Piggin <npiggin@suse.de>
Tue, 26 Sep 2006 06:31:23 +0000 (23:31 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:48 +0000 (08:48 -0700)
commitf505b1c752b9d2b0d37060557a5de5ff9d230a1a
tree6c98aa227c5cfdc9fb51ddf53c4497127beb3ca1
parent130f832099feb002df6092f7273bfaf0e92d93bd
[PATCH] mm: remove_mapping() safeness

Some users of remove_mapping had been unsafe.

Modify the remove_mapping precondition to ensure the caller has locked the
page and obtained the correct mapping.  Modify callers to ensure the
mapping is the correct one.

[hugh@veritas.com: swapper_space fix]
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/vmscan.c