Message ID | 20231127084645.27017-1-songmuchun@bytedance.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp2943884vqx; Mon, 27 Nov 2023 00:47:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGDMSmxO6oGYxWmfZXJs20URrN7HxezN8eQ26rgxWF9Q9dw7BZd0oOCyejzOCZPw6P7CqEv X-Received: by 2002:a17:90b:1b42:b0:285:a17f:9dba with SMTP id nv2-20020a17090b1b4200b00285a17f9dbamr6348937pjb.16.1701074877642; Mon, 27 Nov 2023 00:47:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701074877; cv=none; d=google.com; s=arc-20160816; b=QGhqlgdl0I2iVSa7MCQiK0dT2CD1jBQuVJogGWV8G8OBjSAJsG4ul9Exxm3vCGFtVD yTAjr6WcOMcc3Fy4h9kVPHJ2Nk2iUwHf4AV3qg82005MVx2hPU1E5JqZyCLd3Qs+tUv1 sbh0Janelr8RSN/tGAqMX7WN9OzXwCoSYKO5MyI4vFyGLwTY7/mg/Sxu5rmykjJ1vYpf zRLM8Kijp95SLa37VkObCUQa89SyJWj9ra6Wh1KOsN6DVCnFv7iMa09FWJVVDtpZptKj wTmq/oGijrE4cgjp4NjMpOq3IAWzY9XzEDTeSZyCvx1QoMQw0/puvk2jV01O1wyDjHSr qwuQ== 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 Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id o15-20020a17090a4b4f00b0028007dadafbsi9375070pjl.58.2023.11.27.00.47.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 00:47:57 -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 593FB8063022; Mon, 27 Nov 2023 00:47:53 -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 <rfc822;toshivichauhan@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; Mon, 27 Nov 2023 00:47:20 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-6cb4d366248so3140791b3a.0 for <linux-kernel@vger.kernel.org>; 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 <songmuchun@bytedance.com> 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 <songmuchun@bytedance.com> 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: <linux-kernel.vger.kernel.org> 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:47:53 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783706290778581500 X-GMAIL-MSGID: 1783706290778581500 |
Series |
Code simplification and clean-up for hugetlb vmemmap
|
|
Message
Muchun Song
Nov. 27, 2023, 8:46 a.m. UTC
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(-)