From patchwork Wed Jul 24 01:05:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13740494 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 644F1C3DA49 for ; Wed, 24 Jul 2024 01:06:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8D79C6B0082; Tue, 23 Jul 2024 21:06:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8859A6B0083; Tue, 23 Jul 2024 21:06:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 727436B0085; Tue, 23 Jul 2024 21:06:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 5940F6B0082 for ; Tue, 23 Jul 2024 21:06:03 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id C4C9814055B for ; Wed, 24 Jul 2024 01:06:02 +0000 (UTC) X-FDA: 82372854564.14.2A764DF Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf22.hostedemail.com (Postfix) with ESMTP id 26928C0014 for ; Wed, 24 Jul 2024 01:06:00 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=J62so7Gs; spf=none (imf22.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1721783124; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=eFusLkbviS/7xHQGQO2zQewFlhdvWZpUW4NWdWMQGhg=; b=ReQy7LHaeaWx89M3yP5e8OxsHyVmBqWdmxJUg/fJTk3yCZ4FE1iEEk4XCB3wjUYwXRGca/ g2CaMu31hN5itOgV00mxVihxhcYReF7JjuRLKXPORPTJxFidUR6XJ495qBrR1ZwRtPVBHh 25tx8ndEdk3Lp8wCxEGqkxmd1gr2ZMI= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=J62so7Gs; spf=none (imf22.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1721783124; a=rsa-sha256; cv=none; b=289SnustbbOynWhnFS1L+Z+49pDcofEuKbAkmis+7pVriEDVNlErEPX1gv4nRwbc/tEdum I8z4jFubeTXpXIjMy0+52YChQOi/tCvMGh7C9ZKcIELu3RJ2wUIaccacKFnfxojwePDPO2 iC1YNpvlzIQCejQz3XFWHAo1xuuSllE= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=eFusLkbviS/7xHQGQO2zQewFlhdvWZpUW4NWdWMQGhg=; b=J62so7GsQlrq2UaPlrl2663LyB ZTGzko4Pa1OWiKK0+XQ/DFOcOAbhFhPDJiz2ZAHinFGsmdaks02Ut/cmN9FI7N7LLxL7o6BYAjZSa ELwKEWyKDpXUbwYLKh0iiI2IQWYjVBQO7QNGTLKYVf+4lA+GGzbfB86lpj11TRbrwsJ8tkTCeoDzf UGZNTn/71tPvGcORj6fR6sC1mEVHisbh3Ayqd1heabZn1XGOHRc3HTs2JB8grYxcSbck30h1xoUgA 0Kqqtwuv0WcPHBkKg/RsdrtnQ6uHS1pMxfymnjRAD/0JVDWDP09QCDSPzjImYpLweU331qvXR0sWC NrHKliGA==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWQS2-00000007MpG-2NZC; Wed, 24 Jul 2024 01:05:54 +0000 From: "Matthew Wilcox (Oracle)" To: Linus Torvalds Cc: "Matthew Wilcox (Oracle)" , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 2/2] mm: Remove PG_error Date: Wed, 24 Jul 2024 02:05:47 +0100 Message-ID: <20240724010550.1755992-3-willy@infradead.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240724010550.1755992-1-willy@infradead.org> References: <20240724010550.1755992-1-willy@infradead.org> MIME-Version: 1.0 X-Stat-Signature: tq4gd35b5t4bkho5196n731h7xfek5y3 X-Rspam-User: X-Rspamd-Queue-Id: 26928C0014 X-Rspamd-Server: rspam02 X-HE-Tag: 1721783160-443904 X-HE-Meta: U2FsdGVkX1/5nJdrqSN15viUzuieMYdLrhDppiobHZHOBwBG0yH61g6eGV7ncoF4fgRHqOu/wVDxEs108Npi69wuGqYpJub7YE9LRbqzTlfziUMJeKZjMSwLAMGynzPQo3iKa6tKaHa6PWiysfRGA9dcQk/WK8gyxrwActR9NAWTfZg6iArYR9Wt+efANcxnuug/PiYNMJDb6ilGhUao/sUZhBo/WuyV+Zd0chPiPLEE/jR9gEJF1pfy9Nl2BFUbEhghokwbh2rvEzgO/moI7ucn36TusWGulhkg8kIBA+n+D8vVExNgYq7EwLkP3qej9GkvsD5OCnvMKr66e4emOYfIPWQ8FBbGyxPrQl8+CvKFRNCHeWQqw4HlybMPNQkxIibLav7rPhq77sVBbwiL/yO/+GWaOzJ429K/nvSh6QBGha+rT6adjc17xI5bFhmpRqxet9BL0jof3PLUcTI7WgR2IERPdl2jqn98Y7WGDkryeKnw+yoda+xqR8nz/+PDWrOStQ+MPRnpPHs3iZkSbvW11DZhVNqbD9W1w2QPUt/0HCd4flEpvO+wTZWCaIw0Vd2ysnMF16AZkIs489MIdvJO5PhJ0QPxmRVCqQ/d6L6h7EE1sSvLTb5s0saTik0+WfRqT3PFpxq8FhnOQJZunNeJmqC6RwO8Kx+P5DCV5+Wd0LwcdBm23CfKB+411R1NO6ogeItYJ/m0vvwAt+reVRyHTLd6oQrrOmcBITcm+tpy7vNZOBPNy2SN7JD/kVXukOw9wj+vefDR4ca7anL2dJLev9YWwwIIKuu0osYdRTnCTcEiCCe97B+tdg512j6rf/51LGg3ejd8vfgSyHZiYZyCd/NOK3Uu1hFJqQ/WwChyVCVsN8zYx4fXapgT8EiqUN2oRPixu5FN6NNEJc3Js6aTMzinlB2a+L+fFuwk/APVP+qTHBoChwKR26Dlx2GumVltWysAKEPQ8D1DwCx 4LBVq1xZ ytObpLbH1hU6IES1pCHKQHWueGIPWgoYe4zihAEgttp0weIwpZbPvQ+4/nvZGoTtTnM3LEZlntWNBtH5MSB6dFTOsRu87cZsb03FaCPE6ngnCwBQAu/q4Ep7o688sYfi8p0mdwLLff3JjKjH7M6qiu4UM3Y16uJisaPD0FnkhcArl9PjzpnE63HzrfrDJBaC857c/62eNVAQKXzIH/Elik4TXDRs3mO4JxRILpcgH/flGhNJJfh7d9Cbj52h34dyA9qt/ZuOnx7RZCMuau7s9rUdCUAoNMpjn/kZxHm9+SswxJNGwTxRW5HrK7KJ9t4rh5wc4 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: List-Subscribe: List-Unsubscribe: The PG_error bit is now unused; delete it and free up a bit in page->flags. Cc: linux-mm@kvack.org Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/page-flags.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 5769fe6e4950..a0a29bd092f8 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -66,8 +66,6 @@ * PG_referenced, PG_reclaim are used for page reclaim for anonymous and * file-backed pagecache (see mm/vmscan.c). * - * PG_error is set to indicate that an I/O error occurred on this page. - * * PG_arch_1 is an architecture specific page state bit. The generic code * guarantees that this bit is cleared for a page when it first is entered into * the page cache. @@ -103,7 +101,6 @@ enum pageflags { PG_waiters, /* Page has waiters, check its waitqueue. Must be bit #7 and in the same byte as "PG_locked" */ PG_active, PG_workingset, - PG_error, PG_owner_priv_1, /* Owner use. If pagecache, fs may use*/ PG_arch_1, PG_reserved, @@ -183,7 +180,7 @@ enum pageflags { */ /* At least one page in this folio has the hwpoison flag set */ - PG_has_hwpoisoned = PG_error, + PG_has_hwpoisoned = PG_active, PG_large_rmappable = PG_workingset, /* anon or file-backed */ }; @@ -506,7 +503,6 @@ static inline int TestClearPage##uname(struct page *page) { return 0; } __PAGEFLAG(Locked, locked, PF_NO_TAIL) FOLIO_FLAG(waiters, FOLIO_HEAD_PAGE) -PAGEFLAG(Error, error, PF_NO_TAIL) TESTCLEARFLAG(Error, error, PF_NO_TAIL) FOLIO_FLAG(referenced, FOLIO_HEAD_PAGE) FOLIO_TEST_CLEAR_FLAG(referenced, FOLIO_HEAD_PAGE) __FOLIO_SET_FLAG(referenced, FOLIO_HEAD_PAGE)