From patchwork Wed Dec 5 12:28:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 10714019 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 B4EE21731 for ; Wed, 5 Dec 2018 12:30:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A58682CC55 for ; Wed, 5 Dec 2018 12:30:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 996992CC8A; Wed, 5 Dec 2018 12:30:20 +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 3911F2CC55 for ; Wed, 5 Dec 2018 12:30:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5CB386B7455; Wed, 5 Dec 2018 07:30:18 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 5A48F6B7456; Wed, 5 Dec 2018 07:30:18 -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 4915F6B7457; Wed, 5 Dec 2018 07:30:18 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by kanga.kvack.org (Postfix) with ESMTP id 224286B7455 for ; Wed, 5 Dec 2018 07:30:18 -0500 (EST) Received: by mail-qt1-f200.google.com with SMTP id u20so20473722qtk.6 for ; Wed, 05 Dec 2018 04:30:18 -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=bBX054w8bGTdlesbgYGn0SoNh+EN7oi10ZQ+/mUCeAY=; b=slrJPw0j9T8egoBZJVAZ/E4XQF0mXcT1vsej5kB69RgEaSuXb4ZsD4w322nFqVo9Te pvy/0rLrwE7hkO+7nJPleW9Katsbh0I/iM6nt0YR2a6yYsEre/0Vnl+FVfzpf4josSI7 wVeS/l7hTJyWoRN3J4OppzsF1s4pIiZvWHpaLOijNHoU+9f2q7SPQav5olJ/vwrPtsuL 76yspSI2bC5SpaIv0apaBrldlZ8JCbSah4rjDmCp30unxv40aCQ/rIN6XGi7LahOjXRT sz7coSso5Op+Wz/GdfCVkViPB2mVTapBN5V7ZsXlDdm3wefsMYOAx0RolYY5u0FRgHog m6MQ== 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: AA+aEWZvl+DfLk0KpHMRASA8MbNw3n1pzEU0GQDCZUXt5BIYw6vPfzxB 1SVl3QzAkvZ3JCyHMWA6Ft3oY/OXVa12WZ6/H9eMb48wG9VLtu8ePxllcYgF1RN8m1iA++/aFSF WCLMxoMEqUZmzRTM78RobS7rMMhzTqs7HQYH62JhZaSzCWCKq0G/jw2e2P5PLvDUbmg== X-Received: by 2002:ac8:2881:: with SMTP id i1mr23972864qti.382.1544013017934; Wed, 05 Dec 2018 04:30:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xn1dMjQ5aHkJJqTuRhYMH9hnwsCHqMB2JLqM/CXmT1up/b38yanPncVhwfimuciSVHrfTE X-Received: by 2002:ac8:2881:: with SMTP id i1mr23972820qti.382.1544013017303; Wed, 05 Dec 2018 04:30:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544013017; cv=none; d=google.com; s=arc-20160816; b=ZdppDJcW8e3Xc6eHvM072MS3KtPyLVfLQx9Lk/jqj8KofR31hfpyGe3defZYdvALeO eEc5Ug+0eL2UbcV1q18rQ2I5LcI49Yc0EiHKt+WmnIuSw2119GD3qPe1V51evRbqkCWG 0hn1TPqhIvtTV7HJvRe2Ys1eAppG5v/kBHjhaOU8UH3NodeqrlCptEHEwg9RQYGgAE4w 7mp/0UvTgnbBwKBi96mPWZRVHl3ZGav2UVXN+LTvF00p7Hl4vEmp4gMzBclDVxFd6FXp QXFrFmWlHqnfGnbBiRXPcVLo7qfdDxrCn2PxSrh0ypvg3poZ2LvDQxLFOjExo126kqwo gaFA== 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=bBX054w8bGTdlesbgYGn0SoNh+EN7oi10ZQ+/mUCeAY=; b=1KLi+V8q6U+8zVyU1wo5xSDrI8CjRpgBcQ9f8b+3EOBo7HRpdIcSMKlbItl6pWlTWb ra04aIVjr0Y8+JZhQ5ky3svFsukGl11LXy/x2AKFf6c5kILN6h/FGQmcf8l7vHhh4FSE MPXcUGS+3QA7944DlQ/dwIYVBufAhZWjzyqd/MXYbA/kLtIFj3uyYZvWJ4NNkeLTelTx WIoNy2rLzZxM0XikK2rsPMs4aLWgfGw2Qg37AnOMSEp1TgFyop4ep8i4wzsrR7fE7/yr LiDCoEsz+9kscSG4UswD0YWyme012uUg7CFgVFx9bwOH/xKDKRme8xULpWfW95L0rY7C c86A== 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 g89si7817641qtd.118.2018.12.05.04.30.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 04:30:17 -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-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EE2E430001EF; Wed, 5 Dec 2018 12:30:15 +0000 (UTC) Received: from t460s.redhat.com (ovpn-117-65.ams2.redhat.com [10.36.117.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id 658DB60E3F; Wed, 5 Dec 2018 12:30:12 +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 RFC 6/7] arm64: kexec: no need to ClearPageReserved() Date: Wed, 5 Dec 2018 13:28:50 +0100 Message-Id: <20181205122851.5891-7-david@redhat.com> In-Reply-To: <20181205122851.5891-1-david@redhat.com> References: <20181205122851.5891-1-david@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Wed, 05 Dec 2018 12:30:16 +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 already 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 Signed-off-by: David Hildenbrand Acked-by: James Morse --- 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 922add8adb74..0ef4ea73aa54 100644 --- a/arch/arm64/kernel/machine_kexec.c +++ b/arch/arm64/kernel/machine_kexec.c @@ -353,7 +353,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); } }