Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2732539rdg; Mon, 16 Oct 2023 13:07:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFSCg8Ia5G8xBiV4+p7+ai8Cl9xuM/8applwVHvi1RjSmbukM81NeuWmNi7Q/gaj11ysv03 X-Received: by 2002:a17:90a:fd11:b0:27d:65:53e1 with SMTP id cv17-20020a17090afd1100b0027d006553e1mr173212pjb.16.1697486853135; Mon, 16 Oct 2023 13:07:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697486853; cv=none; d=google.com; s=arc-20160816; b=bM+AGCuCM532ZjnKIuf27O4PrP95fJNckqnOzCsWuC7COGY8/5vxEB51a3SixsX9wL lQJVU/LPLmwsJfqeVU58oBxBwtHWcKagkHme6a6hbwts3Lz6liLCn340YsuN31dJpPld f2Q4jmtbpgnbItNWKgjr0M3Jn/8baZLLjLzZHa8B7vG+qJz2FtojjGJuYc9daE8iTFc3 XISuRQQypZfQ6d+vJCrnEem7fwZLWKnp07oA5XmEDkb7UQTWJvEA1/HiiK3NIMhziiN9 aVv5Bgb6FLNJysvvKNpnQJlLOnPX+rJgFPaxb01AvTpU0pFyTP2icFf5N8wV8F+mnXrf u3MQ== 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=5F7OC++xn+kkTY71IkQWnoFxTqqatmRbWWQxi/FzcJo=; fh=8QxY+O3ixhfYmsFkOjVWPUpalTwBFBIvZrV0f3Brsxg=; b=Xa1g1VCyAAJtBxgTpogukDC1gnAAH+HXvUhQEfSKjhmZy0zwZna7bm1wYMUEWuHVY3 HEkLkBlpP5yEHjoMP4Fn01d3q9ygdyirDhPQPGLNd9wlRHNOW48fkz9MXhOSPQbSmot/ 0DRML6/f2AW+dIaP6nO6z6AiXOARy8Nhv4gDlHQdVC+mMVLs6lBwhTt7PIlAIC99aI8A zdkoRl/oDN73V9AOgCm18i5Dmty83kxJlMMgojQv+UqFXTSziaATqJ1ctBN+ggUNNVmO 2e17lfOUid8S9pQcH3TqQZP/lzw/fbYS/TvMZau42Ia5nYzr+acEgBU0Z0j9kw/7EpHa EVww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Uej+szly; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id np2-20020a17090b4c4200b00276df8c5b83si6221pjb.143.2023.10.16.13.07.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 13:07:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Uej+szly; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 3AFC8802174B; Mon, 16 Oct 2023 13:07:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233528AbjJPUHH (ORCPT + 99 others); Mon, 16 Oct 2023 16:07:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233788AbjJPUHC (ORCPT ); Mon, 16 Oct 2023 16:07:02 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B2FAE1 for ; Mon, 16 Oct 2023 13:06:56 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-27d153c7f00so3147447a91.3 for ; Mon, 16 Oct 2023 13:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697486815; x=1698091615; 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=5F7OC++xn+kkTY71IkQWnoFxTqqatmRbWWQxi/FzcJo=; b=Uej+szlynz4EmjMPypHm0od5E7oEZJ1phjbsdC4ZgCgrzvlR62wZbeQsKrJF3JN9rq M58JHNeNFWKvR2MAO2jCZbgGaCqBJdMpLTDnbnzQxaSMPUhDpuH4lmZalPxtrDNpj7eY HVqbz08snJ95GNuolKxEV7XWHVXwnsHc8IMMYfzbkiQM88IoU4xSfkbwtXLHVcHSfajD 36wa3HxId4WdRWehWZLChWp5YvPzuepRZl9OpG+FSJIIiXVBPShtlvpdhTaFKv+EsDlk JJ3IoT0wRetXTDLN4OGXXkcKLl36t+9uU2GihDznZyu5BX0eJXCH2nJ+uDNT1RCysa/p QjGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697486815; x=1698091615; 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=5F7OC++xn+kkTY71IkQWnoFxTqqatmRbWWQxi/FzcJo=; b=oIkLjjR5MYiIF1zCnmFWF+u8w0GFMb964BJUrWiBY79nnUnF7CwgRnYGJiA4EwsQtK uWXEMS7REstFFlqbNLfnv3UxbqK/B0oH+yXT1bRTRonWVzinWgQ5QK7F5/XP4c25vx8a +gMW5pIlt9ILU4+4sp/invGZbdkw3o9QGosc3EwRE5Sk/FhfvosSAwxg/X2Jaumxn6PJ D8PKd6aCRvdw9RWtGd0lyRRXQRZTbyKBaq3UMo8WKdeQmVniBSFVjy48DkM7NAuoOZgR Sh5Z6dWv0vbG1KwDa0I9ke98jabyW66FSkdrQLLuu2h6dK0uYo2fbhy7fLnQsyPnDB+E 8I0A== X-Gm-Message-State: AOJu0YyITucbRSMmDKPEApt1nwycbI6YGhhqRTeMwtZOb/qDMHwFnMI0 bOPujbdkRLkilLKEP3cSS40= X-Received: by 2002:a17:90b:528d:b0:268:1355:b03e with SMTP id si13-20020a17090b528d00b002681355b03emr176566pjb.38.1697486815380; Mon, 16 Oct 2023 13:06:55 -0700 (PDT) Received: from fedora.. (c-73-170-51-167.hsd1.ca.comcast.net. [73.170.51.167]) by smtp.googlemail.com with ESMTPSA id t16-20020a17090b019000b002772faee740sm5162367pjs.5.2023.10.16.13.06.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 13:06:54 -0700 (PDT) From: "Vishal Moola (Oracle)" To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, shy828301@gmail.com, "Vishal Moola (Oracle)" Subject: [PATCH 0/5] Some khugepaged folio conversions Date: Mon, 16 Oct 2023 13:05:05 -0700 Message-Id: <20231016200510.7387-1-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Mon, 16 Oct 2023 13:07:25 -0700 (PDT) This patchset converts a number of functions to use folios. This cleans up some khugepaged code and removes a large number of hidden compound_head() calls. --- The first 2 patches break khugepaged max_ptes_shared selftests as the functions now use folio_estimated_sharers() instead of page_mapcount(). This is expected, although I'm uncertain as to whether that's actually a bad thing or not. Some performance testing/feedback would be appreciated on that front. Vishal Moola (Oracle) (5): mm/khugepaged: Convert __collapse_huge_page_isolate() to use folios mm/khugepaged: Convert hpage_collapse_scan_pmd() to use folios mm/khugepaged: Convert is_refcount_suitable() to use folios mm/khugepaged: Convert alloc_charge_hpage() to use folios mm/khugepaged: Convert collapse_pte_mapped_thp() to use folios mm/khugepaged.c | 145 +++++++++++++++++++++++------------------------- 1 file changed, 69 insertions(+), 76 deletions(-) -- 2.40.1