From patchwork Thu Jan 19 21:14:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sidhartha Kumar X-Patchwork-Id: 13108767 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 1A369C6379F for ; Thu, 19 Jan 2023 21:15:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A89936B0073; Thu, 19 Jan 2023 16:15:28 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A118C6B0075; Thu, 19 Jan 2023 16:15:28 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7281E6B007B; Thu, 19 Jan 2023 16:15:28 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 3F9A06B0073 for ; Thu, 19 Jan 2023 16:15:28 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id B276F160DF7 for ; Thu, 19 Jan 2023 21:15:27 +0000 (UTC) X-FDA: 80372804694.09.08CE849 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf03.hostedemail.com (Postfix) with ESMTP id 53B6820013 for ; Thu, 19 Jan 2023 21:15:24 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2022-7-12 header.b=QVzMNEdR; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=jxPsxp1t; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf03.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1674162924; 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=zsPQG8fDL482u8E62UY54HDAQGMVSvhN1uuGsS+Bkwk=; b=LoZD3mFIlX8mJeuW5Xji3f9wPhPTwspuJ469ly5JeXCTCSnPnyVXgcqAjBog9HMVsr443+ +cULxrUGUasL2APPFI5nB4O7SlGxu4whV6QOwpfFgLxNHp3Nt+p99QMgyMQFr8o9J9+g6Y 12zx9cywcM0nVm17Z0VK5g7kONFrHRA= ARC-Authentication-Results: i=2; imf03.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2022-7-12 header.b=QVzMNEdR; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=jxPsxp1t; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf03.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1674162924; a=rsa-sha256; cv=pass; b=3C+tqvJXeSzJij25l1Y21beRfm186p9u1aM3NA2SOAAX9ktRsQq6P7vX9PIigzkWmDzqJZ uS3ca7eJKUfJN7RM/zL/Av08PERkhyXpE0NvvVkycFE8c/SBngSv0yqkXPBZuI/+yomhF8 o9VpEC+aVfY1ACdhUjBUUJxy/UFke5Q= Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30JKx5v1027492; Thu, 19 Jan 2023 21:15:06 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-2022-7-12; bh=zsPQG8fDL482u8E62UY54HDAQGMVSvhN1uuGsS+Bkwk=; b=QVzMNEdR8NrPY+FPHxNJnZQoiFkBOOHMrdgYk5KLGMZ0rfGhA7ciV+mQlz8rmOYPEP46 rr/zKF3RJOi0cUdo23K3uUXhnBK0rPYTtve8gU8S9ci37XMWgKK5eUsjYXlcHf/Udag7 GJd/ZwieENmNBUl08uxVhg0+VnjHlxdf0AWW1Dp7SS7YBHkd1axa/1RU1EqW1oCI6Exz 1g1R49ir0FEJ2Y9pMASzAZiOjCgrB/coF6CQsiF/QekQsZiN2BUg3Iae4rLhpJ44rPNJ hPfJXcHpY1/QzmVRsFUPDgNtQcZFtU3NB7fjy5CwKYGPJjCWN/uwZQxFUEndRong7TyJ TQ== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3n3k013at7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Jan 2023 21:15:06 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30JJavLs004672; Thu, 19 Jan 2023 21:15:04 GMT Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam04lp2049.outbound.protection.outlook.com [104.47.74.49]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3n6r2v07ej-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Jan 2023 21:15:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dSDzYNIs3ono7piW/ia5OI2GrWBWOUGrObv6a73SfGWPl2o3WIcziG8OJRdfQgIprypxjY++ZH1Ys/GwJ7JNETuonjdxKKDOpwZZfKkvIj4UCnrlEbPUCkym9qt8sC6gdPxfSDjXGz7mJCc38QTr4NOXBeplr9I8uW/ABcO+AoKkKXy5cQDoeXalxNh20e2WFwkJtzlAdCW863IsNorBnfEbKPSJyPT6AtbijUtr92b5b4JGmRHoQu+Q7RALpFB8hDvEmWF608g/nYUrY84dvevP/LT5lTPL4OpbXtW8Gp86eWGeBsQcfxCqeF0nFphDO47mSJaDDkgRHd0q3qyURA== 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=zsPQG8fDL482u8E62UY54HDAQGMVSvhN1uuGsS+Bkwk=; b=VkrbmEC/T/6JtjclRUkORw+5/xeZw/hDLabjbNjmpu6ZvNTFeGdbg4J/9Vk7q5mCAfd3NZqHAi47KQ0gDHFqEVOKcGjaqwWaGi6Pvo8Qi1pVTzVRqFm/1SzkarKDRWOLX/LVf9riUbHt46NX5IvZjdXy6tujzigyC04lUqRowBQXRyvIG6utb9FLyHCPn7+cWVb+QPfx57/pETxaj5iaWuZ1QaozpCQhs/fsgQ3cTHFmgjlShR56XZlRo08QWDtCvVrhSEGvBkeVX0QEg3qq5QE2499V+akuFswCXhmR5y3V7Z6BoGRuNMMzklJasfd5vWFG8pVxfnEctc2atPk9HA== 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=zsPQG8fDL482u8E62UY54HDAQGMVSvhN1uuGsS+Bkwk=; b=jxPsxp1t/+kZt0j3C+h9jUmcdkBabhEJLJJFSNZ7te3nhwTVmXtv0chHb7xYIIZrAFynKXFBe9BGJ8uAhIdzUaQ8Vq17lhI6NWzjFo7z1pVHpTsLjl403WmOcIE1427e8blpIdzQgzp1M8a1usTG3jEcW47BZYKHH2v5oigSRG0= Received: from DS7PR10MB5117.namprd10.prod.outlook.com (2603:10b6:5:3a6::17) by SJ0PR10MB5600.namprd10.prod.outlook.com (2603:10b6:a03:3dc::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.24; Thu, 19 Jan 2023 21:15:00 +0000 Received: from DS7PR10MB5117.namprd10.prod.outlook.com ([fe80::93ca:e22f:aa6d:94d9]) by DS7PR10MB5117.namprd10.prod.outlook.com ([fe80::93ca:e22f:aa6d:94d9%2]) with mapi id 15.20.6002.011; Thu, 19 Jan 2023 21:15:00 +0000 From: Sidhartha Kumar To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: akpm@linux-foundation.org, songmuchun@bytedance.com, mike.kravetz@oracle.com, willy@infradead.org, jhubbard@nvidia.com, Sidhartha Kumar Subject: [PATCH 2/9] mm/hugetlb: convert hugetlbfs_pagecache_present() to folios Date: Thu, 19 Jan 2023 13:14:39 -0800 Message-Id: <20230119211446.54165-3-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230119211446.54165-1-sidhartha.kumar@oracle.com> References: <20230119211446.54165-1-sidhartha.kumar@oracle.com> X-ClientProxiedBy: SJ0PR05CA0003.namprd05.prod.outlook.com (2603:10b6:a03:33b::8) To DS7PR10MB5117.namprd10.prod.outlook.com (2603:10b6:5:3a6::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS7PR10MB5117:EE_|SJ0PR10MB5600:EE_ X-MS-Office365-Filtering-Correlation-Id: e34cc9b9-ffe2-47f9-d7af-08dafa623942 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qy7x+wNVZ50XB5JrxhxodaiJrWso3rgp366E4bqEOwLQg/fKsZxLfQ/L6wLxBhdhaiARmQUf6UCGoiKnn/pShohT1hP/H9ZYTl1JzsQ64LTWv6kkiDp+vlhnfSHGExQtv/3Y/jhRxLVTi8mYDzRzJ3d0LyYEHuEVchcXkS+E1s0/Y29Bw0Gj1gehjx9xUAJFh4lQ5VDzqscV4nsBOEroXXWibL7Yq4uTaSCTJ8DagKdBhO9zQWODRz1khux7oyCd5U9z/9CchQMjUpE2obduWFI3IALyJRgqF9czgbNKRm15EFTxc6IcYlGe+S1K18nx/dtVatasetKauLp/MdSZP9b5F+yYFSSuoLcsTXdw+9vpcZxjr72fBhmcKGOCn1lgTa1XwQnSNj0TSVaxB/A86s5RdJKxAAR+GgKuP903XV/aJ2gxrceaEd0z5i1Fy3yHC+zd1GPGuW2tejhhCaD8KLFV3caI4IP0HegVF5xMHKjD49DjbmGRRxPAscEAUGkaiaAE89CwlUq8OfVkDVzjt0Ne60VVYTyy+49PM7jT8kUUJ/rStSO2O6Eu0b2qJQKxe9A9+e3pENCykIZfXGQFdprlK+jSWOokLmaiI5KwLmwrgw+TVZew9lCL8gdlmZn9KxYVp/HEO5ct0CMQLEKj/g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR10MB5117.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(366004)(346002)(396003)(136003)(39860400002)(376002)(451199015)(66946007)(38100700002)(66556008)(66476007)(478600001)(8936002)(44832011)(2906002)(5660300002)(4744005)(4326008)(8676002)(1076003)(41300700001)(2616005)(6512007)(83380400001)(186003)(107886003)(316002)(6666004)(86362001)(36756003)(6506007)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: P25M3ehEgCDwDYwSFs2PBXV/efuxjWJIBydC9Yz2rrG7SCXRHs8tALod2n28+pQSf5N6vO+OIzOc85J1t3uMHM+Bph0zXAphAMbxUvLfotbvGgFSzifBqdOLtyUXhgsYYXz33br3QFAdqe+MPOpnJe2PTd59owsd0R1BDAZk3PgQMgyTlcBdAuzPyf+qkDxvcs0/9EJP84nsOmLmcPItx6HMoHW7sm+nhhiqkPDH0NzzTyRzhKLfIexYbBJVTyOix8Meq/JwIB8DKYiYLABuPDsLAZ0Pl4r9LnOH1fV6UKD75Eb8GPq/lmptC+cdS0kZPDzZGCl2GA+QwctWjQjbMrkWfAyKftbrsPJCzgM3Olone19e3za61pylyAkUnjJ1lpg5pAmJIdLmqHV7O8QVemxiE4RYob9W+vp/yO9B/liN0xIe+WWJjjiuGjm+a9kJ6nHDx4zkmDVRco5w4Ir8G2tAxFEUrrQctutpW15Kx4BYw6+K2XgJskE/ODQM5xBNElfyanten2BBsctXdDNdgNO25vB72G+dVvGYlCZl3T/xb7AJq7bZnMuQ3m4WDBAQWocEeUdgasGCHxIlCoFKCOLfhGn2cTWLPHqw2ePQgb7OcyOom4xeLf4JG9+9fohmdRx5/HnhUxnG7dbWSngPzAfBr9iBXTGQ/lAH+c1Rly5PoWi9i4oeN9THGEQhwbWQIgXB5ktbOWPMD+rAsHzqmptMY0eyJEbdBvFo7+xkFD9luwBoutLmmWUNEBEUkPXOzMiAUM/JNJ94A9b0x9XAJghj3k/DEQ9FsKwPLb2xDpxIFtdU/MuFVJMURMLbVtpuka00p0qSz0E1qwAmj8861t2X5m8WmpIo6E9GOPw+K1sJ1qxwNhlzgGCEnmMmk/n+ZfZvBddVXH0LLowPTrka3UaAVkLk+XvJWP69/e9dWYH8hoivCsJWI6HQSFJtMiZ+bDG5sHBGSt2RrbsRyV8pM4HINyfjFCzFQxPrL6ZIs2w87hK5ohkSe1bJugTahiztS8XOY7LhxD5VFt8kJUQh+mnPH1S+ffaUpiMN/gy2iPETD5AnB0zkSRDzjrGsNmch8l+WLZB7+aBE8UuUpqWqgdpotD7MFqPL7Dtw9y7HPmuoWeQvFOum224k485MF6SvPWD8AAh3FYx34s3ymAqo3GF8VoP44t1o605rGA7Pl2GZTh/fIxg8dN/ErfznifAoSzXSqQ3p+ZPFEK1OH+tedqhiqPceiNZ+9qOPJ+Gl4ezdvt0L6rKUiub7amXuVpk3q2xJWxpqbwkQGxPxGoS3hjc1UwlpvUVonf0k2vLx/Zxrup6WLufO9UBOM8ZJyoNGX4IkxT/+hjXW12WMDN5zUWyQfrtAilRz3RLOqb8kwrkPO23mTE/PC8aWlYOONr/TkTujEWo5QOqrTY20z0AShjG+t/tQwcgmb/tcHvL+PokY3Ro/G2E7uHOGxEcgPzvCF6DxcjfOMEXVYQxLUt7ayirCbN2ImWWSb2pErCACbi3sOO45OhfCluHtZtN6imseJkLPwSQuUQeV78Md0BRg/rELcFhfNgXJE1H9w2X4oCr32NJAB0o0ieRxbQRyqwcy/Lrps72ZEVgvtFEfAgEYqCIpgt9UV90ykqjdU+tglpT3VD87SmAEjO0ksi0r0dGF3L/cWanVEKkkESdSVVIOvQ== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 7TjHEhK2LtOKWCSc+vC8oREPG0+NszCv0yo/8F2EgzH/Bs3g56uawiP2mbO9N8frfy2EKY/hm0w0vf9Nz0nqaz+7Bwm6cofVdYlEIDIJSv/w1uDretlf68m5pQfYc5uLU9kMgXQbOsjuVFZPe3kSOjZAferZzJ4xjD/7MVagf2rtby6mys3z7SRCJ0kTTkgVI09QPNth7v6bGXR/2mYVU/V3zn6+eRqDG6K2KAtSriMcOJIfNtSD+CAM2HBKOR3kTxG4Trth5EE/iXGenBNazvpx6DQR6JKDx6eTlS+1mHLaasaBaHj04pP9XqYxB43FT1EpnUOURMB5QFu0uRnKeAkJ+MAFThpE4qDY5JTa3YtZHj2iiPWSg1+Aos3rz5XjY7Tg1/CTFhkbiSUbKE37tc6eu51UJV+IK3YW8lxXHgN/5Xe7RhVBDfjqkT6mMdhx1PcXGQnNRD6AFp9J8Ci3hWZ8ghvYp1biR3+LZkYjCjpeuuDmDXGJ4ywBPcElq5hIFL33ExGouP1PcaP4KA1ReeC0/tatXKHEu86Ahokn2A7x+1+gaUtEeEu0Q6K7uGeBjJRXcTeAa9qQvB1Z2mXZC85CcdbrFxBeAFXqc3leNzEfK6AmaGfuzeCZhD1bJO3pGptYL/ZpCpg3JVLz6L5aEiYGHb5qoiee6zND+KO/8jjvqjOLifpXnGSF2Mc/tywtOhH79UTrija0ieXNqrLIyRVAU+UpR/aYKBAT/2TNP989IbghtyBDgZ4Pc55j1tt60k0D4TZpBEOt0kI8QGgNtmEwBsiNK39PgcxQE7C3Jige5qnT3z8ROzIHT+32ipFoL9ILAMMr+G1jzuoOhRacEU4vkHM0SPK4aQpOldgautGac9BPLsAauNc1hcG0W994OEgwWXl+9kx8AzfQizluRcogMvDnwK8Dcsk0trDt3fGlprPqqWXvkTbwcuQoZ6f1 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: e34cc9b9-ffe2-47f9-d7af-08dafa623942 X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5117.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 21:15:00.2017 (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: 7of99WqYH2u7RSI4R6eDcS0eUnzuG8wTfN9fx1/PhVmF01jFiriuSQvDlV0FY7gK0FYdAkYeslGT14AeMVSJf/QncAzShYbiktIsm4wsAx4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB5600 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-19_14,2023-01-19_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxlogscore=999 malwarescore=0 mlxscore=0 phishscore=0 suspectscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301190178 X-Proofpoint-GUID: jsivQA4vrPT8-DTqgdFWT04JY3JksEJJ X-Proofpoint-ORIG-GUID: jsivQA4vrPT8-DTqgdFWT04JY3JksEJJ X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 53B6820013 X-Stat-Signature: aod1bqhdmz697ddni19nwg1wnynoh1a3 X-HE-Tag: 1674162924-514787 X-HE-Meta: U2FsdGVkX19/ZKSFU15BJ/U3Rr4YVbB+ZideZ7qvt8vo/Bz46xI7fEJurPzejzQQjGTDZtXgu9btMz7MfqqoYkGLWzPwnRhmzYVUlNd8RV1LZFIyK2rh4iqMkaiKk1/FR+cXMhO0Eswjf+zNS/KDPCsBF1+L5zqSKPHH5F8cMKSKpNev1m1ZN1HEPvCGQPmYHGnQjf99m1tf/VnZVX2Im0IcwO1ZhswIpQOSJ8qm9Mnu/imdPec1PCNRe3HCgxUEZQZn9cEsuBtKl1FCORwZfYA/qkPkHveLizs27ffLtVd9/xH4mLsJ+IgrzQFED3wCUKypRvF4GjOLgktqe6FNZgqaYVoGhiudmKpmCsdlK1PURyK48Q+Wc5BKAqebNwVc0l4AGrZpTn8fy7z1SD59MhdTAqJZKkzL6JZmjRbnnZHzfw0pvel+JNNTaxmpw1dhXBLWevT1+7VIUwn/GQQiLRuIjuRnn5xvql0bfxoIUje8Pr53gkJ8YdOLpWStR3ZeqzeN1sJtjoImm+Yv4zeRtatwXf8L/46e9nvNhB9Ei7jM+gNLeEGfvC+90hbA7tYz44K2gxa8nVc3G+cJCRUCN4XG0fQmzHLSs+8t3Yyg3ovI1xC+UXtumvgG4i3aTuh5uV/twIBkzwGksN4esMJCf8LjW0OW04ovsTTo3jFLmv+G3MBqZnp/s2ahHqe3t6VeqDnpJHiYmvPGUpZwh2guWHwYf2t6MZ4dNMyiU7KLbUBx26XyXxqvI5s83vQecuWbk637XCf7dVGWH4Hh0nxOfJLRrbKPn3lb/waNxkikUPcBlsHFEILSAiIw9iKqkwfo9j0i4FYvyxesxAdQ4vwwpHrkUR3L+ZNrDEPd7QEMcUUMb0JgLyczJwEtCuQgnzRVsbvxnCYikodx8X7TZMhv9FAiGR4xNby7dPxI54vthTTFx6ghnVqTPAXmsJFF9nusZhx7eoVQxYRUBq9k+Y0 UUgHwidc qhmp7DCGzymRsa8CY14Hx+LN/K8OSUXrQMwotN08/0Un9qPwyIKEXgPjvZfRSMnzkx1kLrrvAPTFiJOj/yYMPqCCJ7hbQNTYzZyZ1uXYe0PDT0QYa4RWOgJTPiEQLd55ygnfwIe1cTU/iTCcJ99eAM9TA2Sik9UZsaNdJeG1Nluh3c0A4Cjsyj6/cdKkR4bfR8s9g7MehWoMnwPgaSS2cr0D6wqLmFmU9aFNaHvcnSxrJCwlqI6ePZajmPVBo+aHWXN12LeRKAhIlXWuteuKNv6ElJ3kIGiav4/4RrnnrTY4FWSsL4FdePtc///C9riFaL17UNaoYUDkeJYHnnxw4qsPytxESffRthizPL6U27XcBYv1KngOShylkPzn7DdmCzPJx8sasBuFevNyyK5KjZApNyQkHPm42FJDB3W2um7tsJy0U6uIT0J/MtJkIQD33SvOS 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: Convert hugetlbfs_pagecache_present() to use folios internally by replacing a call to find_get_page() to filemap_get_folio(). Signed-off-by: Sidhartha Kumar --- mm/hugetlb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 849206e94742..04cbdf5025a5 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -5653,15 +5653,15 @@ static bool hugetlbfs_pagecache_present(struct hstate *h, { struct address_space *mapping; pgoff_t idx; - struct page *page; + struct folio *folio; mapping = vma->vm_file->f_mapping; idx = vma_hugecache_offset(h, vma, address); - page = find_get_page(mapping, idx); - if (page) - put_page(page); - return page != NULL; + folio = filemap_get_folio(mapping, idx); + if (folio) + folio_put(folio); + return folio != NULL; } int hugetlb_add_to_page_cache(struct page *page, struct address_space *mapping,