Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/mm: ignore change bit for vmemmap

Add hint to the page tables that we don't care about the change bit
in storage keys that belong to vmemmap pages.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Heiko Carstens and committed by
Martin Schwidefsky
17ea345a 1819ed1f

+2 -1
+2 -1
arch/s390/mm/vmem.c
··· 236 236 if (!new_page) 237 237 goto out; 238 238 pmd_val(*pm_dir) = __pa(new_page) | 239 - _SEGMENT_ENTRY | _SEGMENT_ENTRY_LARGE; 239 + _SEGMENT_ENTRY | _SEGMENT_ENTRY_LARGE | 240 + _SEGMENT_ENTRY_CO; 240 241 address = (address + PMD_SIZE) & PMD_MASK; 241 242 continue; 242 243 }