From: David Hildenbrand Date: Tue, 5 Mar 2019 23:47:18 +0000 (-0800) Subject: riscv/vdso: don't clear PG_reserved X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=795c230604cb78ee927ca3904ec299b777b5f6c9;p=linux.git riscv/vdso: don't clear PG_reserved The VDSO is part of the kernel image and therefore the struct pages are marked as reserved during boot. As we install a special mapping, the actual struct pages will never be exposed to MM via the page tables. We can therefore leave the pages marked as reserved. Link: http://lkml.kernel.org/r/20190114125903.24845-5-david@redhat.com Signed-off-by: David Hildenbrand Acked-by: Palmer Dabbelt Reviewed-by: Christoph Hellwig Cc: Palmer Dabbelt Cc: Albert Ou Cc: Tobias Klauser Cc: Michal Hocko Cc: Matthew Wilcox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/riscv/kernel/vdso.c b/arch/riscv/kernel/vdso.c index 582cb153eb248..0cd044122234e 100644 --- a/arch/riscv/kernel/vdso.c +++ b/arch/riscv/kernel/vdso.c @@ -54,7 +54,6 @@ static int __init vdso_init(void) struct page *pg; pg = virt_to_page(vdso_start + (i << PAGE_SHIFT)); - ClearPageReserved(pg); vdso_pagelist[i] = pg; } vdso_pagelist[i] = virt_to_page(vdso_data);