]> git.baikalelectronics.ru Git - kernel.git/commit
um: Implement a custom pte_same() function
authorRichard Weinberger <richard@nod.at>
Sat, 14 Apr 2012 15:29:30 +0000 (17:29 +0200)
committerRichard Weinberger <richard@nod.at>
Mon, 21 May 2012 19:09:34 +0000 (21:09 +0200)
commit829d67ae1834e329c349037d1c212d148a5429cc
tree328e59eb0b946a2f79b5d9e926fbc26821077502
parente599cdbd378cfcc0732190353e43b7a060661e69
um: Implement a custom pte_same() function

UML uses the _PAGE_NEWPAGE flag to mark pages which are not jet
installed on the host side using mmap().
pte_same() has to ignore this flag, otherwise unuse_pte_range()
is unable to unuse the page because two identical
page tables entries with different _PAGE_NEWPAGE flags would not
match and swapoff() would never return.

CC: stable@kernel.org
Analyzed-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/include/asm/pgtable.h