From patchwork Tue Nov 22 09:38:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugh Dickins X-Patchwork-Id: 13052110 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 50A1DC433FE for ; Tue, 22 Nov 2022 09:38:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ECD006B0071; Tue, 22 Nov 2022 04:38:34 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E7CEF6B0073; Tue, 22 Nov 2022 04:38:34 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D6C326B0074; Tue, 22 Nov 2022 04:38:34 -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 C88E36B0071 for ; Tue, 22 Nov 2022 04:38:34 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id A60631C6837 for ; Tue, 22 Nov 2022 09:38:34 +0000 (UTC) X-FDA: 80160578148.04.EA46273 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) by imf06.hostedemail.com (Postfix) with ESMTP id 5D969180007 for ; Tue, 22 Nov 2022 09:38:34 +0000 (UTC) Received: by mail-qk1-f179.google.com with SMTP id k4so9821335qkj.8 for ; Tue, 22 Nov 2022 01:38:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=x38uAFscJorMy/jMt5Ffl9cD4b4+JycKmqCwz/5L1MI=; b=rCzaMD0KILZDbDPMG9mBCho45bW9yvf9yzT/Ocz13d9fP6zGsvRW8Wu7GtO5A3side 5bEXjfR8WAR11jWi8xkbIp2FVLnwmSRXf8XAMsObqrDT+7peDff8sD93lnJVrd6EA5GB AV/x7yG1GZ9zA6lihpk3IBkAptlLLUD/IUbRlUqcNp1gtQkg6+k15xhjiLSIKJ7NCaXa c5+rlj+uJpx7XF0ukaVmu9soeimg8A8WYJYeg2XRQG8IEGUgMfbOCUBiQOsIyf5zXADv XCU42DBoC+dbdWcnKvOe4uxf5yGejJm+gB+Zrww5bgJKuraVMTqkiNKQ8n1WDYUycMQt uA/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=x38uAFscJorMy/jMt5Ffl9cD4b4+JycKmqCwz/5L1MI=; b=20bQEgHgcNcFuWEwxfGCRSSl0bmu/Bd1wRKf8NpnEJX/bkcNjfDuo0PI5O8sR04Yyv nOyDYTO3qXYfjYTT3Ha+YsD0U4Blo1QsQYs1bXGIusmitP1ZXjM8eZy+DqJcMvcyfFZ5 2UJnZnw6spXo0uWyPXq3bEPWu2nBVxeu3ag25EWC8pN2bKiG3iTgm0aGjoO8XlMF0Etm GR263IzuvaBXnUQEVHj1szi1uOl9JIXDVWThKjVdg1Q1BJ+Z2WCmJ3JL9AVNqbD+tngl ZFAzWUWw77muMuc4ZQZp5FgGjDDiuNH93BSf9SyE8V+yJAy4Q4gdL5awbizg/onvknNc 2+vQ== X-Gm-Message-State: ANoB5plwdFA0pAQLypiSGrfMrf0L+SPfYmFDjPtRN0qgeKIu5SdUKZA7 arzWVwK+pzlOfkFE0HsQAU3alQ== X-Google-Smtp-Source: AA0mqf4XeUG0fB6cBaBGBawYLAXVq1oCYUKsukul5k6Tns4crazFs8AuP1wW+W3fBdtTbHu0U2mPGQ== X-Received: by 2002:a37:aad6:0:b0:6fa:e0bb:cb6d with SMTP id t205-20020a37aad6000000b006fae0bbcb6dmr20436909qke.707.1669109913517; Tue, 22 Nov 2022 01:38:33 -0800 (PST) Received: from ripple.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id y19-20020a05620a44d300b006bbf85cad0fsm10288437qkp.20.2022.11.22.01.38.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 01:38:32 -0800 (PST) Date: Tue, 22 Nov 2022 01:38:29 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@ripple.attlocal.net To: Andrew Morton cc: Linus Torvalds , Johannes Weiner , "Kirill A. Shutemov" , Matthew Wilcox , David Hildenbrand , Vlastimil Babka , Peter Xu , Yang Shi , John Hubbard , Mike Kravetz , Sidhartha Kumar , Muchun Song , Miaohe Lin , Naoya Horiguchi , Mina Almasry , James Houghton , Zach O'Keefe , Yu Zhao , Dan Carpenter , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH v2 0/3] mm,thp,rmap: rework the use of subpages_mapcount In-Reply-To: Message-ID: References: <5f52de70-975-e94f-f141-543765736181@google.com> MIME-Version: 1.0 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1669109914; a=rsa-sha256; cv=none; b=MwY5REj9GmXEJc+cnuR+KZdTWZqrQ2WAMxuU67v9eYbuqePQrSUS34/FLTeNzjahbYeBnM ky3f2PRbRDgDfq6WsT0LGUCKHVipqhWuZ/zWHB7Lc515zpDU37B31Fu/zby9g98EoBgzNl gqC72YYGszZBy4bKniEPkPCHN2M7rzQ= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=rCzaMD0K; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf06.hostedemail.com: domain of hughd@google.com designates 209.85.222.179 as permitted sender) smtp.mailfrom=hughd@google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1669109914; 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-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=x38uAFscJorMy/jMt5Ffl9cD4b4+JycKmqCwz/5L1MI=; b=gpQYYOPDByFmMjd6JojHtmeMWTWag3HEU8EEWGGvy0ikiJC+MM9FlnKVeYKFcW93pWFhrN pdx8fB9teGPhJcSJq6kgcImL9n4AR8jrIj3jGNGrZ4zftbLKNdWR/A8l77kAGrUgl5Q8It 81qx60/S2S1uKccvSLb0tb8S6j6ivho= X-Stat-Signature: r89wkf34aqs8j318i4yqqjz5rnu7reaa X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 5D969180007 Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=rCzaMD0K; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf06.hostedemail.com: domain of hughd@google.com designates 209.85.222.179 as permitted sender) smtp.mailfrom=hughd@google.com X-Rspam-User: X-HE-Tag: 1669109914-10488 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: Andrew, please replace the 1/3, 1/3 fix, 2/3, 3/3 in mm-unstable by these v2 three: which incorporate the uninitialized warning fix, and adjustments according to Kirill's review comments, plus his Acks - I couldn't quite manage them just by -fixes. No functional change from the v1 series. 1/3 mm,thp,rmap: subpages_mapcount of PTE-mapped subpages 2/3 mm,thp,rmap: subpages_mapcount COMPOUND_MAPPED if PMD-mapped 3/3 mm,thp,rmap: clean up the end of __split_huge_pmd_locked() Documentation/mm/transhuge.rst | 10 +- include/linux/mm.h | 67 +++++++---- include/linux/rmap.h | 12 +- mm/huge_memory.c | 15 +-- mm/page_alloc.c | 2 +- mm/rmap.c | 219 ++++++++++------------------------- 6 files changed, 124 insertions(+), 201 deletions(-) Thanks! Hugh