From patchwork Thu Jan 12 20:46:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sidhartha Kumar X-Patchwork-Id: 13099379 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 4E144C63797 for ; Thu, 12 Jan 2023 20:46:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AC2448E0006; Thu, 12 Jan 2023 15:46:37 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A3D878E0001; Thu, 12 Jan 2023 15:46:37 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 81A918E0005; Thu, 12 Jan 2023 15:46:37 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 6E3D08E0001 for ; Thu, 12 Jan 2023 15:46:37 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 31C9C1C3CAC for ; Thu, 12 Jan 2023 20:46:37 +0000 (UTC) X-FDA: 80347330434.04.4C13FEB Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf24.hostedemail.com (Postfix) with ESMTP id 59C0718000C for ; Thu, 12 Jan 2023 20:46:33 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2022-7-12 header.b=mjWcQvaA; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=hLvw8vyB; spf=pass (imf24.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673556393; 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=2lZcX7VrbQTi1+7mVOVczMeZDYnWD5m9QVBm9IatMv0=; b=uQrw/gJpGYELDu/99ge/pT/F5TgnC2WkeeUOzYHFeE2CXVANU0NewsHWgcAkbHkHOS9QIC 58mQr2xAz8fLW/dUq8nvMBCU6OyG0xIXj2flzI10WqNtnb9at6QB2WL98fpr10qMzM+rqx WIXOCG1SLcCWolDc76opgdfzm11EnBc= ARC-Authentication-Results: i=2; imf24.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2022-7-12 header.b=mjWcQvaA; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=hLvw8vyB; spf=pass (imf24.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1673556393; a=rsa-sha256; cv=pass; b=FIuNWUazj1IIxS4tkPE1HMnuLRMe9MhS9EAujVP4EKF3CwrV7DSxjTtnt7WDGvRd+T8oYI Jy8Llt6kcVB7E0Qmo2TEso0N+syt7xSiKoFK+OaBQ+FfA0S/qsvtSC+C0df0tD1nzCs1wj d6nX0CgDEg6ioUHwDf8Im3wFIW6eFVE= Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30CJuNAZ006047; Thu, 12 Jan 2023 20:46:22 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=2lZcX7VrbQTi1+7mVOVczMeZDYnWD5m9QVBm9IatMv0=; b=mjWcQvaAIZbg33ZgLysJKp99qQywSZXJ3sQdBWR6c67Y3w1FdabqHBZCuK+w5UKk12+j +8CrO09stYoFihwEKVzGocrGyYEq8oUqpkWouegcDaW4V+qybfyqpFeqUkvao89470Ul qgKYrtRtVRu5w2On99IHXkcvz/tnyLMxCb7WjmG/05vW0QRfXJr3ZYUNKtaJR7LEbefX PcyZTiUfGEvKNlJvNVMzHzDMdFGkw3uzn7x/njFilgB1OIFUfUyIGpw64YT9DZLGrv5K F1zVu+rMZEo3g81LCeLNPmGPeu+GvDmCYXxJtVFevTVkgasI6Uji2kAzg1SeD4XcSyY9 Bg== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3my0btud0r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Jan 2023 20:46:22 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30CK1TT0034162; Thu, 12 Jan 2023 20:46:21 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2174.outbound.protection.outlook.com [104.47.59.174]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3n1k4h0wcp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Jan 2023 20:46:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CDuHZPpjvfXZljw8Ku/kMNAAK4Ed3+Y/M0R2yt2fNApqIRzhMbfUgl5ijKnRzowN/ANTQf6WRol5ojeisWwV70shUo1NVjmJqEddREoisWKSGshhYklJOsBauXb8Y1F00Xo0s+Ia3j9/Xhbcf07YbCtxVk+wnZF/rdYwEbDnXA+t4QpKnlm5eyAgV8phxf23FFfOLEcZZEFl20Y9KPiUekJDEW7JplaXUsVgYEFDRjamkdegq7K4DV0cAA5eHAHOqG2fZq0TqlHiXbOpQcchHbbTAvJJLIYcYpjY26mQtiEbScGXFHL0CzD+KUZ6F/XXJru278Ktcjs+z81WBNwMmw== 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=2lZcX7VrbQTi1+7mVOVczMeZDYnWD5m9QVBm9IatMv0=; b=eAr/ANfKk2OznBhysKBie3i2eBA1QpPGC0RjoihcUVounNo+40T78txbt6o3rLntuU3I5z+yw2IQnJ1J0sx4+OLkykv8xmx1AJcStNFVozOQtksfQtOqeu/9S2EY0KGfsiv3OzgJqy8xjcm5fC7ZPM99mr/23BeALoGHF5X283+DXUFEGN8rOu7KKM9CwPM1ez5j8kG6d8GoEZJEYCkF6TR+cSG51ejxfcJpiGiDJ1sOJj524mMic2/h1Ek57u4pRCFr3AmmDWXzMzF8v+2/O3Uk9lzPlvuQIYDMjARA0FB5AXNhUo3H0IJmhMVt5S4iN+IO4f0EwuKnfi2KRkLthg== 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=2lZcX7VrbQTi1+7mVOVczMeZDYnWD5m9QVBm9IatMv0=; b=hLvw8vyBn0tqe2SXQAPeUpf4iuDjOXxRMUcS5aYkuy9yF+UyMgRkPk8xGFpdqVGSJ1POe0YLILvmNUyBXZZ94RDX9s2wmviVszzNJFwf25IRei+ovDwrvoz7KpV/Rwxn/79DnmxnuDcQ8EEoD/skRdDmU++TnLoiTDtx0I8KErY= Received: from DS7PR10MB5117.namprd10.prod.outlook.com (2603:10b6:5:3a6::17) by CY8PR10MB6804.namprd10.prod.outlook.com (2603:10b6:930:9b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.11; Thu, 12 Jan 2023 20:46:19 +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, 12 Jan 2023 20:46:19 +0000 From: Sidhartha Kumar To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: akpm@linux-foundation.org, linmiaohe@huawei.com, naoya.horiguchi@nec.com, willy@infradead.org, Sidhartha Kumar Subject: [PATCH mm-unstable 2/8] mm/memory-failure: convert try_memory_failure_hugetlb() to folios Date: Thu, 12 Jan 2023 14:46:02 -0600 Message-Id: <20230112204608.80136-3-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230112204608.80136-1-sidhartha.kumar@oracle.com> References: <20230112204608.80136-1-sidhartha.kumar@oracle.com> X-ClientProxiedBy: BY3PR04CA0007.namprd04.prod.outlook.com (2603:10b6:a03:217::12) To DS7PR10MB5117.namprd10.prod.outlook.com (2603:10b6:5:3a6::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS7PR10MB5117:EE_|CY8PR10MB6804:EE_ X-MS-Office365-Filtering-Correlation-Id: 7ddfb8c1-2c13-47e1-8e62-08daf4de0e8e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qBb5htytBcNDKQVVIOoJoCRbMuCgsvf3jJJj7YCCClAUPRozCgdgoCJR9izN1dlYEWq2MuT94ihvRdO9SLoT5A5eHoC/UHXPnS3i8eydRZ33N+XossSEv5M1IMJ6azsybywNvaPEmhzHwdpb9RyoaSICBZ6sZaRNJY2qtj1JHA+3Ucexwu/jdu0bPtdcIx1jcb0C+6stO7la320iBTA/Wm9wnmsR5MY8o7MSpXGEfaTcSokRay7N5gFx45RCKI1El8Z0vz6EYZ0/mxvuUc5s1W3kurVVCe5VbfnMo3pDAewd29Vh3qP/LcA/8/qwza70z8uoLSROZtPh4qGtZtwqUi4bpQoNFAS+4Y0BOBiS4txApNUW+gBmAILvwwq9YdgwjSruEfvQ9mydXRqzlf/GdJEFeuBl6fo+9760xm/maMFPAp7hBNlV0J+Wp/aPVsuViex0cHT2JMdKWp2lVH8sb1JwaQsiyAGorwbOcza227czEa/8JAM4qze5nA/GVMWPZNqnhrU5TGPpgIJJM6o7z0UmsiMdfxFcgy2zucp2BXT5KqajgI2WCDGQ3OTnmL960qTeEBCTF547nau5dbKmjitvwiBTP/f07nsSrYeUepXxiDN0lXCQBUW73/w8T9eO9jKoauQpPSK5VA7bY04lmg== 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)(39860400002)(346002)(136003)(366004)(376002)(396003)(451199015)(44832011)(186003)(2616005)(6512007)(478600001)(316002)(5660300002)(107886003)(6486002)(1076003)(66946007)(8676002)(66476007)(66556008)(4326008)(83380400001)(8936002)(86362001)(41300700001)(36756003)(38100700002)(6666004)(6506007)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: pbZl9pvNcv1gDF0a8YzTTFH2NxboImcrg4WDzUOwNAi+bR81iuxzFhn9MImlQ7EYTbJejEK37nkBkIL2HhAMkhYnbUxmOx6IFHvH/6Q6Uih8t66PSCPYFLLt6T6dECMpp8AsPsdSx3gnFdyWQMZcGuNA2zDKGRFAD788/iXc/YfcAO+0Fm/AJXNAI+x2b0/vhxojUheTooQmTIAdDurdD+I5p8DY4Ss4j7wpt5EKZ1ne9xi8z0nG0jYCVoPiwrRdkYud0/0xHhC92G1+YQu9ZObbM+Y7zut4zjikmAY1UGPr+TWY2xMYlKWoXK3JfwQ3K9aIZhjteYALDOlqCVRdlbFiMG43Er2T3mo2+uprTZ2VQ4kOX6Sm9piIeg6o6vZaXdr9/wa8Xk/4TJMcHKUBavA0EgPqRauVKZFYrLgy8ehCjGovJqUenzgMQ5sSpk1L1sCvJpkTyoIba+vp37S42B8zdnzpL0NDLadGb2ERpJFFeBDoJczI/qEs16iYSFHsBKachPMFwq0xg6f4Rd7DnLJem+MrKIo4HkkyBUSS8SPlTfpmv+ygCehBUv9A6jz0sJGtOb++V0qbivHhse84qxn1Xr8oxiQ9H6/y9rGraW5Q9UR48p9iu7wPzCs4asCLkQ8O/PbwIyY2XJdLazlFiOSgYAjsq8HczKo+AO7mfPJmCWvTrC57eSPGSBa0+IPDQMnqpki7NnRZvchl3Mvf/CVgz098prFFU/vXhle7iTTT+mBdlcHsB8yPZ4N8/w2eBeoAvcJg2uqhi3/SrkbBFze41ZRcRqII2TY3Xss3AVxPyYs1ZKsK89y8os7ePQu+KH1JfIv8d3YxvZvQVGt7zTozd0OwO8Nwy54W9hdEKCt6H0Q8XqV09laCl+Wm/5V96ey1WwbqSh9R2fBNZ/wmrqDg4eVk1FVi5etHIhsAyMhHXUBdyD72CIfCcO23QXIRCOU063QaMkO9TJNXFt+bI1zwV237rMHGlRKZOVSkjS3LNI43cdfhtgsIu7MYiPY4Cwhx5miu9adzbKEy4FD9PmLOKc8rHAgc1r5QuPLoG2nscoYHbV2s9YDIhO24OqaYu9FCX/AVE5g3L7CTa8D6IH1LA2RMdFakSvMTyhuWKRG1AMOaz3eQBUFgpuBYQXz+7mMoG8lFFYQCaB9A96YYHHhq5EnYj9RTbYKzwCwiGJSWEwcRyZYzOP+LIBOTC5MpeWJLYNYVxCY8krAuHmuH8iR0guenVZZEU+E1SGJeDd0BHyu92hcbvrZXbOru6JJGgv/rldFNHYnlF1D9fOuw4iWBrMNNA2/0Mphwv319KScUbYLDpF9AuQZ8vrGZClRVcuBwYdX8zsW3K1q+k0Rq8K3JNMlreRyWeRMzz2RS3A6uG06LSA+RYsnZJGpOJXyMhfLqJdsSJCovJ36ebF0UCsdzOQTcgvzUAzt1qiiv5pbrr4KfzdCYqfxLaAUU9wTrWELVLdBqQjPxHVbA0YLrAOOw20kk08J5BtqaLkNKTEu37EaAR2h+zVXFlCokGn8Z2lDjP7bk3nKA7C4eRjx+n18eXO6VP8E5WxR6ilD4KndRN3rOJsSaP58iOi8FlC4d4GFAClof56Dds9CXL1lwKzWhMno6UBhW50BIllbDZOQ= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: T21ztMhbkN6q3M02mgXVtkgGq1AD+n7cRaKe/jhe+3e1n1rmp7FqhHh2dsm8xJFYYuVAyblSGhPYbqe/IiIic9/cxO5XS5S565U4tZHaIbWJvejgBxlHBf3TVfhlcmjMs8nLFl4fOiJAHhnsMHW3R23o5iCRkWpDSeXz/8Tc/Py0ZhIEhjpYA3sY9eAsu8IufWajL5ENjXioidjLgnrnbRvNzb4e55cyqVLAWdAWxVqaYD1b5Gvkem2Ymrf4el3nU1UJ4FpK39tx4hJqj958fE2WRy0PxZrWwpd8jmu3JExdgRqYF8pjLIepQDZijyQQOWrw0cIUcEOcEu9exF9VzytWorfN+Srh6dSW133p13iykzV2NRtX09rXKMoUafAJ8WkAktovxS/TOOt97utDH0mrDN/x7nYWT8/MWTP6zXsi8PvVt4OUt77V8/WbK9ddaJc0aGIdQUzdC63xpNoNHfBcWNRDGDrU1uLNC89akP0uzr7VhmMYQ0g7u/ShRL9XqfUMrznI0DGWwE7q5u/2b9Fa9MJsEl5TfsTZisEgoKBTSm2XFWbEyKMVjNkxgy5QNK+OIcgl0JGjk4emW236/4eCEnc5ExC5gsUWZphjvQbqh51lyCrHL6Z7Cw3r7TXaVbUse/qKN/rjbo/WUouSl5WUjsSSo+XMowtBN5v4dnhbT6qv7baLn0vgGROeJ9Y4W1FL7F1ICWC1QZIFRUf5gcJktB6KJohtYkPUvIzGO+OzONbUGmHenNjuBQqQQNJSUcdy9iKlZMva4Ip8P4LqgD9lvvYW8iJRysSJdGt77eDX+PyB8fE3xVx/u4HBnqE7/vI36I8RtbKniUFrVsjUWMSAOgDrF/0LBDmhWhG+y7jAxdyeLi37Ct/N1YKCYD1RidTMxkWzj/HwZAoGHoD90MeOCmxpqoe1YaOnmdFktHmUifo+pMeVjGeb5kY6Ytt7 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7ddfb8c1-2c13-47e1-8e62-08daf4de0e8e X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5117.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2023 20:46:19.3142 (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: h7Gg7g0v84Y9+StJMX1xrVPhxlI93qC5kJWjWTTkBBXd7pXP9zLfl4cTdqMzUadjkSldRLQDyWgpICuBY7Dc/AzdcinR0o0ViajzIouDaiY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6804 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-12_12,2023-01-12_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxlogscore=999 bulkscore=0 mlxscore=0 phishscore=0 adultscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301120148 X-Proofpoint-GUID: bGjhiaQ2vQNaNY4PQdbSIzzKpyryC1aa X-Proofpoint-ORIG-GUID: bGjhiaQ2vQNaNY4PQdbSIzzKpyryC1aa X-Rspamd-Queue-Id: 59C0718000C X-Stat-Signature: 9kytptk3xzhhbdf6ede1mw7ydqxrtrds X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1673556393-15474 X-HE-Meta: U2FsdGVkX1/QjOF7k7GCFcepXNkUTbgeSv5FsM4vO74hCYKDfXoaeWL+oKZbEJ3j+MjelNLhzcNb03u+dCmErCeNuaotrhkunsrhIR1fPAz0n+MQQhcG2GN1NC5Lw3XiMEtqFnlABf62fEF3jUHqeXsft21Iv+EMTE8i96X9DUnJv53HufKW6cDiwxwvBVGPbStE1PivPauQrPc0270oaEMp1pEFGfAIuCH49cBA/CF50/oIsHu9A+NRC0uS7JQwD2tkEMyfGkVXCTMb+6PVKmvGDBHpyhw/LP7zu8jdhTSjeBV64/PmDzAv+aAkbKjLdoVSx7Hv+Np8PUrD+tbhRUriTdxLC/VNG42zVJGzUUuT7qmbZ84uenVjZ1ZENhverQjbpsiX4qSGRypErg8KSowKY4KMqC08xvaBsztcwroBtmZ/JhJJjb8grzqHcI9v5MeraJyT2eyiVuMtH10KTC+lmYG29EkRUCFFm/WcdTVCrGqzaaHJaDwAG007Yp8hn5bIQd31DOldBTik+ScpyYMZFq9lzADR0L8jSjob0ZKihR616kMK5ZzAPBRorodycPOljuqs1xLBnBQu8DXkJPo4ec6ikFAR6vkjsh/Y927QcLQU3o9bvPMrJZNeg3m7wh3XkSet01xVwuoA+3zHwG8NaYHvsAOOcNJuvrC3Vu9V86t0gYP5jScdRQXxiGJyYOI32Wz3EeizA556QO/lqIoi9lXYGTZ3+BCexM9/R/VUvmuUB0STfrrly+S45VE5W0hanW3ijPFtR4sCQxPICfyudDO4lDV4NVa0flUCG2SwwtGnW13k41YcxZFyn9ZpdyoArw0kZdveQTzcP+1BHXBFqkbgJyKYBMmnVh9eUhhHrnDf8th5ZJdHKxfvEu2juxbarNaLHY8GJf1HqM3MZJktpn6stGhYasdGDwP4voTmynovaQStv09WOzMkCLPYOjjQzwTt29uu+eCH7+n wlcSeMJx p8OeR6VU9X9AB60w17KRnmY/Uc2mSTFIEQ+/ydchn4zwrbIuWUWbq9q5M9VAFH36OotqmJOacsflUdZ5rdkYn65EIYprnWauGIa2vN/TZQoElsnzaoVfY1+Db3/mNwo+UjKvjr1K4xnRANbuzQJOdHeCzhQ== 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: Use a struct folio rather than a head page in try_memory_failure_hugetlb. This converts one user of SetHPageMigratable to the folio equivalent. Signed-off-by: Sidhartha Kumar --- mm/memory-failure.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index ee7e79ec6eaf..ca84b27489d0 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -1860,7 +1860,7 @@ static int try_memory_failure_hugetlb(unsigned long pfn, int flags, int *hugetlb { int res; struct page *p = pfn_to_page(pfn); - struct page *head; + struct folio *folio; unsigned long page_flags; bool migratable_cleared = false; @@ -1873,8 +1873,8 @@ static int try_memory_failure_hugetlb(unsigned long pfn, int flags, int *hugetlb } else if (res == -EHWPOISON) { pr_err("%#lx: already hardware poisoned\n", pfn); if (flags & MF_ACTION_REQUIRED) { - head = compound_head(p); - res = kill_accessing_process(current, page_to_pfn(head), flags); + folio = page_folio(p); + res = kill_accessing_process(current, folio_pfn(folio), flags); } return res; } else if (res == -EBUSY) { @@ -1885,16 +1885,16 @@ static int try_memory_failure_hugetlb(unsigned long pfn, int flags, int *hugetlb return action_result(pfn, MF_MSG_UNKNOWN, MF_IGNORED); } - head = compound_head(p); - lock_page(head); + folio = page_folio(p); + folio_lock(folio); if (hwpoison_filter(p)) { - hugetlb_clear_page_hwpoison(head); + hugetlb_clear_page_hwpoison(&folio->page); if (migratable_cleared) - SetHPageMigratable(head); - unlock_page(head); + folio_set_hugetlb_migratable(folio); + folio_unlock(folio); if (res == 1) - put_page(head); + folio_put(folio); return -EOPNOTSUPP; } @@ -1903,7 +1903,7 @@ static int try_memory_failure_hugetlb(unsigned long pfn, int flags, int *hugetlb * or demotion can be prevented by PageHWPoison flag. */ if (res == 0) { - unlock_page(head); + folio_unlock(folio); if (__page_handle_poison(p) >= 0) { page_ref_inc(p); res = MF_RECOVERED; @@ -1913,10 +1913,10 @@ static int try_memory_failure_hugetlb(unsigned long pfn, int flags, int *hugetlb return action_result(pfn, MF_MSG_FREE_HUGE, res); } - page_flags = head->flags; + page_flags = folio->flags; - if (!hwpoison_user_mappings(p, pfn, flags, head)) { - unlock_page(head); + if (!hwpoison_user_mappings(p, pfn, flags, &folio->page)) { + folio_unlock(folio); return action_result(pfn, MF_MSG_UNMAP_FAILED, MF_IGNORED); }