Message ID | 20240821193445.2294269-4-willy@infradead.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 8C4AFC52D6F for <linux-mm@archiver.kernel.org>; Wed, 21 Aug 2024 19:35:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BA5516B0093; Wed, 21 Aug 2024 15:34:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B2F736B00AC; Wed, 21 Aug 2024 15:34:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9F64C6B018E; Wed, 21 Aug 2024 15:34:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 7A13F6B0093 for <linux-mm@kvack.org>; Wed, 21 Aug 2024 15:34:59 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 3B67AA9115 for <linux-mm@kvack.org>; Wed, 21 Aug 2024 19:34:59 +0000 (UTC) X-FDA: 82477255518.17.D042FC2 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf17.hostedemail.com (Postfix) with ESMTP id 9B94340003 for <linux-mm@kvack.org>; Wed, 21 Aug 2024 19:34:57 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=qrh9nS3i; dmarc=none; spf=none (imf17.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=1724268832; a=rsa-sha256; cv=none; b=mf+UvAYz/FK4UcwxxTnAfqQ+wVX2jK7Ko+A2RHQkseqmEWYywfeofikgCjYWiRHRnPniRz uGH+Z4apoy06fNb4Wv61bwHeu5qpQoiWf8SKIFfsrvWbJRqzXZEE3/x8/w5oIGX8Xcm1t3 UfgXlHeOUmBYBRgPRhTmTr8ObAcGq5k= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=qrh9nS3i; dmarc=none; spf=none (imf17.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=1724268832; 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=aiK4+/NIkBbmyUkC/1o2gVxkfVM2L/hjCN9VBJXNw24=; b=jHvTIBdFxbG5PxtzBmMBtDQR+lXH8KCbmFJy8fBiyYpI6vhsaijNjqqBBh4Lv+zmgROcC8 ZPtX5Mmo9z60mfvzMv1IOwItkf3MlwFWMM/BRj/6mrwOEIYW/T3MOH9z1AtzL3ZCHCgOyd iul9kX9fjJbDleXi6gwuaTRXrbNdJgM= 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=aiK4+/NIkBbmyUkC/1o2gVxkfVM2L/hjCN9VBJXNw24=; b=qrh9nS3isTExJ/8+GAk0h/kJCs Vqe9DtD2xbzVF70UNONVui+RA5GNNtm+jyg8NTsI0SsFpM7tNBdvuHgtScHAXger2DZALm4bkEttn 4vFKIkog43xURN/KBM/c/mR9tpNYRNDERwqLKAIr9NsFoJM5E8J8X0+6Bc9eifg8/5pnkyyGbe0d9 XcDg3i2NfcvWNPdxJlL6WKvnE2+A98oAjf7IOTyRyu2AkmRUH3wtWMqV0MUjaUseX4ZlDN7e0/aZL oCBvDaPRLHLC65KGD98rSqdhxCglxAe/JFPNgNhjt4N2h+fH5eExDVROgq8Yecj53Ffv1MVZBrlWU uJjdGYRQ==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgr6U-00000009cqf-4B2v; Wed, 21 Aug 2024 19:34:47 +0000 From: "Matthew Wilcox (Oracle)" <willy@infradead.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, x86@kernel.org Subject: [PATCH 03/10] mm: Remove PageReadahead Date: Wed, 21 Aug 2024 20:34:36 +0100 Message-ID: <20240821193445.2294269-4-willy@infradead.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240821193445.2294269-1-willy@infradead.org> References: <20240821193445.2294269-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 9B94340003 X-Stat-Signature: swqy9udseeece96b3a34ck8w6i4we8hz X-Rspam-User: X-HE-Tag: 1724268897-356481 X-HE-Meta: U2FsdGVkX1+N53FxRmMSGgm/7I7UuO4Z5FGJknm+KbGq62OicsM/ti8ElSRfkzSeHtRpFD2c1ZOLY20UeIt8jjTZ0Xn8LKj3/ith/cP6/Eqkxw20eOUrJbmuSijfVzt8QEb98e4bg0giV3r9Qm6PqrHsBi+IziRKeNJj1QUroifhv+X/FcjWTsVWK8O1vJAoujgMD6YRTgI71OgBiHwfvnegID4TmQOfwSraJK+8n0cWu4kvOZgy6PGp0uSKRuXXnibPvJ3K8TM6zh6XY/qmgWiFJnZdtzB2SSV9RfSco7kmdNNy2eVmDLcf1+jw2uDObX1a7rCzOvJp1wwqU9TorPxvBLbfwSDNa7qaNUUrgsux1YeHXdThPm1O71LI8MePqrFzAhVmGnQSttPnaT8/hdORl463YqwwLHLjctDtoULQoLkzW3AbreQULUZpWicEFyOQ7JFLDRL4GtPBSems4GK4rfKb76fvABP6xzPEfpUO565ts8nCcpxDYHyFhm/f+9Ol98vMd5vGrBw53tZ5cSI/7UrPyDAngyK8l0nDIQ7jNoKHcBuIIuryvkpW4fI0573Xtswb8ZTU8vEAdwOCfOZ60iAMV9lpOZOMAu8Zft6ho/GUzxdoNsQaI3E5kX2ezj9JXcK8/xfRpJe3mBTf0Y66eUOr1siiSL9WZ9eJNK1MFJsABfQYbKRAwDiOwqqQHFaX0Bwb103OXwacL1OWIBBwZQjGxWmhhAsFr+obOfSzq8ngZax72WHEr9psYRshJg0zYWdWE4oZhXzcwqVd+z1RR2en2tX3tOGvXTnVE+GSE+BZr3mBIT0qQkYP6hLqtfDievTJv5BKEu+Rm0h+67lpIQ/EqSWSzf0pV7seLgJig3i7cmGZlig+N7RUPPZbh2PF4wlSckxXHAGR4F/LsbHb8A84W40vsqTiQ1B1PnCDOuRVUrCOI/j9fvRXcCYOksZdQvteOMY3rUtH9fq Sf3tRf3p UhzcxgDnpX2ASMEzXtJ6tanGBSZq+JblsGI1VkFzedh/wEspukPBfV+6+KGZ94YY0SEf1Hci8ibN2hH7RYhWnWhZEiSmWRZzOR02H3Ca/92jBgsUrVVgdtN17RsEqI7kJ+W6ErcIxO6CrIEpfhC9vnW7hpZS9ZmxMPc82/H6jXZ9Ovgymzk67smMHaUVTojbSbsaIEoYN0u6gjd/EZjZNpEfl3g== 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Simplify the page flags a little
|
expand
|
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 5558d35cdcc3..2c2e6106682c 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -553,8 +553,8 @@ PAGEFLAG(MappedToDisk, mappedtodisk, PF_NO_TAIL) /* PG_readahead is only used for reads; PG_reclaim is only for writes */ PAGEFLAG(Reclaim, reclaim, PF_NO_TAIL) TESTCLEARFLAG(Reclaim, reclaim, PF_NO_TAIL) -PAGEFLAG(Readahead, readahead, PF_NO_COMPOUND) - TESTCLEARFLAG(Readahead, readahead, PF_NO_COMPOUND) +FOLIO_FLAG(readahead, FOLIO_HEAD_PAGE) + FOLIO_TEST_CLEAR_FLAG(readahead, FOLIO_HEAD_PAGE) #ifdef CONFIG_HIGHMEM /*
This flag is now only used on folios, so we can remove all the page accessors. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> --- include/linux/page-flags.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)