Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3523661pxb; Mon, 4 Apr 2022 19:51:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSycNvMAPucXjj3PG2osBGy3f712qXPIN3yXF9/rR7Ea5b50b7RwCB8mdtXCgD0VKax59M X-Received: by 2002:a17:902:70c1:b0:154:667f:e361 with SMTP id l1-20020a17090270c100b00154667fe361mr1334132plt.148.1649127077908; Mon, 04 Apr 2022 19:51:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649127077; cv=none; d=google.com; s=arc-20160816; b=G/UkYHgE79HSKu1PtPkyi+Le7bBW+aqu+4w/K7TrZOcJzL2zc1bs3hzKhtTpIvCpwE keZnaGX1bG1QFJC9Xaa0f6TN/Cp+qA8UMbHys7zw7CFRqwgUh9irklxtNUhHD2QA2uKW Fzp0xXyFsRNlhvvDAQ9F8ASLpbJlsBjQGLC2d5OIw5VtPLw2Kc17XmRdtblWHG+hhLZS 2eI2swXXYTXWCpI8r6iJwV4vpbIiahX3Bj2+/Qj8XGsJdBuzLDbuHkE+CnmkwcE8x8/V T4YKPmnzfx9YwlVK+zGQlD4OdrJH90x2O5cygi2ZZMf4lEQQLN39scUZq1gqKyHlYdiG /RMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=0eeT6kPw0yLPrANsQAxwIxRSWeGtxpHd9u+X7Wv3pGE=; b=qNDuaECvO+QccThf73zg11eUMaCWLAiXrwmxN0i3hBGMCxCVS6Bb3qNWrb4sm7m9Ox bXrZYJc/4Xja4BkG5ELVJKi14ELrmR42lvvzi5t2X5Mw8wCNkYxoGMNfH8u5nj/QeEls 41R3xf7c6SRIGGP7wJNr/vHqXvCDf0/c4D1T07ZQ1kle58mTPKa0z3jK/wzxXP9BKWV7 1nJJsBsE8BKXude/vSaqVaoCSdOjlKnX3zKHPN0gTkhqEmRVEc0t9/nf9G+Mzs4Pjvl5 fsY7+LVVq9apAd2VkZVhHv9K4GZgJ8K+CLkM7b4rrllyNCjkWYV6NqOL0zBc9iN4nsD5 xulw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="Y+9H/px8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f6-20020a170902ce8600b001547f38cd5bsi12835811plg.30.2022.04.04.19.51.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 19:51:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="Y+9H/px8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 16D64307770; Mon, 4 Apr 2022 18:14:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352547AbiDDHtP (ORCPT + 99 others); Mon, 4 Apr 2022 03:49:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239741AbiDDHtO (ORCPT ); Mon, 4 Apr 2022 03:49:14 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD13917ABF for ; Mon, 4 Apr 2022 00:47:18 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id g15-20020a17090adb0f00b001caa9a230c7so833756pjv.5 for ; Mon, 04 Apr 2022 00:47:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0eeT6kPw0yLPrANsQAxwIxRSWeGtxpHd9u+X7Wv3pGE=; b=Y+9H/px8pBLuWwNc5mNdxkF+MHWQsFi8MXFzKzIQ3IphDkradk32peIA372HJM9sRd 9/XBzNydfRNBjL5g9VPofLauSg2M2l4JUCRcYRwPZS2JRyjTa6a8AlAZJ5lm2xRbPnEy x3iwBrrBPNLSPWiYGWPsmYyohRHk/1gYItdb0su6o/MLCgVnVv54ScrZxgrW1YzinsoT lVyrD0Z+gis08MqKFLrepPq98OAR08Q0iPrJR5DRlObxKLoKQg5gVsksn/Ja32+TAGE7 NMCB8aWB91vGlYUr1mDCyxwcE9b6UIE2xfIGl7lHxhN1FRWNztQM83ZI4UJY9ifWwzck v2VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0eeT6kPw0yLPrANsQAxwIxRSWeGtxpHd9u+X7Wv3pGE=; b=ladcT5X1TkMttymUE64auDuf0x9tLhNTlKFB60+Lm+fXH3cTax5FdgMPBg0WOZ2xIJ KoUNiQ/ATjLd/I5EF/wIKMlVn0DS/64Aq3w7Kj71LH3Rim4pq48tEjlWK5zIc5Xl/d/U gGxkLsZgxSqY4ZX8ie/GSs99yUWrjCCf/2wUgh3VYb/6dRhOYqSsAc2U0o5G51XJB4ZH jAMuruEKrB3UdrIJD8zH+yepHnURgYXlA3kqDTtgwcz8RzINuIKUnvqy6N/FOj4/nQWE aSIC1oHj/PXaI/StUkoBiUlvHwGhOysH+RR5Jkx7ilwFOo6EKsJ1K8SBna8+mMdCnhDj whwQ== X-Gm-Message-State: AOAM533cqlEK0rSVpXm8JRB4EZTNMUQvEUjE+PxTndsmgAAPBZwlD7hW /wu7tata77A82TEsx6C7ZNeu2A== X-Received: by 2002:a17:902:e193:b0:156:a04a:40d0 with SMTP id y19-20020a170902e19300b00156a04a40d0mr4453833pla.125.1649058437835; Mon, 04 Apr 2022 00:47:17 -0700 (PDT) Received: from FVFYT0MHHV2J.bytedance.net ([139.177.225.245]) by smtp.gmail.com with ESMTPSA id g70-20020a636b49000000b003823dd39d41sm9376579pgc.64.2022.04.04.00.47.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 00:47:17 -0700 (PDT) From: Muchun Song To: mike.kravetz@oracle.com, akpm@linux-foundation.org, david@redhat.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, smuchun@bytedance.com, Muchun Song Subject: [PATCH 0/3] cleanup hugetlb_vmemmap Date: Mon, 4 Apr 2022 15:46:49 +0800 Message-Id: <20220404074652.68024-1-songmuchun@bytedance.com> X-Mailer: git-send-email 2.32.0 (Apple Git-132) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 This series is based on next-20220404. The word of "free" is not expressive enough to express the feature of optimizing vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze" is more clear. In this series, cheanup related codes to make it more clear and expressive. This is suggested by David. Muchun Song (3): mm: hugetlb_vmemmap: cleanup hugetlb_vmemmap related functions mm: hugetlb_vmemmap: cleanup hugetlb_free_vmemmap_enabled* mm: hugetlb_vmemmap: cleanup CONFIG_HUGETLB_PAGE_FREE_VMEMMAP* Documentation/admin-guide/kernel-parameters.txt | 4 +- Documentation/admin-guide/mm/hugetlbpage.rst | 2 +- arch/arm64/Kconfig | 2 +- arch/arm64/mm/flush.c | 4 +- arch/x86/Kconfig | 2 +- arch/x86/mm/init_64.c | 2 +- fs/Kconfig | 16 +++---- include/linux/hugetlb.h | 4 +- include/linux/mm.h | 2 +- include/linux/page-flags.h | 18 ++++---- mm/Makefile | 2 +- mm/hugetlb.c | 10 ++--- mm/hugetlb_vmemmap.c | 56 ++++++++++++------------- mm/hugetlb_vmemmap.h | 24 +++++------ mm/memory_hotplug.c | 2 +- mm/sparse-vmemmap.c | 4 +- 16 files changed, 76 insertions(+), 78 deletions(-) -- 2.11.0