From patchwork Wed Feb 14 20:20:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sidhartha Kumar X-Patchwork-Id: 13556999 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5174EC48BC3 for ; Wed, 14 Feb 2024 20:21:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B48238D0014; Wed, 14 Feb 2024 15:21:19 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A9C8B8D0001; Wed, 14 Feb 2024 15:21:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8A2828D0014; Wed, 14 Feb 2024 15:21:19 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 68F698D0001 for ; Wed, 14 Feb 2024 15:21:19 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 11DF3160205 for ; Wed, 14 Feb 2024 20:21:19 +0000 (UTC) X-FDA: 81791529078.11.B8138A3 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf05.hostedemail.com (Postfix) with ESMTP id CE9B8100017 for ; Wed, 14 Feb 2024 20:21:15 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=SnwHes7Q; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=TH9y25vW; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf05.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1707942075; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=OrEwVc3/5igvRGFQMEeEiZLizeV2rUT03o22AZOfzys=; b=HwxJcNmpMuj8ahFBmaWbxmZbVX+vRkZ5l+kLUjXtiuFzcYGCGYhw+CyV3H+eYWMZ5XRMA7 v27Uf9ZJ7FKa9mIqnjgSvcRAIcZdfP2dY5Th1ymr7hMrmqMSrXOHw/7YdnQl501ASsUDql uEX6F7Hfv/YRKRx1axgr/Vb8GDmT+sw= ARC-Authentication-Results: i=2; imf05.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=SnwHes7Q; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=TH9y25vW; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf05.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1707942075; a=rsa-sha256; cv=pass; b=NEREfXlNwg+GHYqC8/DWL3tW6e1oZLpC4FMhmoa4ZjnRmg59UsTmfo7kVqZT/2C3f5kTU4 x6bNSVhZMrTzo/RepXadVWx/rAIwCyN0G2//UL3wALd1qs3u/qdU54IWs0Xv1DN2WhITT4 7GXo1fwRgR00YVCp7oMBPHrwn7ApiUE= Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 41EIdr6v010794; Wed, 14 Feb 2024 20:21:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-11-20; bh=OrEwVc3/5igvRGFQMEeEiZLizeV2rUT03o22AZOfzys=; b=SnwHes7QOY+xImG9nvJ68jnkOU5xVLwwtEVvQOWjUU8cEMIfMXUcmbOCxdjbr972n6Qd 54HeY6FtNpOP6r/hqhMPHoOTjoEZ7iEPUiIHVulhQ6wjutGzMeG2D6Tsu+sXevqbq/u1 sHXPcZInV0YquTZa2XaP71uW4YsVukZdH9ovYyoBxZWO5GcNJn5H6Mk7oLqgpUgi8EkD PCYMTkSYvrLq6hLJY+dCYVqcW6QqNq98l7cqxMVXUCmGxm3X58W62u5m23QB0GpoiotT KFAnVOO6G/BbSHP1lxrOeG9Ssl7Rwy5pqIowWsJmFHAo5V+lLhKVG08c35BoAcN7Rldq tg== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3w930106wh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Feb 2024 20:21:11 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 41EK3ltw014951; Wed, 14 Feb 2024 20:21:10 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2040.outbound.protection.outlook.com [104.47.66.40]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3w5yk96xxj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Feb 2024 20:21:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YhsR36JUmQklWc945AwpdIuOyQIusVeDsIv+mbJODgQULJgJsmkdqeKHklvtUabs0iTKydaDEirYV+jTWVJwQyxKUJkU7BaOOHNnhNTNs+bcHgpnPMgF7z0eZdVO9sZ5p/8tLBUbRxsKqiHvYK/5XTt+N4chlirQS1UEVGKoBeqfoVPbVzP0L2+4iI+f61g6yvIIvACzehW64j/1CV8FwuwtjnS6yZltOF5DOOblpzdTvphnAK5IsG1lmaNfjp+p5BGgZQx7fAmM3GFSmdi3fJFb66QYG7Vd79rQbsGwX8yboyzx1RvissPsrMMAqkGKkgT9FVyEbhhOyXjPjVHh6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OrEwVc3/5igvRGFQMEeEiZLizeV2rUT03o22AZOfzys=; b=XnToPMfI1tX4Y2G7hGWotZK/+71Lv9uZMs2HqQSS2ieEM8MOcR8aMndwUkY0IaLHmAqM30RowZEv1+H4Kb8xPGE+DMfT2/RjwDIRv08UGjLvH5Qgx1v0uXdY9VkSWJ/aTav3UPyInm0wL57mbJlYuDGscJBLGnH2YpTw6/KSqGpJkkySTengRaBC2FtOq/xAeiHIxI22nfCW941kz6aMkGdNhJNW/Ucw3UqodndlaeGZ/5mmSrYTrxzyK3vMMqsCa/PlJ8VV+2UeVWssL5rlts9Y/cvPB8RgCNL0CHO/sJnZsyak4P3nGhYHu+Yyrk6rbGthXOjCXvI/CGcefxKWIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OrEwVc3/5igvRGFQMEeEiZLizeV2rUT03o22AZOfzys=; b=TH9y25vWuAg2qSeJpc1sfza7M7gc5UjO6ubKuqCNPJTdbJ9Xy2k8AZ5EHeurvlB00yIv3U1AnCnRkABFBs5DJdHgV13Q6XsTuPJjZUOHfdBcus3dLAAbEhiRm9ZDIUzC8iaOCnsrSEM+eeSTWQOH4ByGo538kUSPYB0C8zQ9qhk= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by LV3PR10MB7963.namprd10.prod.outlook.com (2603:10b6:408:20e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.37; Wed, 14 Feb 2024 20:21:08 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::7eeb:3b3e:601:2e14]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::7eeb:3b3e:601:2e14%3]) with mapi id 15.20.7292.026; Wed, 14 Feb 2024 20:21:08 +0000 From: Sidhartha Kumar To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: akpm@linux-foundation.org, willy@infradead.org, Sidhartha Kumar Subject: [PATCH 2/2] mm/migrate_device: further convert migrate_device_finalize() to folios Date: Wed, 14 Feb 2024 12:20:55 -0800 Message-ID: <20240214202055.77776-2-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240214202055.77776-1-sidhartha.kumar@oracle.com> References: <20240214202055.77776-1-sidhartha.kumar@oracle.com> X-ClientProxiedBy: PH8PR02CA0021.namprd02.prod.outlook.com (2603:10b6:510:2d0::28) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|LV3PR10MB7963:EE_ X-MS-Office365-Filtering-Correlation-Id: 51ffefb8-fc62-4b58-e20a-08dc2d9a7a98 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pmOry6r2hCYzR+9lY9c+L7xRU1PS20Y7Usk5J+CNvxR52+BgWuOmGMI4t2z1pk/Zjdhc9XyMbJt9OicAe9tGV6r7D7Ofh/JxP24Fm1+bFQygS/snn0+sE+QLclHzcBvnGi44bguJdKcdg9nG/F29dde6jZMgJl+X4vDUgb6lKoGbL+t/gKIM/jxe4u+15BHrhyrqNQRT88RbLzgsiyIntAaoSY9drDxMtzkaFlWWsybe79GVxt5fm3PC5AOMD3gvmY75eiA7Yv9oexbBQGm66XLfufwK5UVhgDgZnF6Ya6AVOnmOTK1e4x3oO/MhvJqMrpu5VhPeLnWeVTkRBJjUI9trxvqdxvW/2bgWc6TWYe3N9HwdZO7M4yZ9VdH9dD2nlKRaAergSTlGQXKBktzKBNMX4G0R/UzH1ZJVnFxWsgCMcR/UaZyHV93RqJf7kidFN/jrP2ilq2F2MSyap5MrmwbRRsE0PeIdoyYq1xeiv84cAJIkiXQCYcl72hLMaRs7FIZ7It5j4RQMGp/W5nMLRho3tA1aXWINSmyxbz1Uhjj6OmJifPPy7V3tgDUXjduW X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH0PR10MB5113.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(39860400002)(136003)(346002)(396003)(366004)(230922051799003)(64100799003)(186009)(1800799012)(451199024)(2906002)(4326008)(8936002)(8676002)(44832011)(5660300002)(4744005)(66476007)(1076003)(2616005)(38100700002)(36756003)(86362001)(107886003)(66946007)(6666004)(316002)(66556008)(6506007)(83380400001)(6486002)(6512007)(478600001)(41300700001);DIR:OUT;SFP:1101; X-M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p8jeQ5fHV+Zpg+FOHSz5duKa129f50/MQfsGkMZns88Mt0Y3szxr7jjVkMYi6bkkCHu0W1mq6e0Pntw3vu3wsy7xiJkcdY4hrQ6Po6wJcHOPMNNG7ge+0CXEYaO5jxKtR69nFZZqxr4YvqK1TrMnmhHzUWKIGAetXLO/ToNvrz0nugESXmkTQ54nEkBmK1xIN46CB93afm/B2VGH+m9HrnENkgWUdue4IfIINgCL8p4MrOGYwUOQ= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 51ffefb8-fc62-4b58-e20a-08dc2d9a7a98 X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Feb 2024 20:21:08.6300 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: w36gnoaDwbHJsddA+JrTA/thpkRW06eMqRNq+iKvccVnq47rShAC10OmuulkHXdQuAJvkxwYIzw521nHK1+NIyRaeJ1iZ2Ix+2YSy1eMBlk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR10MB7963 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-14_12,2024-02-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 spamscore=0 mlxlogscore=999 bulkscore=0 phishscore=0 mlxscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2402140159 X-Proofpoint-GUID: WnhuTZoa1qEdd2B6gmfTbp4hOTmsN-OP X-Proofpoint-ORIG-GUID: WnhuTZoa1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sI2qUr4hvwVSbxGki5ruWW9wtT8kiwCIBmIilkZw AotNQHGe C1ePCIFj0Hancg8hBtEWNDEdSFtEaJd8ZZ3acuzzlKD/+l/Kxoq8h4/5tV1UiozDqfT9WTwRwF+MGqfWchxXJoqVfpw1sFEaUw6ptggricyQ++3I6t+bCoziuDocbkTBusb77eC8p97P8sctH+KWlteVDPrakZ+4+xOpAR3IYEKQSpj3PQ5Ql7oV5EbkhQ6rWB9CYpLXeCGr9oge9/IlnUIx1f+UUaDrBuUPb2Ubsx1sTbs2j6D1y8APs0xTx59N824viUefqICAXMGDVBAD8qXhMAMmEFVyh8PbF0sGuowiOkNnuFCvm1bHGuqLqZUejf2V3XLMkSfJ7WYGvMLVkdp5ybrXwLeT9xjeQYjoUVic9HzVhQzCmn8trtpWKqzeGutRyId6L/ZoxvFkL0yXTfG55Y7UXUEyw6EaD/hgq543L18VyVkTXba0NW0mXpK3jwqmy2fWa4qiOS3c= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Use folio api functions from the already defined src and dst folio variables. Signed-off-by: Sidhartha Kumar --- mm/migrate_device.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mm/migrate_device.c b/mm/migrate_device.c index 9152a329b0a68..a48d5cdb28553 100644 --- a/mm/migrate_device.c +++ b/mm/migrate_device.c @@ -843,17 +843,17 @@ void migrate_device_finalize(unsigned long *src_pfns, remove_migration_ptes(src, dst, false); folio_unlock(src); - if (is_zone_device_page(page)) - put_page(page); + if (folio_is_zone_device(src)) + folio_put(src); else - putback_lru_page(page); + folio_putback_lru(src); if (newpage != page) { - unlock_page(newpage); - if (is_zone_device_page(newpage)) - put_page(newpage); + folio_unlock(dst); + if (folio_is_zone_device(dst)) + folio_put(dst); else - putback_lru_page(newpage); + folio_putback_lru(dst); } } }