Message ID | 20231018203213.50224-1-vishal.moola@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp5051850vqb; Wed, 18 Oct 2023 13:34:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGPsAA7/DyVUvPCVwFYT2rDoYIzQyIiLGm1sou68g/m7CMWels7Nu2EWmUGAuLe+xJQv19U X-Received: by 2002:a05:6a20:3ca7:b0:179:f858:784d with SMTP id b39-20020a056a203ca700b00179f858784dmr330987pzj.21.1697661247515; Wed, 18 Oct 2023 13:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697661247; cv=none; d=google.com; s=arc-20160816; b=ZiXwqaAaw0e99wZRc6CVIuwm1fHAu0V2ZJWcsS1X6kdZb33HXzCdbt3Rf5aWE6Vkwf eo30Hn73On54xCnG4DqA9NjLaT/p9JGDYUIUdVKLTuE9693ZBojygqQrqU6GmIZMqtlj NWmvJNiz72V+vmuDl7BrHLTS9xOFgaV4h1DtUSXYthJrxwHbZFmNDUoN5/bCIPxJlJWj kkb0GrjwKh1rq2C6oT3u6WzDByPcZfPwAUjYrT3XSYhX3BTDtkVlWQ1EouBRa9g/2Q0s DD3dr+fPGY8sYQjVO1z3/i7VxD5ilGLMW7DqVuuw9xYuNeVWg+Z9piTnz3HaQj5ld11P U0ng== 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=X8jWDR/ZgJmIkKKp66piz2uVDLnH/M22Jlwkva7IsYg=; fh=8QxY+O3ixhfYmsFkOjVWPUpalTwBFBIvZrV0f3Brsxg=; b=imRA/r+PoVfDxaToWzVuP6CoOJ6pI/Uai/aoFpudai9JA9C9HxKHNAbkUeNuF0Pp+S 725f+ujccS1xH3lHFDKFNNw9ZbdaHg05Alxi0qiX21Ma5Wt6AHSV+L997CfrQTgr4qx3 cx3m+MpFL12sAeOiERj42XGCABHtC1HjT/elDKUBbeQJV1949AuNbPwCqyzMU5HKkecl x0txjj35k/PExo8ZjNWAC8nc5vT04k0z0+seMfWX5/p1w4hHc0Ug7EMsRNBcnzo+i5v6 AeGixdVxLumO8OdFcxeUldBpCKL4Wdt+ilYYrQKyr6ZMJyLiBoB1zcQ20CjFo5UQqfrU SOvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nb4+Hx7k; 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id x20-20020a656ab4000000b005aad7d77608si2928029pgu.138.2023.10.18.13.33.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 13:34:07 -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=nb4+Hx7k; 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 938648063D5D; Wed, 18 Oct 2023 13:33:31 -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 S229605AbjJRUdJ (ORCPT <rfc822;zwp10758@gmail.com> + 24 others); Wed, 18 Oct 2023 16:33:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229721AbjJRUdH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 18 Oct 2023 16:33:07 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3AF5A4 for <linux-kernel@vger.kernel.org>; Wed, 18 Oct 2023 13:33:06 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-6b201a93c9cso4878987b3a.0 for <linux-kernel@vger.kernel.org>; Wed, 18 Oct 2023 13:33:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697661186; x=1698265986; 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=X8jWDR/ZgJmIkKKp66piz2uVDLnH/M22Jlwkva7IsYg=; b=nb4+Hx7koEYA4We5DJIE9p96KnZtXRl9+8ZmJWpvbdTB71CKVlbNIbB+rOGRIHVGCm RDanut/ho0AxUrC8SIIREqpwH9wtKpEuyU5craPRuU2GQM0KsB7Kesohw78qTK+8F/KQ CEQxU/2mGgJiljRFuRs0LkYHZz/5rjzyCYPvjDNH1HJN8JougT8bdDpnaxvhyMdS9I+v v67pKdd08ZcpzOyUAmqMs9BoULO+rANNcKHLe6r09Kgv1VxLYs+Tc4bjJH2Nw/x0ijJN ulQx1WsVx0ewhjMVVcuVzsMZfm9JUlRT+R3gk5e/q1fW0PqNT+Cs1cj8gRWx7F5cmJcr K9fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697661186; x=1698265986; 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=X8jWDR/ZgJmIkKKp66piz2uVDLnH/M22Jlwkva7IsYg=; b=nD5MWOrHtnkjCLiHKFLDTWHuNRFZX40HGwn7J/fInBw+u7tnaCM/uaWsCkp+SZ9TQY zYYQ8lqNEeHEbKosigNxOEQH4ur21xPjnr8s9+ftrlsLBnTKrFeSS/JA+Qds3DXdGpLe i1VMm+ADBaY6vA28MHUAgYLJbCXobCETrjhk3eQiWt5OSiFUPliBQQ+eUMj7eD5HSntv RFaQtkZRdvj6VcFdnqUfE2+WFeI4DioGuNVbHblph/VW0LLM7a74dMIzL1sUdQexGWoR ANRU2EPq15jslLQKLnXqHDdnF+JEx2mgCqAQH+LxCw37QTJ5NEpHfeWT4ZTLYlpczhmf wc1Q== X-Gm-Message-State: AOJu0YzE7tQuBovrUSVeSCvhVa3PfkTa+/5k6PXjhXLWFqv9UuSjmlt3 yxuMhM18bf5xbxXOlg+Y0KQ= X-Received: by 2002:a05:6a20:da83:b0:163:2dc7:d077 with SMTP id iy3-20020a056a20da8300b001632dc7d077mr293178pzb.55.1697661186019; Wed, 18 Oct 2023 13:33:06 -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 w12-20020a170902d3cc00b001c61e628e9dsm354412plb.77.2023.10.18.13.33.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 13:33:05 -0700 (PDT) From: "Vishal Moola (Oracle)" <vishal.moola@gmail.com> To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, shy828301@gmail.com, "Vishal Moola (Oracle)" <vishal.moola@gmail.com> Subject: [PATCH v2 0/5] Some khugepaged folio conversions Date: Wed, 18 Oct 2023 13:32:08 -0700 Message-Id: <20231018203213.50224-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: <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 (fry.vger.email [0.0.0.0]); Wed, 18 Oct 2023 13:33:31 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780126840665271486 X-GMAIL-MSGID: 1780126840665271486 |
Series |
Some khugepaged folio conversions
|
|
Message
Vishal Moola
Oct. 18, 2023, 8:32 p.m. UTC
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. --- v2: Remove last caller of count_memcg_page_event() Stop using the folio_estimated_sharers() heuristic for tail page sharer estimation 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 include/linux/memcontrol.h | 14 ---- mm/khugepaged.c | 135 ++++++++++++++++++------------------- 2 files changed, 66 insertions(+), 83 deletions(-)