Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1213661rdb; Fri, 20 Oct 2023 11:34:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHofO1YbQ0y+kVlhRy6EH0LsWo6gO5OOvLOAnd8fgcAUxtH8pyt+tc9bQLXmX4URnHkRLoz X-Received: by 2002:a17:90b:4f8e:b0:25e:a8ab:9157 with SMTP id qe14-20020a17090b4f8e00b0025ea8ab9157mr2455654pjb.22.1697826846046; Fri, 20 Oct 2023 11:34:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697826846; cv=none; d=google.com; s=arc-20160816; b=JtUP8s/nULL4dfyqeh46tGR1krrpImbErwwKrzfhRXo8/ygElY9SkfUm+5AXSZdcwV KylPjknzi7hrXU1cwbFRDuKbhZd+5wuH0kPp+qWNzuAwPFT22IxT5GMJQQidXisd5TU3 MMwHKEFlmUhC0a87LNVZlEzN2Wpe4PHehBArCz5iVdbI2Iw81TTolLCpQq/5ySIdN6r+ biLYW8LB7vuQ7nMoBirpfp9oqxUTrr9Fu3oxvwcqqF2ITSASEFSt7tZN724fTYgnXGyK WGLknfH6WJfAzJ9qE1pJkUPObYvTvKjqzxIFCPQqOUx3xd/hJ2dQtxJ3XDC90mtcwcpN FABw== 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=EcCoCnk9B62V6W1dXZGbI6iky0FmIyOXScS0LvYk/mI=; fh=7/CAuSL69czuKxmprrQ2LqZp7RdmRmfdoO9Rvi8OHzQ=; b=fEwUQSdrep8QJJxsde6GraK8UwcF/Q+PZHLqvXlC/jx+VZmJXFYXyAcc3j9/9Nae4k rnR1Es+q1a7M657jyvT744ejtDkGJTcIMUA2ZjlxInep7xgxy1/5xMSnlJkqUMb08/VU TlruEqKRZku1l+yldaOje0771Vu/W/Cg1N2kCQxrICJObAMxZQxQhzZFN1AbRBwGllsz u7mgHskfleMx4NxVgzQW6GVHA09DcD3O9HZ1uZZNtNe+PfoOD25UThADK9RimY8jNlLK Wqb4vNEJ0fET1ql9OFqAzREA7AysKEnM5bZZ/OWvGG9Vba7/d3D5Qs6553HxZIf44Ce0 d+2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PC4oRf2Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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. [23.128.96.38]) by mx.google.com with ESMTPS id h7-20020a17090adb8700b0027da14d1513si2278480pjv.124.2023.10.20.11.34.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 11:34:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PC4oRf2Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 9C23A81E9F76; Fri, 20 Oct 2023 11:33:59 -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 S229646AbjJTSdp (ORCPT + 99 others); Fri, 20 Oct 2023 14:33:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbjJTSdo (ORCPT ); Fri, 20 Oct 2023 14:33:44 -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 7A164D55 for ; Fri, 20 Oct 2023 11:33:43 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-5ad5178d1bfso834619a12.2 for ; Fri, 20 Oct 2023 11:33:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697826823; x=1698431623; 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=EcCoCnk9B62V6W1dXZGbI6iky0FmIyOXScS0LvYk/mI=; b=PC4oRf2Q/HgIoOlK5c6fHLiowOgOimF3PzRTDrj7FXKIC6von0mFLjEv3IQDNGiK+Y c/AwR9SRa1uhwxgi7/HQUBX+IM/lZagfcxY8KCPaysma9PO4uxjgpDVHShTxhKWshcUa emKqZVauZQlYy1T59ohwEWC36iAyJM1RSRuE2CQtrSd0bRHjT+kyUsp42YGatDSqJkyz vXP+wQGXW2mXfNxGJ93kmhFFIADp2x8sgh00c9KKJPwDSJln4kiqkc1uLavMy7QJgEoO qA/Em2BrD2172zbXuX2EsCNEm/PSnG0arLYRRQ2KUByoH70IwyocMDxh0UAtgKYsEAdk L7CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697826823; x=1698431623; 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=EcCoCnk9B62V6W1dXZGbI6iky0FmIyOXScS0LvYk/mI=; b=BJggkK8C54UbHMSa9e8brygMXcbwYM89Yq+WzQhBOZhK3KSPPGN4oB6SQHC8thYf7G p+FVOICSQWXtDYfxo0PVsRP66kHvRmNQAW0sCg+x0XBqtZah2Vad8sYYp2uuvGIe78ki 1vzGi8hXhEXInbyvwT5zbIHkQmFNynzp8JIKcxL2zgcNWf/9LbnRq4vRRO6hi1DPcbeW Huw8ktxosYSXRdrFH5gH91IaQ6sCO/0sek5OimxTn8jycbzOEJgMxn/9F5QOJ8gUJNLj HJGHmh0xjcAcuQxpgFiugywtrm3Oejx2E1kdTy+1UJDf0594rNHHTbWbmmjK77b74Dui rrhA== X-Gm-Message-State: AOJu0YzSbq5PZhr9ou0TMyW08IS8O/Q6UPRjOENxKcsmaX06YbJYIIbr 7SS1PiFVXeoW7Y0IBRo5/AppQ5hLN84= X-Received: by 2002:a05:6a20:4326:b0:179:f79e:8615 with SMTP id h38-20020a056a20432600b00179f79e8615mr2802657pzk.52.1697826822724; Fri, 20 Oct 2023 11:33:42 -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 z14-20020aa7990e000000b006b4ac8885b4sm1911345pff.14.2023.10.20.11.33.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 11:33:42 -0700 (PDT) From: "Vishal Moola (Oracle)" To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, "Vishal Moola (Oracle)" Subject: [PATCH v3 0/5] Some khugepaged folio conversions Date: Fri, 20 Oct 2023 11:33:26 -0700 Message-Id: <20231020183331.10770-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]); Fri, 20 Oct 2023 11:33:59 -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. --- v3: Address filemap_lock_folio() returning ERR_PTR Fix uninitialized variable warning Some minor rewording 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 | 137 ++++++++++++++++++------------------- 2 files changed, 68 insertions(+), 83 deletions(-) -- 2.40.1