Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9411310imu; Wed, 5 Dec 2018 04:30:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/VaKlYvg3+DwHBATeFeARBDKVVlTKn1DNhz4HlDltRblbAiAxj4oLbMm3kdOKI207OJ3Sdv X-Received: by 2002:a17:902:7c85:: with SMTP id y5mr23801343pll.63.1544013047739; Wed, 05 Dec 2018 04:30:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544013047; cv=none; d=google.com; s=arc-20160816; b=XahQK49pKpycyP1wFt1CbNoE6J9qzTGVetr936WYcnUHp1dlHQ/uIiUl34zC2k6EQN 6rFYm5XC8NFKDalI2v36a93+yacRiQxD/0l+vxb57LqwReJFXkMJt4WsrBgvGE353jCJ sHNty/DJJCKUikOFzZj6y5kgTwAVMQbX1yO+k8aZw/IxrKgmKkI0GCctZLNv2+rVYz7x TUQ9qi9tISC2lmka6VGjc+Ij2DTJJyYyTXXQU5xDidf5d6coEGirEn/Z0llsiexe428n giWE4THUqRmuOxsi/zuM+wVuPngF8ubz1eunJcGeXncmGIa6yE/jy3Jld8muVUkGu76A cZzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=TFCLrQPqar/WBE3kzl+4nQu/J+Z7iryHnfv4ouWoEUA=; b=wQ9kzoYJj5Rf9XNs4m9CCOCUKo41bigjElGJQXIOGZExO1nudLtu/mjcFmWMr1AeY6 pyBkpAAqfFQ+vJB5GTzdLRtgN0QqY6UKrK22RS07YH8G3y42h4PcqVzADX8BlFujlteL LFApVvxKfm15keb0Pmhq5oGGxDKDfnA2RXQ3E50V0eHMqoTK8l4IxyKZkacTTRLC54tr L+bFS6CusFb4VtwEYFJjfOYkZdm7FiilRMrkX8i71sPsLnM+5vIzO8f/pWa1Kk5WntNT zRO+Wtu8EGplzXaFaVHacR9OCVzB5MwAPP3QAInYErVBTIQZlmLsdWGqdLk720KYgbns 7EvQ== 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 2si16718037pgy.35.2018.12.05.04.30.31; Wed, 05 Dec 2018 04:30:47 -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 S1727833AbeLEM3P (ORCPT + 99 others); Wed, 5 Dec 2018 07:29:15 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40842 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727809AbeLEM3N (ORCPT ); Wed, 5 Dec 2018 07:29:13 -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 6A6FB307D975; Wed, 5 Dec 2018 12:29:11 +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 6BC0A82719; Wed, 5 Dec 2018 12:28:52 +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 , Albert Ou , Alexander Duyck , Andrew Morton , Anthony Yznaga , Arnd Bergmann , Benjamin Herrenschmidt , Bhupesh Sharma , Catalin Marinas , Christophe Leroy , Dan Williams , Dave Kleikamp , David Airlie , Geert Uytterhoeven , Greg Kroah-Hartman , Heiko Carstens , James Morse , Kees Cook , Marc Zyngier , Mark Rutland , Martin Schwidefsky , Matthew Wilcox , Michael Ellerman , Michal Hocko , Michal Hocko , Mike Rapoport , Miles Chen , Palmer Dabbelt , Paul Mackerras , Pavel Tatashin , Souptick Joarder , Stephen Rothwell , Tobias Klauser , Vasily Gorbik , Will Deacon Subject: [PATCH RFC 0/7] mm: PG_reserved cleanups and documentation Date: Wed, 5 Dec 2018 13:28:44 +0100 Message-Id: <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.48]); Wed, 05 Dec 2018 12:29:13 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I was recently going over all users of PG_reserved. Short story: it is difficult and sometimes not really clear if setting/checking for PG_reserved is only a relict from the past. Easy to break things. I had way more cleanups in this series inititally, but some architectures take PG_reserved as a way to apply a different caching strategy (for MMIO pages). So I decided to only include the most obvious changes (that are less likely to break something). So let's see if the documentation update for PG_reserved I crafted actually covers most cases or if there is plenty more. Most notably, for device memory we can hopefully soon stop setting it PG_reserved I only briefly tested this on s390x. David Hildenbrand (7): agp: efficeon: no need to set PG_reserved on GATT tables s390/vdso: don't clear PG_reserved powerpc/vdso: don't clear PG_reserved riscv/vdso: don't clear PG_reserved m68k/mm: use __ClearPageReserved() arm64: kexec: no need to ClearPageReserved() mm: better document PG_reserved arch/arm64/kernel/machine_kexec.c | 1 - arch/m68k/mm/memory.c | 2 +- arch/powerpc/kernel/vdso.c | 2 -- arch/riscv/kernel/vdso.c | 1 - arch/s390/kernel/vdso.c | 2 -- drivers/char/agp/efficeon-agp.c | 2 -- include/linux/page-flags.h | 18 ++++++++++++++++-- 7 files changed, 17 insertions(+), 11 deletions(-) -- 2.17.2