]> git.baikalelectronics.ru Git - kernel.git/commit
LoongArch: Set _PAGE_DIRTY only if _PAGE_MODIFIED is set in {pmd,pte}_mkwrite()
authorHuacai Chen <chenhuacai@loongson.cn>
Mon, 21 Nov 2022 11:02:57 +0000 (19:02 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Mon, 21 Nov 2022 11:02:57 +0000 (19:02 +0800)
commitf5eef6bc09fe259bfa1d68a339d89b74d48b1533
tree961d2bdb58dbb0c805c9c0d76105db8e4c2b3d91
parentac3ae028281b33f2a4d52ea8eb4d078acdff1f3a
LoongArch: Set _PAGE_DIRTY only if _PAGE_MODIFIED is set in {pmd,pte}_mkwrite()

Set _PAGE_DIRTY only if _PAGE_MODIFIED is set in {pmd,pte}_mkwrite().
Otherwise, _PAGE_DIRTY silences the TLB modify exception and make us
have no chance to mark a pmd/pte dirty (_PAGE_MODIFIED) for software.

Reviewed-by: Guo Ren <guoren@kernel.org>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/pgtable.h