Message ID | 20181205122851.5891-6-david@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 96C0317D5 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 5 Dec 2018 12:30:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 854B72CC55 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 5 Dec 2018 12:30:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7904C2CC8A; Wed, 5 Dec 2018 12:30:16 +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 04ACC2CC55 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 5 Dec 2018 12:30:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EF8D96B7454; Wed, 5 Dec 2018 07:30:13 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id E7C2B6B7455; Wed, 5 Dec 2018 07:30:13 -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 D99906B7456; Wed, 5 Dec 2018 07:30:13 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by kanga.kvack.org (Postfix) with ESMTP id AE15D6B7454 for <linux-mm@kvack.org>; Wed, 5 Dec 2018 07:30:13 -0500 (EST) Received: by mail-qk1-f200.google.com with SMTP id z126so19789217qka.10 for <linux-mm@kvack.org>; Wed, 05 Dec 2018 04:30:13 -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=uu9Bv6QSbxHHwnbPMecYXxLOyjHYWGYtAnb0Wv3n30o=; b=HaKdaAw9qacZ6gq5KN4T+kAWm3+/Vr3xKyjd7/eBi/KEjCw5RZraa+bv4CIjf41GSn PTsOzfl9BvpAh9BMmzVLXGWgWIXQrFHAJ2MksR59aIHIoQW+LvERNdnpnio7Zy/KiCZU deBcOZTlttcluOAR8VI2p+zB8Udu4BifPOCUk4KFnMrRQdXRWnHsYsMXV8Qf1DnEY/yL rbwpdBCRRnkAJj7OVziYdENjXodkGiBf76nSyt/5vx5PGUjE/ygAc8rK5Gv8K5LDP89I EZQdZkAw7SGK1rGfe12NFp+yg4+K30dFKAP1sf6pYgoELbCukJj1/2nVfHEPqOhFRDzv vRcA== 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+aEWYLWyknSstTHWAtt7zk3fyDcQKy/ZPIhGBz7kVry+FekJYDeK3G ngHrW6ibrxBSQcilopeDqzYoglr24vlxaXphg6usICUIG/PXeH9ZWv38xy7VZvaqbqA4avpz7/z OGkx9NC1hNz/ril5WdBHUfzVclB4zHWvvro1DCHdZ7W0wgplw4t+SYxt4s4ryOUaeVg== X-Received: by 2002:a37:3a04:: with SMTP id h4mr21302759qka.53.1544013013457; Wed, 05 Dec 2018 04:30:13 -0800 (PST) X-Google-Smtp-Source: AFSGD/XS5XgDg2FcIlrr09kFovZKLx0Fe34q6IIiULoYgUvGT+5VzEjKxeiGKiUyYxrjkLXFOWXB X-Received: by 2002:a37:3a04:: with SMTP id h4mr21302727qka.53.1544013012970; Wed, 05 Dec 2018 04:30:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544013012; cv=none; d=google.com; s=arc-20160816; b=ciws0MOYSeoxi17wDUPgOYcitjcLSjmWXZQctW1P11uyeAuRWc2zjsHSSywbNhyl80 uct/Vm62n+4SOPcg8cBWsA8tdLYzf8ex/Yd1WboBNl7A5uv4aFJsuwNMi8DFoMoXe0Sq F9t0QxSYosd9xNYT1YpGk440HWIk13RK8DL9+dUJonFD8xj0YonY/9KfByICCSdU8ywA Efod+zWnUhd9MmvWXJEQkUmlCLbCTZYq1OkMauR+1XvNqiCM+WWxvqqqUlTXZL886HRk wuVFynaPzLAe6AV7sqNPPyeeoIcuHTZqx07beyRf7/BwU+qO0izeI/WgjeHwzEvd7u8u Oj8g== 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=uu9Bv6QSbxHHwnbPMecYXxLOyjHYWGYtAnb0Wv3n30o=; b=TlMQ9l/bviXt/Trp9do7UbnnycehE0ArV+4VbY75lOCW4vW0EmCrNnMiJ7q8h5E88k zBENAWKEgL9NlVxcrt6I8KFXmWIw9UG3pVZjLNobpE/7HgFyqFB+Hd4JJiQYcfWh+cXQ lAOYXCVBfePIFAOq3EURjx70ehRdCd3k+K+6jJwjyEWI+fj9AhO9CFNgAu37rGBhW/xz MMzInH64K4bb0AzEBfGQQFcSidd3DDuju5yWN5LjTemWtudHZYwVP6BA4Ljr+Vc4w91P wunTX7gbfJrDqqx5A5SqCEzce6fk1r2KDf4WGiL4ADen8ay/k0wQ29lDM/flbkr3cJQx WDCA== 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 b5si4950710qtg.383.2018.12.05.04.30.12 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 04:30:12 -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 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 <david@redhat.com> 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 <david@redhat.com>, Geert Uytterhoeven <geert@linux-m68k.org>, Andrew Morton <akpm@linux-foundation.org>, Michal Hocko <mhocko@kernel.org>, Matthew Wilcox <willy@infradead.org> 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) 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: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
mm: PG_reserved cleanups and documentation
|
expand
|
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;
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 <geert@linux-m68k.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Michal Hocko <mhocko@kernel.org> Cc: Matthew Wilcox <willy@infradead.org> Signed-off-by: David Hildenbrand <david@redhat.com> --- arch/m68k/mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)