x86: Always flush pages in change_page_attr
authorAndi Kleen <ak@suse.de>
Sat, 21 Jul 2007 15:09:51 +0000 (17:09 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 22 Jul 2007 01:37:07 +0000 (18:37 -0700)
commit65d2f0bc65b0249a22a6c1f49ec29ee5e2980c7b
tree19204282146d83bd8a1eb6d0f816dd15421afd8c
parentad386589676403eca4e8f52c944995db56e445c3
x86: Always flush pages in change_page_attr

Fix a bug introduced with the CLFLUSH changes: we must always flush pages
changed in cpa(), not just when they are reverted.

Reenable CLFLUSH usage with that now (it was temporarily disabled
for .22)

Add some BUG_ONs

Contains fixes from  Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/mm/pageattr.c
arch/x86_64/mm/pageattr.c