From mboxrd@z Thu Jan 1 00:00:00 1970 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 051ABC63797 for ; Wed, 11 Jan 2023 14:29:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E81A1940009; Wed, 11 Jan 2023 09:29:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E33CB8E0010; Wed, 11 Jan 2023 09:29:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C105F940009; Wed, 11 Jan 2023 09:29:22 -0500 (EST) 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 A15C88E0010 for ; Wed, 11 Jan 2023 09:29:22 -0500 (EST) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 415C1120C83 for ; Wed, 11 Jan 2023 14:29:22 +0000 (UTC) X-FDA: 80342750964.20.B19E996 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf06.hostedemail.com (Postfix) with ESMTP id E96BE180005 for ; Wed, 11 Jan 2023 14:29:20 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=cBO8GJp2; dmarc=none; spf=none (imf06.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=1673447361; 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=t5PP+fCMfED7f/uGMqXKTnNoyuEx+QiXiG+k3qtLClk=; b=eIh//QZ6KnZkKmishMXCbC9a0Z9t+Zy313VcgxIrI9SGvvuHdbAxdU+CGGDaYCB1G/DnzG ysRmURu/yxCBCaFnspHEk0iJ4oroAH+wjuQUrPnafLQuWPkb/3P09tg6/D/SLvwrBWmGpo 2RVXwIyAAWGokK5qCyyBc9XrSWu1kTU= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=cBO8GJp2; dmarc=none; spf=none (imf06.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=1673447361; a=rsa-sha256; cv=none; b=788yyzeOF1szxGKJd3J1ODjVtaInv7S6BBLXAFCdTJLbrSkuVWsc886ROH7DjQ7FkbDkK6 8FWvm0AjVvnxFSV03uGzy0dKapU46bs97VlLeV6C9nM8oMkXcKy7LKhf4uIvUQxiSUQcfr 2BIquBCX1CVpIg0mPThA5Ou2XNtTO2k= 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=t5PP+fCMfED7f/uGMqXKTnNoyuEx+QiXiG+k3qtLClk=; b=cBO8GJp2B+YTGGHiq44FNvhwpZ CnaueZ24u87+ZXygyl9gvawMcS3Pz+hleGGq14VJTrj7nPLJzx7YMn16OUAry4dmIZTT/FycQpcJl 1flInhO8Os9i5a+iYnk8gjLQ2GNMguOuHIbiGuN8v0CkS5C0gDI0zqmKU7hkIN+CbLRQaENal1kKQ 0EkSpPG8O5myWZwiCxaeipLhAncOCfBRTOHxUFhKRvwJW/Ns3caw1xu2hD0gS45EENLJqx3b9JkKU M8T1JTxrv4AenRFHuoNuKdvghmLvgqd5/ij706ZptC/K8SOYm1m3YPhY7GWSepV8IGMfQrEsGV2Sg N4Fiwduw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFc6O-004CXs-L9; Wed, 11 Jan 2023 14:29:16 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, Hugh Dickins Subject: [PATCH 00/28] Get rid of tail page fields Date: Wed, 11 Jan 2023 14:28:46 +0000 Message-Id: <20230111142915.1001531-1-willy@infradead.org> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: E96BE180005 X-Stat-Signature: mj763xstym9wuf5stbodshr16ostn6bg X-HE-Tag: 1673447360-861080 X-HE-Meta: U2FsdGVkX1/sz8+hqn67AIs02U0rhidbpWhr7uxcYEMK3y8FeN+JbTPxCjJyjxWKOkKBSowt5K2Ih7+m6aai3Wwi8XAFCO+e6ionfK9ju7Jnn4WCtcEJdZ3F2xgGZ+0dCZLBK7fVkv6VecwT1Ml/aAVFQQ4G93rY93UYYZTIuM3C17n1yzsK5JDitAXcKaJQu6iTeJ2SFW+KnlCy73a7VgiPUSca4vE4so/eMey07qf3pSJWuhCywh1MqNurXG4zwKae+LsLOTSmZ3xRkrPVj0LGkUWcR2pQikgJYU8UQ1vKK8rtChgp5xQXrtyFWtmdOQfOkvC8fw+PqBmDQIU8QJpikzkys3eFCkanm0xPH4l+IuPRHEu5LBunmo6zcnRdMtpC4hHpBOG5ZrfRCvRzHYPsDwV+/SGKA/kOH4DdQOV30y9ywF8KaOovvNz7thsaUr5Ojk6tkPsCrV1N2sBSyQ6grVCokL3R1iHgUeS1QXgCAKx8g0yfoIYr3NCLfEdo+vgEhDcnTKW2OnYYHTD7cH5x6LRvCnfghs/M6JTXxk+SUwomMXfPbTvC6AoLv0HqqFAczFc6qwvmtx9Y0O8Aice3S6/4eDqFOhLqTyX9xWTinlC7WKRISL9m7B6ZQTJoaXINWDI1LKZWmw0dEnR4Ej/fexb5nvjm9xyx/NisaY+U7xgxBKOoV9CY7ivx0sL3VM9eFAxeLHRwkj2sXC42Ix30qFF6kJQZnuyzVBmV5K317MIDMylCLjA802ktBVFGmi028yKU/B8yEBOsRNvyi/RAacjNZwIfWrQUzmjFpzjf4rBvxxO38yfPigcwYxLAMzMHcj7Ls3DWO7OwPsnlIgwrxoUfkhrCjOw1fPAJPG4PvcaYhfgsWta/RyniMnMWG6I7A7Mg4IE= 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: Continue the shrinkage of the struct page definition by getting rid of the 'first tail page' and 'second tail page' fields. I originally did this patch set before Hugh's rewrite of the subpages_mapcount, so it needed substantial updates; hope I didn't miss anything. I hope you like the new names for compound_mapcount and subpages_mapcount. Rebased on next-20230111. I also added Sidhartha's patch on the end to save him the inconvenience of resending it after this patchset lands. Matthew Wilcox (Oracle) (27): mm: Remove folio_pincount_ptr() and head_compound_pincount() mm: Convert head_subpages_mapcount() into folio_nr_pages_mapped() doc: Clarify refcount section by referring to folios & pages mm: Convert total_compound_mapcount() to folio_total_mapcount() mm: Convert page_remove_rmap() to use a folio internally mm: Convert page_add_anon_rmap() to use a folio internally mm: Convert page_add_file_rmap() to use a folio internally mm: Add folio_add_new_anon_rmap() page_alloc: Use folio fields directly mm: Use a folio in hugepage_add_anon_rmap() and hugepage_add_new_anon_rmap() mm: Use entire_mapcount in __page_dup_rmap() mm/debug: Remove call to head_compound_mapcount() hugetlb: Remove uses of folio_mapcount_ptr mm: Convert page_mapcount() to use folio_entire_mapcount() mm: Remove head_compound_mapcount() and _ptr functions mm: Reimplement compound_order() mm: Reimplement compound_nr() mm: Convert set_compound_page_dtor() and set_compound_order() to folios mm: Convert is_transparent_hugepage() to use a folio mm: Convert destroy_large_folio() to use folio_dtor hugetlb: Remove uses of compound_dtor and compound_nr mm: Remove 'First tail page' members from struct page doc: Correct struct folio kernel-doc mm: Move page->deferred_list to folio->_deferred_list mm/huge_memory: Remove page_deferred_list() mm/huge_memory: Convert get_deferred_split_queue() to take a folio mm: Convert deferred_split_huge_page() to deferred_split_folio() Sidhartha Kumar (1): mm: remove the hugetlb field from struct page Documentation/core-api/pin_user_pages.rst | 29 ++-- Documentation/mm/transhuge.rst | 24 ++-- include/linux/huge_mm.h | 13 +- include/linux/mm.h | 139 ++++++++---------- include/linux/mm_types.h | 87 +++-------- include/linux/rmap.h | 11 +- kernel/crash_core.c | 4 +- mm/debug.c | 8 +- mm/folio-compat.c | 8 ++ mm/gup.c | 8 +- mm/huge_memory.c | 97 ++++++------- mm/hugetlb.c | 24 ++-- mm/internal.h | 18 +++ mm/page_alloc.c | 23 +-- mm/rmap.c | 167 +++++++++++----------- 15 files changed, 308 insertions(+), 352 deletions(-) -- 2.35.1