s390/mm: ignore change bit for vmemmap
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Sat, 16 Feb 2013 11:42:35 +0000 (12:42 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 28 Feb 2013 08:37:06 +0000 (09:37 +0100)
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>
arch/s390/mm/vmem.c

index e21aaf4f5cb6a75eb09982f9aad752918b3d0776..ffab84db69071f3ea24e0a446889bcc2036414f2 100644 (file)
@@ -236,7 +236,8 @@ int __meminit vmemmap_populate(struct page *start, unsigned long nr, int node)
                                if (!new_page)
                                        goto out;
                                pmd_val(*pm_dir) = __pa(new_page) |
-                                       _SEGMENT_ENTRY | _SEGMENT_ENTRY_LARGE;
+                                       _SEGMENT_ENTRY | _SEGMENT_ENTRY_LARGE |
+                                       _SEGMENT_ENTRY_CO;
                                address = (address + PMD_SIZE) & PMD_MASK;
                                continue;
                        }