Message ID | 20221207230152.22938-1-vishal.moola@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447140wrr; Wed, 7 Dec 2022 15:02:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf6zI6NI3a4eDsAw9l425QcZqAliEfWHkeB+2DZGQlolETBNemgfBz4B2N0GJvV0AzOs0Vaa X-Received: by 2002:a17:902:f646:b0:189:3eb7:1c86 with SMTP id m6-20020a170902f64600b001893eb71c86mr74413176plg.53.1670454173324; Wed, 07 Dec 2022 15:02:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670454173; cv=none; d=google.com; s=arc-20160816; b=OTl8mLrXFxOp3+VC6Kfd5UpODBySn2Y4ec7yyRWwiLed+CJ5M5CdYNXlB3VJw2W0D4 V/iV4SNQOpAezgG+Kw+o0W7xV6dOYFy2+jxbeVHNJtio2cD82te+3SVd2pxcjjZDgqlf Sbck9v1uZRvlnrZBfmE5ON+hzf+WQBd5hFod2C+EBbouhfJaDml7X6evfdoThQzIZlBt BnzAoGc3kM0qMKVP5PcUIrtuZy3qYqH21kQ2IVF5A54L4vIcbRNiJd77LrwsNbsxblmS JSy5gVNpGh6uSuW4c9diIgvA1TuSov7oC5/OW4M46ElXA2mQMGElhlNliW51RfaSGRYC glfg== 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=/M7aDOH/qGCjs9lVwYHlVEwpsAApNAGVOZKD3ahzUuQ=; b=vH2e0mcxsqu0mwpoWRjMI37fzwhK023UaYCa7DxbiDK/cOhIUcd/c5Y4JAoKl/qCii CcG2eHeaTHfLkQcQ5UNA78R2PYUIVApR6aouBadB2CtublL0d3APhxBBwhYOIHlSf5Ab OaaCCfW1XEh+QplxFF2VAACtCg9LAgWk7vs1/DSrTK7wNwSK1o9nfkM/zXplxRN1EQSQ ntyHnpW6P5bgzzDQga7wsMsUUd422SXU3Vbk859YIUVwceUlLL8whQZe1mO4vYJrr0Dc Iu2OEcdLzaPPVO2ENudrnhbKaPYwWHfIyIdcVaLDmpn2IReUcECmIEvSWT8lI4AhYmtT ggsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NOZ9lRCA; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z10-20020a1709027e8a00b00189bae9d928si15616117pla.162.2022.12.07.15.02.19; Wed, 07 Dec 2022 15:02:53 -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=NOZ9lRCA; 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 S229948AbiLGXCE (ORCPT <rfc822;foxyelen666@gmail.com> + 99 others); Wed, 7 Dec 2022 18:02:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229992AbiLGXB6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 7 Dec 2022 18:01:58 -0500 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 180093D900 for <linux-kernel@vger.kernel.org>; Wed, 7 Dec 2022 15:01:57 -0800 (PST) Received: by mail-pl1-x62e.google.com with SMTP id 4so18508864pli.0 for <linux-kernel@vger.kernel.org>; Wed, 07 Dec 2022 15:01:57 -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=/M7aDOH/qGCjs9lVwYHlVEwpsAApNAGVOZKD3ahzUuQ=; b=NOZ9lRCAQZP8wewc5DewcyWHlye7Pd1FmMImEx2GCbB+gZkla2ba5JURxFy6LaQnj9 QRy1Jh6VQHRInet+vF3UptPq7mT6aCspNbCfXqtFiEWpgTk/jyYUoUF09jz9cOdOu/KG ql72FNYp+LJy97RhxhvASR5P1cNDr2aw3JDkb98OT0QZmQ6uKSA3H4v1PpsmOB2zcMBi FkwoYUb64Viv6SHIZFiwSI9YSuCiKOvK9Z1Z3HnAI59cqcWdGBd26gRi6Ssr8XUukIwC Qs+k0N/LMU9+OSMQBrj0o9AxDbRoy8fMqfIFYF2uQPPKZ5llIqtCyw8rw073UUQjAPPE ABJQ== 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=/M7aDOH/qGCjs9lVwYHlVEwpsAApNAGVOZKD3ahzUuQ=; b=Q1fZ3kpTUIGF97l8KKO2AYtIAccm/7LY/oEiaq0GgA6tXwJax59k4zC0kjmJUkarnW 9RU4nRQkm8/+pmScATvKuYIC3nl4yzOzXhs863As/YVQTVr+eppsITdYgEVt1kn41B69 +Ut+565lU1k5meingsak+aGHsiKjdkuM5Qeq6U0OTL5SqHpWUgaiDkJ+39peAZRNNxbX AVmXJ1Kg65Gu9wGMMLTsmAIGzUHjVWD1KmU+B1JiPe9vmdQv80TqFP7CFnyEXfq9olGR u3aGPmzehbrwlbl4CWQS5AKsdcWB1VkIOWBd1O+IhqxOA3SjOxJOA76PWXmTdLQarql6 E7bg== X-Gm-Message-State: ANoB5pkeaUX1/l5hJmpfmG0M7KjBIDr3yUjy4eu19ximG9kCknRw/HVE TNkHUZVOPFe0qeFTgRtnpXg= X-Received: by 2002:a17:90a:5184:b0:219:b79d:c2f4 with SMTP id u4-20020a17090a518400b00219b79dc2f4mr1145859pjh.18.1670454116513; Wed, 07 Dec 2022 15:01:56 -0800 (PST) Received: from fedora.hsd1.ca.comcast.net ([2601:644:8002:1c20::2c6b]) by smtp.googlemail.com with ESMTPSA id pc16-20020a17090b3b9000b00212cf2fe8c3sm5411033pjb.1.2022.12.07.15.01.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 15:01:56 -0800 (PST) From: "Vishal Moola (Oracle)" <vishal.moola@gmail.com> 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)" <vishal.moola@gmail.com> Subject: [PATCH v2 0/3] Convert deactivate_page() to deactivate_folio() Date: Wed, 7 Dec 2022 15:01:49 -0800 Message-Id: <20221207230152.22938-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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751598155287157485?= X-GMAIL-MSGID: =?utf-8?q?1751598155287157485?= |
Series |
Convert deactivate_page() to deactivate_folio()
|
|
Message
Vishal Moola
Dec. 7, 2022, 11:01 p.m. UTC
Deactivate_page() has already been converted to use folios. This patch series modifies the callers of deactivate_page() to use folios. It also converts deactivate_page() to folio_deactivate() which takes in a folio. --- v2: Fix a compilation issue Some minor rewording of comments/descriptions Vishal Moola (Oracle) (3): 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/swap.h | 2 +- mm/damon/paddr.c | 11 ++++-- mm/madvise.c | 88 ++++++++++++++++++++++---------------------- mm/swap.c | 14 +++---- 4 files changed, 59 insertions(+), 56 deletions(-)