From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07774C2D0EA for ; Wed, 8 Apr 2020 15:02:03 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C0261206C0 for ; Wed, 8 Apr 2020 15:02:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="jU0UUQr1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C0261206C0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D57378E0017; Wed, 8 Apr 2020 11:01:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C683C8E000D; Wed, 8 Apr 2020 11:01:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B09E38E0017; Wed, 8 Apr 2020 11:01:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0131.hostedemail.com [216.40.44.131]) by kanga.kvack.org (Postfix) with ESMTP id 907068E000D for ; Wed, 8 Apr 2020 11:01:53 -0400 (EDT) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 40069180AD81D for ; Wed, 8 Apr 2020 15:01:53 +0000 (UTC) X-FDA: 76685002506.17.lock22_1072f4f626a44 X-HE-Tag: lock22_1072f4f626a44 X-Filterd-Recvd-Size: 3028 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf02.hostedemail.com (Postfix) with ESMTP for ; Wed, 8 Apr 2020 15:01:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=BT7MlmF6IwZMD0WArldnKZakOFZDdRwkcmzM+gBIpjw=; b=jU0UUQr1e6t3srydUhOQQjSiMl gRokXey5psrh2lLXpJx/6u6r/Z699adeI79WeVO8tSPT4W8P1yB+8+GoI34kqpC8VqhWV4Altc4Xp EriSNTPExi4OVWLznAH5t4+rsJ30gThdkMKMW/ahTqv8ZTRsxY5fS1spRxWikrWi2yy60wLx2tc1x Z2SlxrTz1WtSmvkHjCDR3Io6KUj9HX2Sr7xcx27lrJq02xKRpGKlgXuLVirbFaj84+/4RC5qREY7+ 53qGYHA6bp0FvBEpp8/PTRIZgxjDGm+kA793N4Xxr8RICnt2OErogvlqVtGHabaR/kAZMfraQLJB6 bXqhmIRw==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jMCD8-0006b3-3S; Wed, 08 Apr 2020 15:01:50 +0000 From: Matthew Wilcox To: linux-mm@kvack.org Cc: "Matthew Wilcox (Oracle)" , kirill.shutemov@linux.intel.com, pasha.tatashin@soleen.com Subject: [PATCH 0/5] Improve page poisoning implementation Date: Wed, 8 Apr 2020 08:01:43 -0700 Message-Id: <20200408150148.25290-1-willy@infradead.org> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: From: "Matthew Wilcox (Oracle)" I really don't like that this feature is called page poisoning. We already had something called page poisoning and it's when you detect a memory error in a page. This is just uninitialised pages. I don't have the time right now to do that renaming, so just fix some of the other problems I found with the implementation. This hasn't been checked out by the build-bots yet, so there may be some missing conversions. Matthew Wilcox (Oracle) (5): mm: Constify a lot of struct page arguments mm: Rename PF_POISONED_PAGE to page_poison_check mm: Remove casting away of constness mm: Check for page poison in both page_to_nid implementations mm: Check page poison before finding a head page include/linux/mm.h | 32 +++++++------- include/linux/mm_types.h | 11 +---- include/linux/mmdebug.h | 4 +- include/linux/page-flags.h | 74 ++++++++++++++++----------------- include/linux/page_owner.h | 6 +-- include/linux/page_ref.h | 4 +- include/linux/pageblock-flags.h | 2 +- include/linux/pagemap.h | 4 +- include/linux/swap.h | 2 +- mm/debug.c | 6 +-- mm/hugetlb.c | 6 +-- mm/page_alloc.c | 12 +++--- mm/page_owner.c | 2 +- mm/sparse.c | 1 + mm/swapfile.c | 6 +-- mm/util.c | 6 +-- 16 files changed, 85 insertions(+), 93 deletions(-) --=20 2.25.1