From patchwork Mon Jan 14 12:59:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 10762337 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0AA721390 for ; Mon, 14 Jan 2019 12:59:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F08DE2883C for ; Mon, 14 Jan 2019 12:59:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E1C7C28885; Mon, 14 Jan 2019 12:59:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 678D92883C for ; Mon, 14 Jan 2019 12:59:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BFC7C8E0009; Mon, 14 Jan 2019 07:59:52 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id B81118E0002; Mon, 14 Jan 2019 07:59:52 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A237C8E0009; Mon, 14 Jan 2019 07:59:52 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by kanga.kvack.org (Postfix) with ESMTP id 7534A8E0002 for ; Mon, 14 Jan 2019 07:59:52 -0500 (EST) Received: by mail-qk1-f197.google.com with SMTP id s70so16644559qks.4 for ; Mon, 14 Jan 2019 04:59:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=HxJPCFZB3tH21nUHqDn7erS1Lk9q4hsCe3xmXSx/ds4=; b=jyqI7xuNiMHAtNWccuS//B9xwaZWNlURcEPMNXMgIixlCaqmiWjHttY1bFoH7oPobO dL+es8JNBr9YsNCb27+IxS4Efl/GaJUALabiXb1gXI6ujqGccrAU6oRa6lJlb04iH5A3 AgOLQU0MFwCMUHVRjc/9f5AoaI4HiPh2h/xU+SkcHSu87DrGK8v06SIx3hmrnxxaWzzb kncUOODzPwM5raJTG5b+l96XDh4JqIYwsThxIDxLQ4SLZbTvzPL+qm9686VY4hDzFczk mlATuejntdg0bpNoOnjvKnTgmAPeCWZZOmbduNsnd+PpJVUdwl4YRjvtNUOOqrkvuJiR /slA== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: AJcUukcmZmngxFSWRcO1cjAbwlYQTEl0Y6NnfLO7ZEa/HjsC4DV3u5Xe 1qWOm431PFrr9YeMuQyaNfUjqri6aeow5qHG/J2uUM7BQevQO1a/XFP8SsJvlCXZY9nGfxS3SOM 9sCuEGmKf7OiOl0B/ZVpG3JcIeHPZR9WhgBVN8clzkz8UWJkOYHRithnm3En90goCfg== X-Received: by 2002:aed:36a9:: with SMTP id f38mr24258760qtb.367.1547470792257; Mon, 14 Jan 2019 04:59:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN6jKQ/J7DFMrAOYPca0OnMcDc6SwRV5j0F3GVOsn9zjvlg8gAj/2pseBB/d0u1bQQEjGpet X-Received: by 2002:aed:36a9:: with SMTP id f38mr24258736qtb.367.1547470791774; Mon, 14 Jan 2019 04:59:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547470791; cv=none; d=google.com; s=arc-20160816; b=p5iNzcPh5aAdIZ4g9WP4Hjkl3DeybxkYM7Eu8AXW96KzOwWNscKoLLBziRYMx6FaxC u6AGG4bvXUC8bZGasMR/9lOCDV4uhAGW97roHcA74ff98QsdCXAq6A46OAPgQ7sArYzm ItJjHcl/I1oRx6AVtlHfqtCnmJzMgDOKyIzwaqsjcHCWPaBh5yJgmY744FlpzTZZ9mmj c7in+jXFDVyMWXerT3VF6ybN79Fep8gUtk3HkodEj+QHaT8c3LW96xOzGU7MENNmpJRE UNbaNP+dPje4ej9dOtiB7HA2vs3bv9nuPvPm5lUDzF0cuMqK5ctaWOUJSNV6muClthrG uWEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=HxJPCFZB3tH21nUHqDn7erS1Lk9q4hsCe3xmXSx/ds4=; b=LmQw2k5Og5my4Zp4gOwq+Ed3FU1Us9r0bNCBlvVCFV6hqenfTYsFfkpFLsZz2vnTaj I/KzhP+g5G6OSAM+MBkUhBaFyx/TH8cx9SdMMXR67nSK7OETYSFD9qjmukIxtK8H3PXC m9uEKkrF0I2x6AT7KXoH6E9NkrXuNrkfQ/jcCi8Sfi8g4VVJNik4YHOm4RPhkaYIucRo YOE/APUErkw5kVvpVKRYChgnm6AV5Cvc5mLjklcBZQ6vKywWCSDf2kjNYeio1fIn5P6P fYxeVe+4OmjSFTSwCjyUSaEB/lxG7ZwarqXTqxcDLTbl8jmCtspNvFZhi3vNIS0mccPc LAaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id c54si3904575qtb.13.2019.01.14.04.59.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 04:59:51 -0800 (PST) Received-SPF: pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BF2BE88E64; Mon, 14 Jan 2019 12:59:50 +0000 (UTC) Received: from t460s.redhat.com (unknown [10.36.118.91]) by smtp.corp.redhat.com (Postfix) with ESMTP id DD9D75D756; Mon, 14 Jan 2019 12:59:43 +0000 (UTC) From: David Hildenbrand To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-m68k@lists.linux-m68k.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-mediatek@lists.infradead.org, David Hildenbrand , Catalin Marinas , Will Deacon , Bhupesh Sharma , James Morse , Marc Zyngier , Dave Kleikamp , Mark Rutland , Andrew Morton , Michal Hocko , Matthew Wilcox Subject: [PATCH v2 6/9] arm64: kexec: no need to ClearPageReserved() Date: Mon, 14 Jan 2019 13:59:00 +0100 Message-Id: <20190114125903.24845-7-david@redhat.com> In-Reply-To: <20190114125903.24845-1-david@redhat.com> References: <20190114125903.24845-1-david@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Mon, 14 Jan 2019 12:59:51 +0000 (UTC) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP This will be done by free_reserved_page(). Cc: Catalin Marinas Cc: Will Deacon Cc: Bhupesh Sharma Cc: James Morse Cc: Marc Zyngier Cc: Dave Kleikamp Cc: Mark Rutland Cc: Andrew Morton Cc: Michal Hocko Cc: Matthew Wilcox Acked-by: James Morse Signed-off-by: David Hildenbrand Reviewed-by: Bhupesh Sharma Acked-by: Catalin Marinas --- arch/arm64/kernel/machine_kexec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/kernel/machine_kexec.c b/arch/arm64/kernel/machine_kexec.c index aa9c94113700..6f0587b5e941 100644 --- a/arch/arm64/kernel/machine_kexec.c +++ b/arch/arm64/kernel/machine_kexec.c @@ -361,7 +361,6 @@ void crash_free_reserved_phys_range(unsigned long begin, unsigned long end) for (addr = begin; addr < end; addr += PAGE_SIZE) { page = phys_to_page(addr); - ClearPageReserved(page); free_reserved_page(page); } }