Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp193499iog; Sun, 12 Jun 2022 23:54:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1MYej1F92i23cFiHgO9oSAa4ZXO9gv+emiuLiBcvaFxF7mHyzxwZLgOI91Iv7USHBYxpJ X-Received: by 2002:a17:902:8f87:b0:166:3cf5:335f with SMTP id z7-20020a1709028f8700b001663cf5335fmr56497679plo.119.1655103293919; Sun, 12 Jun 2022 23:54:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655103293; cv=none; d=google.com; s=arc-20160816; b=OPCiVe4RHYsCk7v7dd/hezqXHe1dxYySflCAc610ZtgCJZP/zKK6SjHfycfwppxZyo yF+KyVqs6+7tTgQXwrzAXvxm9UgCKfntDeJHQzO1xyE/KeE9+WkGePfqe/qi6tCqEJj/ 3FrFP6PC6brZkDEGpPZxwmX8wC3esCS5H3XeUReqB8uUlbB4By+u2yz3b65lSkw9LGeD ek0eiEvH+Kf9mOr2FLS/4bJvNRsUEfCzOwUKZxqiwPfepNV+m7XVavgUibX7lWXeAkYp 9AY2A0WzYtvDyjAguVzezcoS6yhGDssUKB2DzClTUK7oDozzsDv55FSaK9iuajMpiOUX qPXQ== 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=Ejoz2DCbggYc1zBmQNGGZRqPtrQj0ureLICOuzJFZmU=; b=rDvmj0y6FrNKtMEApkWthgJwPLbNtraOKa32UpEwOhUT/n4gate5oz98o9aRGu7RGR pkKkigIdmhike8XxruCAPNtJRqbJxEfLNCGjaB8UkLN34GzGmdef+/SgvwrHm8SrYpXQ 2quH7K99jSAYZgT5aL5swm4XTD+gVl5zLFH26PLeL3T8IwwqkLvDJNvWq4wVCPthSPvW neM4ECLmUD1H9sVlg67t69l0LjPUqPjHkFIwFPhRovTJdF7hIFDFkNL4mNqRSnkpOjcX 7Ivqx8yk/otV8+mw9ooa3ulgzotiy6s37VbSMy9WYPVywXA1hv68mLKMHGLfFL6/1zoR b0ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=OxTUnNdH; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id il6-20020a17090b164600b001e86bead2absi13907372pjb.55.2022.06.12.23.54.40; Sun, 12 Jun 2022 23:54:53 -0700 (PDT) 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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=OxTUnNdH; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234482AbiFMGfc (ORCPT + 99 others); Mon, 13 Jun 2022 02:35:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231356AbiFMGf3 (ORCPT ); Mon, 13 Jun 2022 02:35:29 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C020ABC9C for ; Sun, 12 Jun 2022 23:35:27 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id h192so4734196pgc.4 for ; Sun, 12 Jun 2022 23:35:27 -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=Ejoz2DCbggYc1zBmQNGGZRqPtrQj0ureLICOuzJFZmU=; b=OxTUnNdHpp50SMsYqQOIYKSwtagFzLBUmMmPY9dFZ+mCEDI0GK+/N644JE0MVvRWuD oi1jkSH30j46ZX061wTIpMoKjsckKkkuG/UTdIMbtVUUrwrWj6v0vGxlZ5xKHU3UMk9T MrG7FrNRnF7cqn36SdxWn026hu4EX/7nFvs5WuiE7CM50W17zGVGpz84tR9HpKEl3rAP ebelIoFS5Lhto5GBs76E3lrxeLiAqiWUJpaQk8EmX7YkGPsQrbcXln9b+NRDLz4b96yY iO0CKZxjNJq7XR6NnOJoSyQDAR3SBeko1QHhxk3M5dWxw7EsjElP96SoYkXgUEZRLgbb 1vjg== 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=Ejoz2DCbggYc1zBmQNGGZRqPtrQj0ureLICOuzJFZmU=; b=Obm/RdU2/d16p7wrzuHw2ybQObqNhhx5LDGmb72vH47QDkeiD2ccV5m+pXyyIq/Y5o 0JL8Ega1QLyZUslO0H9hvp9Sfcv74upjXugi0p71jiIep1uwmfX4myZbYFgt50kpOA31 oBxVj1n7K1ffM7L+ZQMObKmA5vKkujIpukU+wJ80GUEdiPFLkOq3eSYD9ibIxiM0h78j mI0P0JKzO/2z9RNaQX9OtDCVI835C/EJv7tZlV6MFkU+5+Ctk+fC/r27Mwg0z/kGrwRl qe0V9OWHEvGzlg+f8fQjGz61bdxTybSZCb1P6rlmpcaz7U4zvGWGp1pFm0auwKmDZKyX MrEQ== X-Gm-Message-State: AOAM531lCFLV0FYkMt8mvDH8+pAtu+UWSn6KhxcxRM3mSe1MlP6/5oR4 lPP1xqYd/XTdHKAwyFrQoV5yVA== X-Received: by 2002:a63:5723:0:b0:3fd:d8b4:c19f with SMTP id l35-20020a635723000000b003fdd8b4c19fmr31492536pgb.137.1655102127199; Sun, 12 Jun 2022 23:35:27 -0700 (PDT) Received: from FVFYT0MHHV2J.bytedance.net ([139.177.225.255]) by smtp.gmail.com with ESMTPSA id v3-20020aa799c3000000b0051bc538baadsm4366554pfi.184.2022.06.12.23.35.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jun 2022 23:35:26 -0700 (PDT) From: Muchun Song To: mike.kravetz@oracle.com, david@redhat.com, akpm@linux-foundation.org, corbet@lwn.net Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Muchun Song Subject: [PATCH 0/6] Simplify hugetlb vmemmap and improve its readability Date: Mon, 13 Jun 2022 14:35:06 +0800 Message-Id: <20220613063512.17540-1-songmuchun@bytedance.com> X-Mailer: git-send-email 2.32.1 (Apple Git-133) 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,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 aims to simplify hugetlb vmemmap and improve its readability and is based on next-20220610. Muchun Song (6): mm: hugetlb_vmemmap: delete hugetlb_optimize_vmemmap_enabled() mm: hugetlb_vmemmap: optimize vmemmap_optimize_mode handling mm: hugetlb_vmemmap: introduce the name HVO mm: hugetlb_vmemmap: move vmemmap code related to HugeTLB to hugetlb_vmemmap.c mm: hugetlb_vmemmap: replace early_param() with core_param() mm: hugetlb_vmemmap: improve hugetlb_vmemmap code readability Documentation/admin-guide/kernel-parameters.txt | 7 +- Documentation/admin-guide/mm/hugetlbpage.rst | 3 +- Documentation/admin-guide/sysctl/vm.rst | 3 +- arch/arm64/mm/flush.c | 13 +- fs/Kconfig | 13 +- include/linux/hugetlb.h | 7 +- include/linux/mm.h | 7 - include/linux/page-flags.h | 16 +- mm/hugetlb.c | 11 +- mm/hugetlb_vmemmap.c | 592 ++++++++++++++++++------ mm/hugetlb_vmemmap.h | 43 +- mm/sparse-vmemmap.c | 391 ---------------- 12 files changed, 509 insertions(+), 597 deletions(-) base-commit: 6d0c806803170f120f8cb97b321de7bd89d3a791 -- 2.11.0