]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mm: parisc pte atomicity
authorHugh Dickins <hugh@veritas.com>
Sun, 30 Oct 2005 01:16:36 +0000 (18:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 30 Oct 2005 04:40:42 +0000 (21:40 -0700)
commit9124a12840a2ec0480bdbe88321a5cc3b3feb2a5
treeac36da7e3dc3e0ba62d4139443beb7eb7c25288d
parentbd21eb89c71844a3f420f131055feea1c7fa2bff
[PATCH] mm: parisc pte atomicity

There's a worrying function translation_exists in parisc cacheflush.h,
unaffected by split ptlock since flush_dcache_page is using it on some other
mm, without any relevant lock.  Oh well, make it a slightly more robust by
factoring the pfn check within it.  And it looked liable to confuse a
camouflaged swap or file entry with a good pte: fix that too.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/parisc/kernel/cache.c
include/asm-parisc/cacheflush.h