Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5577917rwb; Tue, 22 Nov 2022 01:50:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf6sXJXv6tbGEONdm6erMzpo2CwvmUgrw9nmAtJC3W+JldyZfWFGzczdX6rMZBDY7MzXJ0x0 X-Received: by 2002:a17:906:6945:b0:78d:48fa:8038 with SMTP id c5-20020a170906694500b0078d48fa8038mr19485886ejs.309.1669110600928; Tue, 22 Nov 2022 01:50:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669110600; cv=none; d=google.com; s=arc-20160816; b=Kec0pgzhCpO9Ae1ORDbggWNLLdDrh/Z+RSne/c5EDTymcTkOroHec7zvo5ljJ4B3Qx 69KRzvAoD4NbcNUpVrZ/MlL+HcM+WJZmMzIKAaseCRmh1SseKTbOzvI/0/FnmMDVswWs a+MUzEY7P6ATl3sXoxBAincc93Vk5Va1W1GVJ1zrXElvycmZgq/nEmpajZUzkOn6JHUl Z7LkBmXUoSNIceywK7pzVVYlmO5gT+AJozGOzM4caKL+4NC6LDMaRr05CYO540FuhsPa 7i2rZbrjVuxwjgkLnIi/kgaSmiTozC6tj/pHAffoeDjjWacS11k/RJ3n6sUSulX5DocR kl+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=x38uAFscJorMy/jMt5Ffl9cD4b4+JycKmqCwz/5L1MI=; b=hsPjX9Rv4mkXJeBVUNpedkb5Ekq7ZdmYtAqJexA4gB1w8GVl3nZQsm4qH+Qylsmmbo wGoQqh24vjbeyl2dJ33wIUdo0eH866cUpBEw2D7eAnbcYLl+OT36wnQJE/cBJK3iaHUE T2lXtc01OEwJdPFFygW/ptX3ooBdKy6HuNMxZqVKayt4eCgVAV7ZGMyNiVUDnHoaTsd2 SR91NWPMqC81oDjqCZ6NIBE1eBy2R21riaU9uzKlVOAnxGdQ5H/bXvDLXMaXWblTeCJf 46gUpXTs8ZCqfEnBZhieclUzsPcmRYY4C6YfCQ8xcAqoRVes6R2l984H35LFx9Zmahgg sFfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=rCzaMD0K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb17-20020a170907161100b007b790c183d5si3560848ejc.260.2022.11.22.01.49.38; Tue, 22 Nov 2022 01:50:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=rCzaMD0K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232893AbiKVJii (ORCPT + 91 others); Tue, 22 Nov 2022 04:38:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232925AbiKVJif (ORCPT ); Tue, 22 Nov 2022 04:38:35 -0500 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 851D323147 for ; Tue, 22 Nov 2022 01:38:34 -0800 (PST) Received: by mail-qk1-x72a.google.com with SMTP id k4so9821334qkj.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=4WdMsxAEqagHQY4i/qrv9XWrOXrO1+AZcAFOf5Esr+8MEjv6pU3kWrFro0Z/r3j0ga dfSA2Jx6F0aNyy2vNJ3kj1evAzCmW4Qu59KQ8ar6e9WFQ5kYn0BXCkAFD8apgeAQLwJP B/7wCYAzp/krba3ejezeGZ4MBvuwWz/aGJoCcfzdD+SSxGFa2Bd6I7UqlcFFA51h3J65 M1UNZf7cQb3phvgjD3zDCAj4NOTlXBmXULSrjSkuDqzwG+63p5k/88EqKU3eQLVBIPLB LyVUuEEY5Ezlh5ZYwgZ5x7uRdP8B0kFF+dcsNfWbUdw1od/vpBBz1TLwavaaXXvzBvGr bT0w== X-Gm-Message-State: ANoB5pkcqgQZGwzF2es6UkXed3zMP/Y2f//QHvRAn4MAWasGHpq8WQf1 D+agwBcRmvARGkp25jJ0ezf2Bw== 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 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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