mm: make sure _PAGE_SWP_SOFT_DIRTY bit is not set on present pte
authorCyrill Gorcunov <gorcunov@gmail.com>
Wed, 11 Sep 2013 21:22:47 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:58:06 +0000 (15:58 -0700)
commitfa0f281cf9de8e6877e6536f18a3fc77368df64d
treef542d0f6b19d56f4bfddca7d971bac6c00fca63b
parent5a53748568f79641eaf40e41081a2f4987f005c2
mm: make sure _PAGE_SWP_SOFT_DIRTY bit is not set on present pte

_PAGE_SOFT_DIRTY bit should never be set on present pte so add VM_BUG_ON
to catch any potential future abuse.

Also add a comment on _PAGE_SWP_SOFT_DIRTY definition explaining scope of
its usage.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/include/asm/pgtable.h
arch/x86/include/asm/pgtable_types.h