From patchwork Wed Oct 2 04:01:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13819304 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 38FE3CF3194 for ; Wed, 2 Oct 2024 04:01:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B14A2440168; Wed, 2 Oct 2024 00:01:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A9C4A440174; Wed, 2 Oct 2024 00:01:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 915A8440168; Wed, 2 Oct 2024 00:01:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 5E05C440174 for ; Wed, 2 Oct 2024 00:01:18 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id E28581619AB for ; Wed, 2 Oct 2024 04:01:17 +0000 (UTC) X-FDA: 82627312194.21.9D26C6F Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf04.hostedemail.com (Postfix) with ESMTP id 4F57F40003 for ; Wed, 2 Oct 2024 04:01:16 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=p6MdfR+L; dmarc=none; spf=none (imf04.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727841655; a=rsa-sha256; cv=none; b=8LYraNOU0PD3GNrKYJknsXkUkqvCvADfmzlxZ3W8jTamfbvVZiWqTklGqvWZpi0UNls2vB 1H4NPwRoEtCFdE35riwxLtJHv9nL58k3JCWPuIh339ZqA6frpoWljT5PSuKid4XcOq3qzl hJnJ6lixbU1UCBvqZ95yyv0Dbq9v5cw= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=p6MdfR+L; dmarc=none; spf=none (imf04.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727841655; 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=RZtLvBtTcdvfSoyXcG5LTLDVsxK5mD1QMTXUY1VvVY0=; b=KOogCl3MoDOa+brGgBzj8LWP5Vqcc4+OWB7rjr1nZ5JD7Kpp/WvjDRqXZ3a52qlGYOFrZw bS0ZWMoOY83ZI4kyLGvon1zMOkdgBlNW3RiUtsuXIbJK/oPrtlU3oJuS0Q53zA4U8Fce+h 8Iya187eJUvZZ8Ipw2k+6taj/98n1B4= 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=RZtLvBtTcdvfSoyXcG5LTLDVsxK5mD1QMTXUY1VvVY0=; b=p6MdfR+LNPnRPI/OEyTwrpvMUq tsBnav1lqFiVSXudJ8Zq6EKC3QZLrdtheHJ+BzBZMFXIf3JZ2DwCp9CgwNlEl07aevt6ZHFM73/sq zrCWD9jWC2LSHyoGCiX1lCu0e+sgAS0/UHNwXjeFvN7sGaAlPmDEREPK/mIpYafLU6h09isyY58vm Z33AkjNKYlB4QrcxeamNvEPDZqJBnd7JHpnx0juN7a15Q5nJQvEQFZL2RByf9UB7pzdycS+da/suk nPxxcinkIAWJl2+t1ZDs9CmWkDahoJDxIWsSZrKUnYwUH11I2LuMonIYZ005MzY13WJYRVa1AY3Mu THXtD+Gw==; Received: from willy by casper.infradead.org with local (Exim 4.98 #2 (Red Hat Linux)) id 1svqY5-00000004I8X-3Vr7; Wed, 02 Oct 2024 04:01:13 +0000 From: "Matthew Wilcox (Oracle)" To: Christian Brauner Cc: "Matthew Wilcox (Oracle)" , linux-fsdevel@vger.kernel.org, ceph-devel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-nilfs@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 3/6] mm: Remove PageMappedToDisk Date: Wed, 2 Oct 2024 05:01:05 +0100 Message-ID: <20241002040111.1023018-4-willy@infradead.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241002040111.1023018-1-willy@infradead.org> References: <20241002040111.1023018-1-willy@infradead.org> MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: n6zgksrs13donbh8xndjephopo99udih X-Rspamd-Queue-Id: 4F57F40003 X-Rspamd-Server: rspam02 X-HE-Tag: 1727841676-883940 X-HE-Meta: U2FsdGVkX1/alk5Iv/0uvk0bwWlevD0TSFZ9r+ATbGSXY00ZrK/qnO7MrDIGR7L/342Qa0ytc3QQ8XHsb1J9TozKHpKuLfsRpGOJ24Zl0gk1rDQVnyGOfxl4wHbmKC+BMPALhVf0f6skUTA/ztySU1FwZAOtdc8avwvhG/sT4kuJpffWKy52NYDfSh9GZIJ01izczTKM+YmtG2f/31X6puAfFM5v604z5Q2c0tq9nyK3trkYyJRH7a3okOgWLKouWAYw6R1yTm1Hlo1EBULZX1BZCPtr44OLDqX+z7g0GyGsZ7Nii0pxdDZwbPqjAFXyt4//pX+fMineeVomIEyYkdwnxtvVQNK5IFTX07j7bNwPFyN1WMx5Cbix0UkjYykKFQhjDkGNf2TlCy449AqU5Lb3y5o5m/JJqHmQcitg3ZETgNT0koXQcdpnIYz2rQeWR1hA+Sa8ldGNs1NNvSwPROCEtjLIoVM4Pim82vV13+4clBMYjhWAuBFDlzfbCoJAdvkarVdC3oY4daQZdGxG0fmsUY76orCwjbZh0n9AywZHIAu43sskEy2JaBysxmnTzu9lk3J38SqbJVWFgn6uxrXE3HoyPP+M6jO5o4NAk8m9i6V/gNNe1zT/DLqnyi+2TmSIO5F9JRfLsaZ8ObqVdDs7qTFecdKpj4+XOtgKfi3sQPqZOpio9wwTG3od3xros5HqAfXw1b2DMOL4n8GIc6oTd/OGwcqbpPwsRUrc5NGzmAhYJOOyMc5vBRHC32LwiwBp0QZkygcDAFQw61s6mJtQkU9lxyKwpxW28gH6SuL1Fk4lSImyZvo0CGIc4j21xwgNcKEq1d83eDfuBS1fyyryOCtK0gRBUQT1OCi90SvzkAK74VpOK5i1lIceDyu4FHIEvgYDWVVtXU5ioomp0IYISYXKGaRsONaDDNnlohv6JK2WoZaq2Fn75nKJ+cMGOu1+Jy4Wvp1odMG4o2I jftib+4A B9Liq/fKo2sq+XS75eR8nv9AeunKdTCF+NuevXbadFdzDes2EppQsq/5Uf97ELOxrzksXVcVWUFsoQFmJzljm8twWxaSI2c0ukyLOW6ym/dlMfEbvVpqdquflu9v/nOyFpaeEeuOLQFk1smg6Azmys4pWTxwu6sgLkKHLq6wu2qy06m5i9EB8ymSE/Ml5B4uS7OIyIND70zhpNpPjHBMrXNe7OTSArav+WvUFIe+3n0STVNI= 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: All callers have now been converted to the folio APIs, so remove the page API for this flag. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Jan Kara --- include/linux/page-flags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 1b3a76710487..35d08c30d4a6 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -554,7 +554,7 @@ FOLIO_FLAG(owner_2, FOLIO_HEAD_PAGE) */ TESTPAGEFLAG(Writeback, writeback, PF_NO_TAIL) TESTSCFLAG(Writeback, writeback, PF_NO_TAIL) -PAGEFLAG(MappedToDisk, mappedtodisk, PF_NO_TAIL) +FOLIO_FLAG(mappedtodisk, FOLIO_HEAD_PAGE) /* PG_readahead is only used for reads; PG_reclaim is only for writes */ PAGEFLAG(Reclaim, reclaim, PF_NO_TAIL)