Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1611881rwb; Thu, 8 Dec 2022 12:58:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf4G50GqND9EyZ8pF+M/1bNS903JlzSbYbG2N66pR5KyDxE9MiQ+mEB8uRZf1l7bieNKdA69 X-Received: by 2002:aa7:db47:0:b0:46b:1ed0:2702 with SMTP id n7-20020aa7db47000000b0046b1ed02702mr41664892edt.177.1670533096736; Thu, 08 Dec 2022 12:58:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670533096; cv=none; d=google.com; s=arc-20160816; b=VtMPPvSlmhNPm7db4FQs2Vup+/9+M+TQmzca90djLtL7QBvg6FqcrGqG+z3HEfVYyv NKDFTCnrj6sjQwNtEVOzZwuBD6jqVMVA61IEhpXMWpduekbwqZJSCvWBppJCsynQaQxo QzsTvt+rUJ8bOn2Xyt97IQF3259UeT/7OMirkAfS6AnBtDeRCWp0Vb9aOkDkWRxTnr4s YpyBq9rCGew4oFckWhJK/k1uc9Yu/MIl1HBfJuL7H3x0oyfQDuotut2GgnT4cOiCF3WM Qdp4/bx7LZVHytuTXqmnn55cYAk4FlV4WAbowjJjUZf6Vvk0LtQpZ6kTdPNZVOBlfJIn T9dw== 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=pxoZSb+LSg2Sr/OdadIfRMcj1fpcuMZctN0ht3p2zD4=; b=Hy+dnXXD4sjYoimqfOGNz317f8hgkxT9NYAFDuPWqNLZZz0rFMK/KychNdckA7eiTr j7ZcPAeX19WKXCjA1n7rr6QKTa/f8EMBnhEHZzxY+nVweq73Zdn3YD86btipCq3lPPoH QaEZlf0YAjUi5tHrIzS3VJyDOipubnPLQGdC4bneUCA6kdAyShSj8c+vecrhjx68Qe33 Miy6I1SuTNnTqJ39GS+EexGqsn+SuQqhIrZkJglqy4VzSd8MwGqiup6cYedGpy/rlBjK 1iAn1qbqgtp7RL/4xkkhrK/Icne0pw6/W/t7sFgaw+WCTPbRPB7Qj2bhbGYrgZ1IPtZA JZkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VwCLLnMe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a05640205c800b00461d2ed78afsi8348530edx.563.2022.12.08.12.57.59; Thu, 08 Dec 2022 12:58:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VwCLLnMe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229997AbiLHUfK (ORCPT + 73 others); Thu, 8 Dec 2022 15:35:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbiLHUfI (ORCPT ); Thu, 8 Dec 2022 15:35:08 -0500 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CC848566C for ; Thu, 8 Dec 2022 12:35:07 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id 3-20020a17090a098300b00219041dcbe9so2733962pjo.3 for ; Thu, 08 Dec 2022 12:35:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pxoZSb+LSg2Sr/OdadIfRMcj1fpcuMZctN0ht3p2zD4=; b=VwCLLnMeB3k+m93uzv1eq29GbH6lHGER8I1wurF0B4Ax5fHnR3DiQNpHMpGfvnQfDu nZmLmXIyRUnA3l2X/+56gt3ZWzqD9PYZjPg1KXKw6WQma7pTMKUxQinuq+mdDLgBkGkC WXAqILax3018nRSDwH4AurHrjYoJUmirxagXs3LOXrnSe8Oh81i+WL8IELBXBUnBxyVB qABu4Lt3o4Izbyi/FqvcONlR5+wY2gSQiveHWVQHRZIfAHROSQ/kr3nHXUL8/bR+TjxD Sy0Kv5Vt3kDsNE4EIrEzNiQWYtTJ8i+k8vZzt/6gKS5hCKt6zCJ338IdAS7JR2e1PjWH sRQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=pxoZSb+LSg2Sr/OdadIfRMcj1fpcuMZctN0ht3p2zD4=; b=h3i/QOLdocF7f/egTAU3Sxaj7ToTUQKFg/hoB8Q2EOfhFQ49Wk8GnKW7fP8P/wVR7v SOlaKGuTn0PxDWvhSB4aMmDG37ueA9JOhm3tTCblcxCz1UdCe+lpTL8nFb4FBQOZUrTw ABPDdRp2MslHCGczcJna1BP6YHgSDbMCxdymUPhfPskaUFpGLdwOCTaGTibIRmAUCUGC lDL6fZBNymOhlKnNTJMIH2FBynbX6mUM9taa+BRpw0ocifvPvfDMFRmBVHoesF+iECU3 hcPkEAZPVZswco0VwSa2kfnSNSluFm/21IK9yslpHTJhgS9Vr038iX7U8FmCFEXZ3JCD 2sgA== X-Gm-Message-State: ANoB5pn+HId2pFE4COyhcqzspLXDjZdU3itVW9kGfU/UP+4M+pkxT140 mlV/z0+k4TiyX75clVoFWYHZxu7zEJs= X-Received: by 2002:a17:902:c94d:b0:189:b36a:5448 with SMTP id i13-20020a170902c94d00b00189b36a5448mr4682294pla.44.1670531706836; Thu, 08 Dec 2022 12:35:06 -0800 (PST) Received: from fedora.hsd1.ca.comcast.net ([2601:644:8002:1c20::2c6b]) by smtp.googlemail.com with ESMTPSA id f5-20020a170902860500b00189951514c4sm16954349plo.206.2022.12.08.12.35.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 12:35:06 -0800 (PST) From: "Vishal Moola (Oracle)" To: linux-mm@kvack.org Cc: damon@lists.linux.dev, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, sj@kernel.org, "Vishal Moola (Oracle)" Subject: [PATCH v3 0/4] Convert deactivate_page() to folio_deactivate() Date: Thu, 8 Dec 2022 12:34:59 -0800 Message-Id: <20221208203503.20665-1-vishal.moola@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Deactivate_page() has already been converted to use folios. This patch series modifies the callers of deactivate_page() to use folios. It also introduces vm_normal_folio() to assist with folio conversions, and converts deactivate_page() to folio_deactivate() which takes in a folio. --- v3: Introduce vm_normal_folio() wrapper function to return a folio Fix madvise missing folio_mapcount() v2: Fix a compilation issue Some minor rewording of comments/descriptions Vishal Moola (Oracle) (4): mm/memory: Add vm_normal_folio() madvise: Convert madvise_cold_or_pageout_pte_range() to use folios mm/damon: Convert damon_pa_mark_accessed_or_deactivate() to use folios mm/swap: Convert deactivate_page() to folio_deactivate() include/linux/mm.h | 2 + include/linux/swap.h | 2 +- mm/damon/paddr.c | 11 ++++-- mm/madvise.c | 92 ++++++++++++++++++++++---------------------- mm/memory.c | 10 +++++ mm/swap.c | 14 +++---- 6 files changed, 72 insertions(+), 59 deletions(-) -- 2.38.1