]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2012 07:15:45 +0000 (15:15 +0800)
commitdb29d1cb1ccc533308f6987359e0209e86ed7530
tree5675d1b7cf83072004b3080a674cab981e689bfe
parentec69e1aa3d7b846b578a5873918f150f37410a77
um: Implement a custom pte_same() function

commit f15b9000eb1d09bbaa4b0a6b2089d7e1f64e84b3 upstream.

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.

Analyzed-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/um/include/asm/pgtable.h