Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9413342imu; Wed, 5 Dec 2018 04:32:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/V7AyggRpTLKWKz5aMefUiGVwhiW+h+rs9R9PRPwqABXM2NQkfK5a+rvWxcHZUQLffw/vcp X-Received: by 2002:a63:a84a:: with SMTP id i10mr20609297pgp.263.1544013159487; Wed, 05 Dec 2018 04:32:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544013159; cv=none; d=google.com; s=arc-20160816; b=LD9ct7Bxk0hk7rgidHYYNjOVAjI32jmd2kqsFe6tLsD5Cj0bcHM7VxrGTqmjKZcpyU ZyLs0Y65T7B3u1vas//zR5WSLWmOl2hKUw9r1XvXnh/QvOgh5/BD7cPHVvNu+o/mFOj5 jACp5wcCIOtgs0cLMcX7n/X8DTeud1C1TN6Du0mShvzmoxvDre8qL9EPDXfuuXXNmycX FXQHgifjNr6GzDN/G2vOQpCEAOdUbnZu25UehS4DMWhpBDh+ocnaLVQYw5Tcx4x4m0h4 XQvhmuIIh4NcXUNKPPXYa/2WX2726Ux3rbB5QcNjMcrVFGixIPrUNt4YNFtayRcWmz4t 1ebA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=uu9Bv6QSbxHHwnbPMecYXxLOyjHYWGYtAnb0Wv3n30o=; b=NSRe10wmAzx24wqe3olA/J/bVBgMhrxhesgutflC0emUvbeGEGArs0wfeem1VxY5e8 HY1GEFN8IGKaNhUR0ZwdVSGZkplkoT6QtBVmfkHbVuCRJCeTVZY0W8NZW4TWPcsqTRbV nTnHNtC/tyMjH+TcbmUBfTtaraWffPTylOEBCDhhMD4YGwZF1yZ7bM2Th9Bs9+F+delg VrQ2I9PPnCA30kzja96HXTz6tmexpgAKGVkpThDOulF3cZ/YgYRIsnl7ArYIdpLtFCHV vK9ygjyZCEANlLoooRxBYPJmm0sqPBiAaVR8Es6g/4ebJUD+3fpOoJAyZbjMd7maayFc DEjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12si19025315pgl.122.2018.12.05.04.32.23; Wed, 05 Dec 2018 04:32:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727942AbeLEMaN (ORCPT + 99 others); Wed, 5 Dec 2018 07:30:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38848 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727928AbeLEMaM (ORCPT ); Wed, 5 Dec 2018 07:30:12 -0500 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 0A5C130001F0; Wed, 5 Dec 2018 12:30:12 +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 84C3260E3F; Wed, 5 Dec 2018 12:30:09 +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 , Geert Uytterhoeven , Andrew Morton , Michal Hocko , Matthew Wilcox Subject: [PATCH RFC 5/7] m68k/mm: use __ClearPageReserved() Date: Wed, 5 Dec 2018 13:28:49 +0100 Message-Id: <20181205122851.5891-6-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.40]); Wed, 05 Dec 2018 12:30:12 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The PG_reserved flag is cleared from memory that is part of the kernel image (and therefore marked as PG_reserved). Avoid using PG_reserved directly. Cc: Geert Uytterhoeven Cc: Andrew Morton Cc: Michal Hocko Cc: Matthew Wilcox Signed-off-by: David Hildenbrand --- arch/m68k/mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/mm/memory.c b/arch/m68k/mm/memory.c index b86a2e21693b..227c04fe60d2 100644 --- a/arch/m68k/mm/memory.c +++ b/arch/m68k/mm/memory.c @@ -51,7 +51,7 @@ void __init init_pointer_table(unsigned long ptable) pr_debug("init_pointer_table: %lx, %x\n", ptable, PD_MARKBITS(dp)); /* unreserve the page so it's possible to free that page */ - PD_PAGE(dp)->flags &= ~(1 << PG_reserved); + __ClearPageReserved(PD_PAGE(dp)); init_page_count(PD_PAGE(dp)); return; -- 2.17.2