From patchwork Tue Mar 26 17:10:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13604739 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 1C418C54E67 for ; Tue, 26 Mar 2024 17:10:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BD4656B009C; Tue, 26 Mar 2024 13:10:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B5A696B009D; Tue, 26 Mar 2024 13:10:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9D4756B009E; Tue, 26 Mar 2024 13:10:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 79F556B009D for ; Tue, 26 Mar 2024 13:10:53 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 209911C0236 for ; Tue, 26 Mar 2024 17:10:53 +0000 (UTC) X-FDA: 81939829986.25.4141910 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf15.hostedemail.com (Postfix) with ESMTP id 56E39A0013 for ; Tue, 26 Mar 2024 17:10:49 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=in2ZCpUk; dmarc=none; spf=none (imf15.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=1711473051; 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:references:dkim-signature; bh=M27wRvxaJPEcO212dEvJjO7CfiwZrUEG0Og1FVlqxBE=; b=RNsEuoDF1IpDY2atyKCnGocHlS2zpEl9TTUqxlE2L1oMkCsqV45qR1UhWzxnSDWKVMV0M/ 3v265rQTZTS2Pctd9CLirZ1GZHjwn/RWfjkjPi7g2iyRPz9v8plDvaigehVJYu744OpfGg EdHHGoQTOXVWaZAytMDlunLCN0f7KgE= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=in2ZCpUk; dmarc=none; spf=none (imf15.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=1711473051; a=rsa-sha256; cv=none; b=u1XCeYq+qNjxJHt1KcECt1kqgZkkfZl/q4pB9eZoQhlUCmsNAlyGxN/5BFgZTn7bZMlCAs FcGDomSZHYgd8swESs7o+ZfyaNeUKJ0M65F4IfJsFevKDKHDtX9PbsGE0grDdL3gLputDn YpYC6Kx+YBsFBfKfoVeS285UzoFwXaA= 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: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=M27wRvxaJPEcO212dEvJjO7CfiwZrUEG0Og1FVlqxBE=; b=in2ZCpUknbLvpsBx/DnlQWokN4 eoCuS3GlciIGSqGIfvSnoywuoxPSbnN6tRYOH8bW4D5eXSZ8s1wN7VPdgFxACEzHoXQEwsP1U6YRA nmpWI6OVaJJ86H3Za9t8tqfa0dZ/pmPPPtGbcQArgiarEXsOAM0s8TkeGGAO7JGFrkct/f/8myzl/ L8qVuHbsjONrn87y0vpUquHQGh9gVVg0yBs+lFZKPm9eGmvs2bmxcHzVDnNpNuv0i/BK5bWiM6+mV W8nSww5ZRwRTYQM8e8R2ChraPz0HNd+jHTzYbfJex2Oyx4Ya2Qnp5PsNOQPU0ovBx7LYl2UnjiEMF Fhs7HOMw==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpAJz-00000001irx-2xY6; Tue, 26 Mar 2024 17:10:47 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org Subject: [PATCH 00/10] Various page->flags cleanups Date: Tue, 26 Mar 2024 17:10:22 +0000 Message-ID: <20240326171045.410737-1-willy@infradead.org> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: 56E39A0013 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: ukebkmas3zm6fdrhiccnrt7g6eomafie X-HE-Tag: 1711473049-477753 X-HE-Meta: U2FsdGVkX19vY+TIf+OD8CL1OYb394OBdJr0Q84igkJY3YRe1iOUkMZBrIXizDRvl4m2V5Xc1tCF1KChJJWwrdFSX+FQmwtFaNlJFepVxAml/6R2HFStqVTO3OFz5Ml05uovgkeW5piZSRGhRECmez1FeAiw1c8AzqWvI2jrFvWuTaQ+E5makpWPuABA+bQF/xbqzOZ8u5187luW86feWXoNxU5Mhot9mOHtztuI98ImXyIBAQ2WZNwwS+yHLtcJCiYIQ9+hsmjIYiPGziKb3+2v96BivkKGH/JJ5qv1Qiebi0kpnmTKb9d7BmPJvG/m7TmV1V4m5wEbFK7duWJSFOjY8j/emIcDt19WsJ8rcBMqIkJCyI9fGrgqyow8NpbZaYEMQYq7RANSwtarRmgmx2LE3o95bTzat9Nm1882KR9aPqXZDpF+wNeJkf4ePm1IljufCFzPRd5wdVFxSnxpzGm6NNgJLpYluk2Xn5Ay7/cyRNUheEzFXz84jP3ruGxv+1C9bv/2ipAYIxpsWjsamDzsK5EBBLyCCYgRYV0muh8kSHyl0+m9ipYhtvuBGZuQoVirc3qXbj//9JZFuuhEgNAoTyYVcQAJoXcB943Xb6AbN0rBT38Vls3KpWl1bqqlM7fYGUkTLEBHBmsL+JGG8Ymu/I9Sp6C1+ermZMQRn8mejjbsYWwf7519CNKAQwfCMdPZRWb3pa8tdGc9WMqvlO95vP2zY2L1vYZ3r+L44NKJWtdOPG+wBgU3RME9eNc15vSoK3xHTYp0lcPBp7F51244zqfS7tcLcl9GpdFTsHqa0tE7bhy05rRKxU1xUkNyIpIsTkvGQnFNKXYZiQA9i3aaZMXVK/6ruzemaZWIdhUfduXwYNyfNingXyCZxkGjDqOqHReN/UDGFa5AYQ7KfxHmTExp0coj6t79Qv5pbFjJwOcfbIz8wHRCv5OAkvwaUPaHJNYd9qPjfMJVEMU zmH8wCRd RFGkQ29LL5LEZ1MQKYtOJxwtp8YKRxqTtNLyuj+hFXHGwhK1htI9Pnubxs04W9I/d6KJQvJFE1Zbi0seq6Oy/vGsu0GvvfkLl+N2mLE+xxyIWiqxAGrku0B7dfA== 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 first two patches are bug fixes, although I'm not sure that either architecture will have noticed. There aren't a lot of uses of page->flags left! The big build-up here is to reworking stable_page_flags(), which will definitely be a user-visible change. I think a welcome one, given the special case we had to spread the Slab flag into all tail pages. Matthew Wilcox (Oracle) (10): sh: Remove use of PG_arch_1 on individual pages xtensa: Remove uses of PG_arch_1 on individual pages mm: Make page_ext_get() take a const argument mm: Make folio_test_idle and folio_test_young take a const argument mm: Make is_free_buddy_page() take a const argument mm: Make page_mapped() take a const argument mm: Convert arch_clear_hugepage_flags to take a folio slub: Remove use of page->flags Remove references to page->flags in documentation proc: Rewrite stable_page_flags() .../admin-guide/cgroup-v1/memory.rst | 4 +- Documentation/mm/vmemmap_dedup.rst | 22 +------ .../translations/zh_CN/core-api/cachetlb.rst | 2 +- arch/arm/include/asm/hugetlb.h | 6 +- arch/arm64/include/asm/hugetlb.h | 6 +- arch/riscv/include/asm/hugetlb.h | 6 +- arch/s390/include/asm/hugetlb.h | 6 +- arch/sh/include/asm/hugetlb.h | 6 +- arch/sh/mm/cache-sh4.c | 5 +- arch/xtensa/mm/cache.c | 6 +- fs/proc/page.c | 66 ++++++++++--------- include/linux/huge_mm.h | 4 +- include/linux/hugetlb.h | 4 +- include/linux/mm.h | 12 ++-- include/linux/page-flags.h | 4 +- include/linux/page_ext.h | 4 +- include/linux/page_idle.h | 10 +-- include/linux/pgalloc_tag.h | 2 - mm/hugetlb.c | 4 +- mm/internal.h | 7 +- mm/migrate.c | 2 +- mm/page_alloc.c | 8 +-- mm/page_ext.c | 2 +- mm/rmap.c | 6 +- mm/slub.c | 10 +-- 25 files changed, 97 insertions(+), 117 deletions(-)