From patchwork Thu Mar 21 14:24:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13598773 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 78078CD11BF for ; Thu, 21 Mar 2024 14:25:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 313EE6B008C; Thu, 21 Mar 2024 10:25:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 29D086B0092; Thu, 21 Mar 2024 10:25:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1195D6B0093; Thu, 21 Mar 2024 10:25:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id F10606B0092 for ; Thu, 21 Mar 2024 10:25:01 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 7DC48A15C7 for ; Thu, 21 Mar 2024 14:25:01 +0000 (UTC) X-FDA: 81921268002.13.006F926 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf05.hostedemail.com (Postfix) with ESMTP id 00B5310000C for ; Thu, 21 Mar 2024 14:24:59 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b="oVVcu/hz"; dmarc=none; spf=none (imf05.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=1711031100; 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=g09HO3Oe5/MBKJqjm/cOKgzzICx17aWdiXRadRSSicw=; b=r8BdX6abv/7B2Evbi36JfFeziBLZF2wqgrGtpo4l2Ze8eSKW6fl4HlW/7E+5STeMsnPu4B xJP6MM5Rn+yoW42ubPbNctljApAMSw0SyC6rQBNRQCVUHufmGZE5mC8gVQbMFInLjNbX16 zyyaZx8I2i3JxxUWccSnxXRSzCjghT4= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b="oVVcu/hz"; dmarc=none; spf=none (imf05.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=1711031100; a=rsa-sha256; cv=none; b=fYAFHwgN9jp/H9MPIbEZoJehkQnpBellNn1uacV0T3P3eOAeeRLoODQh3Anqazi1pmvDvi B4gAA+1XCKaIaQfK5tS5Oh/7wHFavWVp32QMhNA5g9DmRO6CkNZhiulSDJi4j0hAkhy3lI ACI2ITaR595FHOzXCUoC3Nt6NkhXZUY= 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=g09HO3Oe5/MBKJqjm/cOKgzzICx17aWdiXRadRSSicw=; b=oVVcu/hzJpurF8rCsQm1PCV0sE 1Yn1KSk8m+qR5k3uClot8eeoJwsm4zOoTKpXsBvxmGYm8BVSIhtpL4Kv+mZdqzEx10K1YEWPc3943 8kS2ptf3qxJbOjyhDW8GgSnWRTFEYfae+ATEYfLC9RKASF68vuOG06TndbbyY3fzqy7WHSKIyq4tv UfOS0cKx7Giw0XSGD4at8j8GaNvDijUe3twYx42ls8FsMuo3onewYaM48tSCd6BSDJV96obPJDpEO X3WFQB1er/BnUFThZKb8sdNN4JLat16kbveWWErLiYQLjgztP3lfpik4rHgp5bfumRCGgk4taY9Eu 7AgLG0LQ==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rnJLf-00000006u3s-0zbv; Thu, 21 Mar 2024 14:24:51 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, David Hildenbrand , Vlastimil Babka , Miaohe Lin , Muchun Song , Oscar Salvador Subject: [PATCH 0/9] Various significant MM patches Date: Thu, 21 Mar 2024 14:24:38 +0000 Message-ID: <20240321142448.1645400-1-willy@infradead.org> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: 00B5310000C X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: e9qfcfd1o9te7qu5iwg9ydbipmhxeuuh X-HE-Tag: 1711031099-5837 X-HE-Meta: U2FsdGVkX18u2Trgy3CBMOmoVPyeNiggDqoqoUdkMnVp93NwsDZulDZ8lxLlkEOUZAuzPqtvRRlOPHHiqtXsFu1Ts0qbt/yrJiCLlptcuElWYXBLLV2WUGKWDpeYehwCfoReBtjVpNJhPpN+soY60/7ahl3sDIS03VWJJk+obZr18ZczgXiM1iZYXEcFjEM2ufmIZGRGPFz/TiC0JzFcM3ulGiu1wgYm/XDN7LOfgSvIuzFP+0rFW/P8JUgmGRsa/jno5preuMfARY4g+8jnxYN3zaxuBobd1mdag9ikROB4Z4EBJiKj2Vt8dNuI05YFNpY+uuKSm0F0ugTPxa0Ay+6+Ryt4S/y05y/kAEdykMixW6McRKoZp8AtUnldOP+HzNt8PjiIKg1E0c/fzG5HihAcZPA9k9/0FAztJ1PJHE1X65FQF0bogbLSySdq2AJHsD+znWe0kbHppASqlb3BwhgJc9iKFlcSZGjtOyM0pT5X9HE50KZLq+8rPMgJ9FdVoK7GM9Z1gHkO3bZmS/OGSJOxcHnKizQnjSMBrep9R5fmIZim8ysVI46+n+PUXU4bXz8c3yQiK4+C7Hf2nybNE6UDq/BVzsyyuNWkVAIPVL8RE7AFM6xWC14tPFGISW4pTwF1aoLT1tKMpAS+2vFCclbq3hj5yyMm/rEPMioWTZ4gxTapT+GsTdwlKp84j20rVk9v0q8cmKfixA4Ud/7i3o7Y2GFs6lZqsBjGMSxPTM3luEm7u7lTRTL7bETggbeu3IDV4+FHD79NZU2Po8quTI3ZgFwFgJvJ9mhNoEFWqg3KxD4qb3ym4ByeTVp8RDo0/Wk4s8yQurtmPWZBnJBrYhWmJ9zx0nplGQ3cnGRgEDOCadnA1ZADTW8X3H26F1NwzyVHWMes0nVZINUQrLKT6HtzKDqE4taFJopNEElywUj49/yx/kKsxKuRUZdCBM16FBmiBUZJY/mVhlXPUTQ O6MnQd6M ejbZWI62gA7fTT0R5Jzi0Pk/Ow5ifrxtRPe0b8OkY/FS660id37DcS6zjs5gtC5ab8HaXAS3xfF+rNGYSp5YjgEAUd1uJSI2hIvWjKJZP2xY51Re63OEFUmXkSw== 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: These patches all interact in annoying ways which make it tricky to send them out in any way other than a big batch, even though there's not really an overarching theme to connect them. The big effects of this patch series are: - folio_test_hugetlb() becomes reliable, even when called without a page reference - We free up PG_slab, and we could always use more page flags - We no longer need to check PageSlab before calling page_mapcount() Matthew Wilcox (Oracle) (9): mm: Always initialise folio->_deferred_list mm: Create FOLIO_FLAG_FALSE and FOLIO_TYPE_OPS macros mm: Remove folio_prep_large_rmappable() mm: Support page_mapcount() on page_has_type() pages mm: Turn folio_test_hugetlb into a PageType mm: Remove a call to compound_head() from is_page_hwpoison() mm: Free up PG_slab mm: Improve dumping of mapcount and page_type hugetlb: Remove mention of destructors fs/proc/page.c | 7 +- include/linux/huge_mm.h | 3 - include/linux/mm.h | 8 +- include/linux/page-flags.h | 172 ++++++++++++++++++++------------- include/trace/events/mmflags.h | 3 +- mm/debug.c | 19 ++-- mm/huge_memory.c | 11 +-- mm/hugetlb.c | 65 ++++--------- mm/internal.h | 5 +- mm/memcontrol.c | 2 + mm/memory-failure.c | 9 -- mm/page_alloc.c | 9 +- mm/slab.h | 2 +- 13 files changed, 155 insertions(+), 160 deletions(-)