Message ID | 20221221180848.20774-1-vishal.moola@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp3670490wrn; Wed, 21 Dec 2022 10:13:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXuMaHdNf1qhLAR2iIMDZlRPQZ+USH1k3v4DFYPB/a4/H4L/vxwEq3NBcWdgnlTsD7/Qt5C0 X-Received: by 2002:a05:6402:7ca:b0:470:4b78:992c with SMTP id u10-20020a05640207ca00b004704b78992cmr2333240edy.39.1671646438686; Wed, 21 Dec 2022 10:13:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671646438; cv=none; d=google.com; s=arc-20160816; b=lvaazaUaCLEroBwxNQXUgagBj5i9x+NkAcdcCIh3/C117zRFzMEbP1WCJPlId9qFG+ p67TGvMgrvyCEVbuX8B1cwd6wIOpSSmGsBPF4j8Ksb3Ufr9jDPgZTS4fKXmBkAp7fMRT o8R4IeVfW73KqKJj37KDtGmS0PChGrBEZUcm2LPf1NTqEwht8XhmbENZ8XfPV8DMeUAk c1ginQJn8QQwV5o77qxzit7eVOA5a6SCUFW/YBq0O0GB4q+1WC/pwEJfCo6FSAlyICvv kfL53rX8Fk3viS77+i81PqZ0sCJY/nCgSz0+3ySLDznOvyagiyMSjzzJMJm6bDoI6nzH Cm6A== 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=yca21srt3jfSdwv9cmVTSEKRbmKmeVKwhiy24VVJrgk=; b=Ne9dFiLD6vPuBgO9IcCzn33WlcMfWzs3GDNBCGq79zU1DVeXHVqz6kZUrdzlpX+I6t wg2DVuCt9HAUZb/xISSMMDf8t85xeTjrSMshqw51mLU2VpXjV5UEHYML/oKpLZiNH2S1 +t8ikUABzssO0vQBVCtSnLAJP42koKHl4hyzTJ+X23V/c9bqa9fuVgdi0lV1sX2qaLe9 DHXrCgJx+wVTseyjY1pt5I7MoYAQBhNXRYgaqHoA+Qu95XnNAOsK4AM9+5HT7pwz6DSO +M/KicJuJWW0mbfA6iNslCAkFuORkSomddmlm9Ea5rMYPdsciVTYLCEaRvgs6OQ9lvLV EBlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DSJOlh0H; 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 sy14-20020a1709076f0e00b007c16913a41asi13611305ejc.721.2022.12.21.10.13.31; Wed, 21 Dec 2022 10:13:58 -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=DSJOlh0H; 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 S234296AbiLUSKC (ORCPT <rfc822;pacteraone@gmail.com> + 99 others); Wed, 21 Dec 2022 13:10:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbiLUSKA (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 21 Dec 2022 13:10:00 -0500 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A84D252AF for <linux-kernel@vger.kernel.org>; Wed, 21 Dec 2022 10:09:58 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id m4so16309313pls.4 for <linux-kernel@vger.kernel.org>; Wed, 21 Dec 2022 10:09:58 -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=yca21srt3jfSdwv9cmVTSEKRbmKmeVKwhiy24VVJrgk=; b=DSJOlh0H6jO1fPraClFL4H/mt/WnSL5eSOkqRML/zohANW9YASclvvRuLArC7LygE3 69S5K4eBQ++zsHnSyQ2gSimwzS8WGl+A2n4pxh15QxZkW7QoqX1n7ZPNCn73roGCVPLY CQHjdyeuniToYJ8i0ndIZVvqJ8GQo8YNHba6+zrTEQTmv1n0sSdekDXmzlYzAFZFqhZ0 SaZxNuSh3D7Ez4dVAorCB3m4HmUxUJKkB9U9AZ/n9a3GIktg1oHRi2rsKDRyyp+US4Kp oZWAgjNMowWJn4ge84VDkrM0ANapRf08CxpHxldzmZQz0b5OGD7KSc70oXXX688ZWPRt 4uPg== 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=yca21srt3jfSdwv9cmVTSEKRbmKmeVKwhiy24VVJrgk=; b=Xzgxv9anigNtilPSICIFw4tg2nxNieP9hEbGw3qXkNH8nzTxXxctG4PY5347ICjQVG Fiq/MxnpCF3aPOz1xxNKLponrZ5yMWnqX+kqOjJQPmo75RtaVZm9c4PwfZMZg7I2Mw3Y g3AwDRZKs3JdJFvIhSRY5ufO0h4RTqjad8Wt96x9MbS4YQ4MP9Pl27LuN8FW80g/Td1a +Z/Ax8cvAPIvDq5da8XxxTyKKMT2anoQXGUpvpgA652q14dkifbLN4gExCDiSDGIkCZ2 EcS33GnB0DNVm5zN/WT9srltksMmH5ZFNqb2ONuzG/gJ3JeuxhZoTFpNfcTSr3cU6u47 LKLg== X-Gm-Message-State: AFqh2kogcNOd5jjOwrFml6bZiD03zbhEEurFXSRYLWnHyUVsneretn/C +jFCAKCrd4eWkjNw/WJffWSjse0rz9gAQQ== X-Received: by 2002:a05:6a21:1709:b0:ac:5671:adfa with SMTP id nv9-20020a056a21170900b000ac5671adfamr20123978pzb.18.1671646197796; Wed, 21 Dec 2022 10:09:57 -0800 (PST) Received: from fedora.hsd1.ca.comcast.net ([2601:644:8002:1c20::a55d]) by smtp.googlemail.com with ESMTPSA id e26-20020a63745a000000b00477bfac06b7sm10110732pgn.34.2022.12.21.10.09.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Dec 2022 10:09:57 -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, willy@infradead.org, "Vishal Moola (Oracle)" <vishal.moola@gmail.com> Subject: [PATCH v4 0/4] Convert deactivate_page() to folio_deactivate() Date: Wed, 21 Dec 2022 10:08:44 -0800 Message-Id: <20221221180848.20774-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?1752848336125017887?= X-GMAIL-MSGID: =?utf-8?q?1752848336125017887?= |
Series |
Convert deactivate_page() to folio_deactivate()
|
|
Message
Vishal Moola
Dec. 21, 2022, 6:08 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 introduces vm_normal_folio() to assist with folio conversions, and converts deactivate_page() to folio_deactivate() which takes in a folio. --- v4: Rebased onto latest mm-unstable - fixes madvise and damon conflicts 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 | 14 ++++--- mm/madvise.c | 98 ++++++++++++++++++++++---------------------- mm/memory.c | 10 +++++ mm/swap.c | 14 +++---- 6 files changed, 76 insertions(+), 64 deletions(-)