Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2880103rdh; Mon, 27 Nov 2023 00:48:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IFUIwRvsd/Zq7bG38E1LIG+AbWBMZdHJm4wC5zpZjaSlVt6Nc8Qmi8RihLOv/AtyZXicwOy X-Received: by 2002:a17:90b:4c04:b0:285:bd52:32e2 with SMTP id na4-20020a17090b4c0400b00285bd5232e2mr2427416pjb.15.1701074886199; Mon, 27 Nov 2023 00:48:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701074886; cv=none; d=google.com; s=arc-20160816; b=rVKtbLyJDqnLWOym/dI2+HT+LDI6FLBlHIFH9vJ7FcP9RKt+fjYKQ/e+Bdsv/JudGm IGi/8tn/QX5VRTITebA5wVm1ZbwT/0pbBJAfuBgoeoXaBRDpbtwLyx9q/HwiIT3gi0UJ AlBDyFPXMOF8FWdwaJNmvYyJc8mjy+PzUStLNT5P0K5DmQT4TloBazfV90SnaMGvTncR rbd+D8WtApkdwJLbNJFdCoQ4RATh8zmYHnhZChLvv+qFesQQEwdUmt121hsCGMcvpus5 7gpqrh2nKDumKilUlUdqDd+lN/ez4jq/g+phQsgJE9TjwiXiO0596tPvjfeuEc8vidfh vGug== 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=4Sa2C6hevcNV6Dl9tqszGj9RDMXGfLvCPyO01ufsuBI=; fh=UHevQD8g/ASKsyBf3gegCtnBBR+hA6VRMUG2agRDexA=; b=YtaH72VPpcwg+j3GSlTbpM0KEKliLJA5PL0ZOgqkPpI3w9cREKW5qRSRp2M8cmGWHb 5Ssm+GbyOOksKchs6+KQWMedSV3nhCC5xQylmCdV4qvL71RWGJSyZTc7OSz1ftEEIMaA FvmXrmC/MCGkBS4PvDwhO/921Wvf8OAfBbqeu8Yra2s/gJW9M0qi2v1ZaqdNtMlYh8BD CtaXy38Kx2FnqMKQqKVmvZoODsl0iPIl0L/iQxavC4ARiOgJjox8E51hn90MbYj/tf6o B0XK2AS+OWOGvvgUOiwljGsaXcmTYkTlCRpvPVAAX+tylGKOhg/GqfHCrOhuYC05vMnJ J8Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=JND3ABHD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id mr18-20020a17090b239200b00285105c440esi9223909pjb.120.2023.11.27.00.48.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 00:48:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=JND3ABHD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id DA66C8063023; Mon, 27 Nov 2023 00:48:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232727AbjK0Irl (ORCPT + 99 others); Mon, 27 Nov 2023 03:47:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232689AbjK0Iri (ORCPT ); Mon, 27 Nov 2023 03:47:38 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 616C2111 for ; Mon, 27 Nov 2023 00:47:20 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-6cb4d366248so3140791b3a.0 for ; Mon, 27 Nov 2023 00:47:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1701074840; x=1701679640; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4Sa2C6hevcNV6Dl9tqszGj9RDMXGfLvCPyO01ufsuBI=; b=JND3ABHDgBkwTUWF5DQtbJVmSbNTnn55JCPvGhAzRLQFzBkgMZ32hewuUkgo02Eg/D r5+WurFnSQTYhS0/hoGe9SMkBjMU8YWdT1H4GLfXIXhlwkeEub9etLROw3qr9cowRiQM us7hy/XpRYdQSFH3WlFIYmK+Cj4Im8v8ZyynbspivgwSgLmjEJPex0yMZcTGQ9fbru37 MfeZwI3tREcOW4Wds+PkT3TUNlrynYt2MnyeDorhdHE1b3kvu9IDS5SzEmoy25MxWMoX f4Ii6fJeUqtu4RvZrUFrJXjL72EzA+5SNxiWQvr3v4A4ZCyfBDTqUa9x6sg7sbMLnqUB SLsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701074840; x=1701679640; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4Sa2C6hevcNV6Dl9tqszGj9RDMXGfLvCPyO01ufsuBI=; b=jT4wdx6KAofiguLxfXKXVDL2VAJ2hQnuPCQ33lcVO2uQVxXado1/F3tGf8YOwImubU RCba3vDdsDx0ixS5Mvr384WCT0xdTjXsOzU7wdopu034K1O+RCsJex/Srx8SgYKM9Mmy 39g3jOzMnQelAnNjypzuUFQ3WPk0caEmiFSOtaeKm8zEHu+kbRuskL0xs9Z1XAQSRF1q z2vdErt3whWrJhLFyh0YUc5An0Yx/PhfHl4Dax+jPU95duNzFGmHVpOlip48hZ+juUGX Ty7ysk9y0lzysd0mHPk9eRha0MJyI94EH1hHZAYMqALPbq1FGPnAlF4kg487zsVGrJZ0 8xfQ== X-Gm-Message-State: AOJu0Yw8MSQiyBN7Pau7D5RqQusLeQYI/iMpLJmNHOnqCcXKcEWoJEgR xjnBkYGAx+gB6rOmEsUzdSRmxQ== X-Received: by 2002:a05:6a00:1f0a:b0:6cb:63cb:83c0 with SMTP id be10-20020a056a001f0a00b006cb63cb83c0mr11865332pfb.29.1701074839860; Mon, 27 Nov 2023 00:47:19 -0800 (PST) Received: from PXLDJ45XCM.bytedance.net ([139.177.225.230]) by smtp.gmail.com with ESMTPSA id e22-20020aa78c56000000b006c875abecbcsm6686932pfd.121.2023.11.27.00.47.16 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Nov 2023 00:47:19 -0800 (PST) From: Muchun Song To: mike.kravetz@oracle.com, muchun.song@linux.dev, akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Muchun Song Subject: [PATCH 0/4] Code simplification and clean-up for hugetlb vmemmap Date: Mon, 27 Nov 2023 16:46:41 +0800 Message-Id: <20231127084645.27017-1-songmuchun@bytedance.com> X-Mailer: git-send-email 2.39.3 (Apple Git-145) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 27 Nov 2023 00:48:01 -0800 (PST) This series aims to simplify and clean the code of hugetlb vmemmap, please look at the commit message of each individual patch for more details. Thanks. Muchun Song (4): mm: pagewalk: assert write mmap lock only for walking the user page tables mm: hugetlb_vmemmap: use walk_page_range_novma() to simplify the code mm: hugetlb_vmemmap: move PageVmemmapSelfHosted() check to split_vmemmap_huge_pmd() mm: hugetlb_vmemmap: convert page to folio mm/hugetlb_vmemmap.c | 259 ++++++++++++++----------------------------- mm/pagewalk.c | 29 ++++- 2 files changed, 111 insertions(+), 177 deletions(-) -- 2.20.1