From patchwork Wed Aug 16 15:11:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13355397 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 CD9DDC04E69 for ; Wed, 16 Aug 2023 15:14:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 612A528002B; Wed, 16 Aug 2023 11:14:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5738D280021; Wed, 16 Aug 2023 11:14:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 413EE28002B; Wed, 16 Aug 2023 11:14:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 32DD9280021 for ; Wed, 16 Aug 2023 11:14:15 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 82B6C12055A for ; Wed, 16 Aug 2023 15:14:14 +0000 (UTC) X-FDA: 81130313628.24.E2B509A Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf25.hostedemail.com (Postfix) with ESMTP id E0304A02EF for ; Wed, 16 Aug 2023 15:12:24 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=oo33NpDm; spf=none (imf25.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1692198745; 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=QJooS26uR2KUhhJJzszQM39UcDPRD5O6ibO340Z+plU=; b=4se+5I+yx+/3/vzqpmyVzCH21wwnOsGL/2LURHYBn+oJYyi8NOVkvapv45O2YviI9fn0rZ dH/U+M3LFjufjALKTNd1nmCSHzySbIHzob5M9/Ys1HBBQ7zBlknkgsOY2jQOFZnSQfw+uf j+0UGXbu/2TbkUwVv5yq/JdbQG6qo1A= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1692198745; a=rsa-sha256; cv=none; b=uoQMbPaJKiGBBL3lkGLVAo3TWDQCfURStZYyhC9MHYPJnveHk/suEkmvmWnSY4+NwuLlyc FEcDk5tZeIVW/iJ2dvySXVnMYDmI3yrjfCSDaW0PIf2REBjUtxnKahb42ye6+PiOpGXDQk 3l7iK0yj+fIlD95HbxgFW1nAAz321ao= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=oo33NpDm; spf=none (imf25.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none 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=QJooS26uR2KUhhJJzszQM39UcDPRD5O6ibO340Z+plU=; b=oo33NpDmV1uyySnVX3EhQkC5gw /zr9PrIt1kiO1DsX5I3hSTS17l+fNnONiu11xiIJdoT1pd3ThuUaTv4P/RGpMjFzxD+QuQXI7Vse0 Dq8w0UXI/EA0O8dTqmMzPpy1F180J2lnMOAuDaVMJY8NZfuTJtcX4N8hVO+/PqlCqf0K7yhsIrf1N U5VxbQtZmHWxPDi21RKOTU9VWW5CKhe3KPbV2/bRUNhevnHfow1tIJXzw6dpqAExegFxGgZnE6SE6 lobx0qoXgmJs6xShKlFtP3PGc/O1ifdc0jsx4Uvfo7Bv1g+b2oYWWZS4uvrQ+J7BQBl745i/JWyIv EQm3yd+Q==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qWIBt-00FL8N-Rr; Wed, 16 Aug 2023 15:12:09 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , Jens Axboe , io-uring@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH v2 00/13] Remove _folio_dtor and _folio_order Date: Wed, 16 Aug 2023 16:11:48 +0100 Message-Id: <20230816151201.3655946-1-willy@infradead.org> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-Stat-Signature: onk4sygy784n4nt7zmqmq49uhfy9418j X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: E0304A02EF X-Rspam-User: X-HE-Tag: 1692198744-687019 X-HE-Meta: U2FsdGVkX18IkBm5LSJmWkTjO1O6iotP0kLCiYuf+QNADB+OfkEt34ZQmxCOzacB7BpDeKzSDKbsodQv1ZB+QETty/KWEwCR2vyPg5wQ23v1h5ETxw97lg/oQ00VumNtm6Aa4Su4/TcH/ZHwU874gOubPpPvENabh0K9OENeBQJbK4yWLO2CXh46jZMiw/qZMoM3rO/hGphtG7fwYAWpMe6iRAay9XDZiqI7pGNlE5G7R+IVTA+XJ14dgmx5IfSlj3h1XOGDW2DbTc9Tu4XKfApSQE/X9dwUWaUMG+oKiTVgnpKF1YBInkX92dr8ykPrnuCygocgmeu0PHrBy6iu2NIQim11gqkiGSPvQ1bQOYxlog5EQJ+nDkUpbOM/umpyCh2iS2UReRsDXmTq0z7cG6zAlspqfZkhqvZ1yicYh0xEYW4+R0m6fIa445hzgYKsn2a+p4Y/HVVcXiY3j99ciQpc7kkno0HFnpJJqzG+YmhwDNqn/rSGtVjyKWi2GTxmASLkwt0nmWTGyGbiJCwjt1ku5/fwK/9MMRpIjSci5upHIDxKyLteGsd/E3dUFv9q+w8prhyAQiwP3rB+x+rxIBFyF8XyBJXeuuM6IE3m1asJJ/WR+scZim/qa50PnVJa3rYVVvbi08PJuYTnWJbGrphrhAcr5lIV3VSocBefCeF/h8B8Es1Pfazdpkrun/Rq3Xh+bV9naVngfWElzbd3YH4x0aOS/K0w/RWIS09ne7In5tnb2kCZ9xB/P1dHajXdLQkd5bQH68+lInpB3FSecN5CHPO36Ru94KS7xJQAGSB6whlTWhagzBXu/W7ZWEKCBgQxPZc3CBGEpvro/GD1FHY3JZ25ioNMcyWXjglp8ZnqtBiKgLleMUoamnKXXvmqPFaKlulksCgviZWyCpiuZvrrYtpTn/+aLhY/VHruBNhCRPo8v8hQCoOhF4H1OYedVbrX0NE2qWmTj5dtThN dyMtsmq+ qXBMlTDgeZPFjN2hGkTvUJMnSTAeRm4pXrCG1yPyg9sIde+ysx1jhxUxlU53qGLFP4KARCrQfqMBNoFA9zGhWSxnAnUZVFfmKGc3ot32oevRbgd3zRpjWiklsFZ+HZIVHV2TEIlSk3PnX5VZ1u6TKfahre4MD3dIFD2l5 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: Well, this patch series has got completely out of hand. What started out as "Let's try to optimise the freeing path a bit" turned into "Hey, I can free up an entire word in the first tail page", and grew "Oh, while we're here, let's rename a bunch of things". No detailed changelog from v1 because _so much_ changed. Matthew Wilcox (Oracle) (13): io_uring: Stop calling free_compound_page() mm: Call free_huge_page() directly mm: Convert free_huge_page() to free_huge_folio() mm: Convert free_transhuge_folio() to folio_undo_large_rmappable() mm; Convert prep_transhuge_page() to folio_prep_large_rmappable() mm: Remove free_compound_page() and the compound_page_dtors array mm: Remove HUGETLB_PAGE_DTOR mm: Add large_rmappable page flag mm: Rearrange page flags mm: Free up a word in the first tail page mm: Remove folio_test_transhuge() mm: Add tail private fields to struct folio mm: Convert split_huge_pages_pid() to use a folio .../admin-guide/kdump/vmcoreinfo.rst | 14 +-- Documentation/mm/hugetlbfs_reserv.rst | 14 +-- .../zh_CN/mm/hugetlbfs_reserv.rst | 4 +- include/linux/huge_mm.h | 6 +- include/linux/hugetlb.h | 3 +- include/linux/mm.h | 39 +------- include/linux/mm_types.h | 19 +++- include/linux/page-flags.h | 60 ++++++++---- io_uring/io_uring.c | 6 +- io_uring/kbuf.c | 6 +- kernel/crash_core.c | 4 +- mm/huge_memory.c | 51 +++++----- mm/hugetlb.c | 97 ++++++------------- mm/internal.h | 5 +- mm/khugepaged.c | 2 +- mm/memcontrol.c | 2 +- mm/mempolicy.c | 15 +-- mm/page_alloc.c | 41 +++----- 18 files changed, 161 insertions(+), 227 deletions(-)