From patchwork Wed Dec 7 00:21:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 2691 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3129425wrr; Tue, 6 Dec 2022 16:31:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf554ApaSNvAvR6aVnzNUUARfs02FmWXkGJ6bWviAFl5DSd6WmQvFleYW9DuRIqKPFTf1TXx X-Received: by 2002:a17:902:9006:b0:172:d410:2a91 with SMTP id a6-20020a170902900600b00172d4102a91mr74255755plp.30.1670373060194; Tue, 06 Dec 2022 16:31:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670373060; cv=none; d=google.com; s=arc-20160816; b=WlfKXExrbsWamXyotw3Z0hbhG0q1yBKrI7MYQ4Oyy/ZVLTHorTlWTYlMo71h/+oLmR z/k9wp9y6l+OdvC6jzGJgRr9pn2akm3Z+1Nc1wzhreZkiCNngHUl69HFU7sXssqM2VoX 38cI8ts/qfo3cvRWOUzsCPRbhHrO0fqNMMxQ7aH61XPo0C1nLgS4Bqs2xCz8qSI01JNg U0VaZyubxl2I2MKCG3tVQhEXvIaxVLLaXC/WQgmrcj5SJrK59cXNIpDYx6ILXWIirJdT v+zXsIC+lSBrDm0HsYJtPjLB3KkoTvv7uRR/G1QRr5N1G93yv4d0mj54mWrUGybY4ywM yIdQ== 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=z7lC7jlSvTqXo19/2/T5KkOA5f3nGD9WS088sLB+XjE=; b=oSYxvRsxJPwIruFsE1Ap8Crkh4wti5Z/hIqweiczBwdh7beOMGec0ntDBfbalLtsS7 gkQCUyFMn8nanHkqJ4xvAH24CFyG8Wv/CiWQpsHklvT7i0P8UzmG8IFPxiBupFkdZRLz YsA/omNlnDC8Tem/hcIkaV46p8qEsf/qQ86Roq0o3B5W0gBBEs9RGvtxCydUVC+42YuJ ooy9wKoGQ5eP8KHl6Jf4j/Fh3OulyrrGCXzJ7YQQu8ieJRXT5r7N502E2sV6aWRkA0gz 21bJWeguEgI6DVa3Vt0PKkNXE33HU1uLid14s3qOJjSgYQ+tTPS4LmSjGUnm5MWv6OLB 3ffA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UXS4sbGR; 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 t69-20020a638148000000b00438ce28758csi8077355pgd.136.2022.12.06.16.30.21; Tue, 06 Dec 2022 16:31:00 -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=UXS4sbGR; 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 S229609AbiLGAWR (ORCPT + 99 others); Tue, 6 Dec 2022 19:22:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbiLGAWM (ORCPT ); Tue, 6 Dec 2022 19:22:12 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5310C4C27D for ; Tue, 6 Dec 2022 16:22:10 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id k7so15543232pll.6 for ; Tue, 06 Dec 2022 16:22:10 -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=z7lC7jlSvTqXo19/2/T5KkOA5f3nGD9WS088sLB+XjE=; b=UXS4sbGRHT2e9Ver1b4tiyqfrLxdn6Ag3POCRrJqT382zI7se7rl4hJrM2DsFIkoXV yxD0v+yf6FMQ2H/3YaDW1xsoNQ7hnsIBvLVMBX5If6Lrsk4OXCIqFHO7ZrmbXcd005Ip jhfM/qhJ+Tlx44J7oBWSmkXyPFf5FpmnYnMgyB+0AAN4F7z8LSGLhAIc2akKouqF2927 IFP9v43gNWgaKgQgx+NcpaU4xpVzx3G/FuO9ZHyddwtnjBRI438gilUsgvzPX2NeZnm/ A/NdJNSt4qBU3x32XILuU5yDrA9j6ksOTf1bFDxZaYcHYQ5S76Bvx0zWkYrfnmwrOqH8 sIUA== 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=z7lC7jlSvTqXo19/2/T5KkOA5f3nGD9WS088sLB+XjE=; b=Fug9On805Oc6W5gUNzg3QvqGk/ErlgwcveRgWyjZK87Po44449X5vESgc30Sb97e5M xxiojX8ECxdJVp7uG427TsNgTwaAp4rlJWtmMvH5wyxAwlHZR58yOAW2txv83NNSmyA5 0suoig+qGm6jVBFju1btxYTBp+RkuVDzu42sUQoP6c24/f7DFolcrcMUMmOOoJfpDd5O B1+YO0TCC7zeapA0/1dDHaqbRinoK+8Pld1reaa/qJMQzjXi25UipQUebWHrBEuSoDWD i9VgPro16Wy5jjg/gtXZccJSQAOoNmqJSl27bOdEIupK7lYKHe3L8ZiOWlsjXjwL+VHD ToNg== X-Gm-Message-State: ANoB5ple7PFQOPVbciZPQFohFbiK3vIyb+YRMjpne0IRTCZOoEIWlIZS MViebQJGLSEGSipMCPDjjDYaP6sA5MI= X-Received: by 2002:a17:90a:5d08:b0:218:770c:9a40 with SMTP id s8-20020a17090a5d0800b00218770c9a40mr80245124pji.158.1670372529672; Tue, 06 Dec 2022 16:22:09 -0800 (PST) Received: from fedora.hsd1.ca.comcast.net ([2601:644:8002:1c20::2c6b]) by smtp.googlemail.com with ESMTPSA id i92-20020a17090a3de500b00218ec4ff0d4sm13369459pjc.6.2022.12.06.16.22.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 16:22:09 -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 0/3] Convert deactivate_page() to deactivate_folio() Date: Tue, 6 Dec 2022 16:21:55 -0800 Message-Id: <20221207002158.418789-1-vishal.moola@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751513102231754050?= X-GMAIL-MSGID: =?utf-8?q?1751513102231754050?= Deactivate_page() has already been converted to use folios. This patch series modifies the callers of deactivate_page() to use folios as well so that deactivate_page() can take in a folio instead. Vishal Moola (Oracle) (3): madvise: Convert madvise_cold_or_pageout_pte_range() to use folios damon: Convert damon_pa_mark_accessed_or_deactivate() to use folios swap: Convert deactivate_page() to deactivate_folio() 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(-)