Message ID | 20230113223057.173292-3-sidhartha.kumar@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 C5DF7C6379F for <linux-mm@archiver.kernel.org>; Fri, 13 Jan 2023 22:31:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4D3068E0003; Fri, 13 Jan 2023 17:31:42 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 457EE8E0001; Fri, 13 Jan 2023 17:31:42 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2358C8E0003; Fri, 13 Jan 2023 17:31:42 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 11A528E0001 for <linux-mm@kvack.org>; Fri, 13 Jan 2023 17:31:42 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id D6974160842 for <linux-mm@kvack.org>; Fri, 13 Jan 2023 22:31:41 +0000 (UTC) X-FDA: 80351224002.09.BAC6A46 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf20.hostedemail.com (Postfix) with ESMTP id AD6921C0006 for <linux-mm@kvack.org>; Fri, 13 Jan 2023 22:31:38 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2022-7-12 header.b=Jw6GqB2h; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=S3Koee86; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf20.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") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673649098; 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=ia/pKYvs485DK07VT5Hlv1uptsr6AIwYUeTt8NNpORU=; b=odUChUnhoLeSc29hKenqWNpJyNh2LYgwyOn7+pQ/LHLtZCR+yqFno4HN0RTBKgEdkFweaY fPnGHOQXuFCbJu4a79JQyohhLzbVWkzLrh8KvRoIBPXEIP2PcruqSQ52uD8vpKKLy54MLj 0Bd4pTRMrAwB31hGZnhyx17+vTPMCMU= ARC-Authentication-Results: i=2; imf20.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2022-7-12 header.b=Jw6GqB2h; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=S3Koee86; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf20.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") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1673649098; a=rsa-sha256; cv=pass; b=f+x+gH3+DacfnaZpY5UpLnWb2YT5Pa/xFw0INyPdi2n9UAtLV6Ueuri8428XRJkw1TBwDq 4D4JFYEVXWvZe/zjy4mTexGQUGDiO05+RNPpcAurMpC8olobaiBW/m9uaYxhajPeBShHS2 4DC2xGgzpNy7KXXxuj3H57DM9BIHSbo= 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 30DMV9ff008583; Fri, 13 Jan 2023 22:31:09 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=ia/pKYvs485DK07VT5Hlv1uptsr6AIwYUeTt8NNpORU=; b=Jw6GqB2hgGTR6Rcc6nIA1Ojc0/hqI1N+I9O7+b5MdZ2Ef8QvGz/LbkLRA4pflql+PWAK fZ849rIRfV7zdTAcYql/7Y7dbsgc/3sApWAELV7dRBjKxh6qxI2FtMq24vcimr10MjQM fYrjxXKulIIFPk36LXmKi15Gua2kKMge2pv1kReJOicYEi4bqKx8mlh1VL01JLGrE+H4 vh9Bs/Wb6m8jLI9vXL0BcZQmkSb/GZJw5Dek84v+eocwphfJicgzzZwobiBSl4w3l/8/ XxdWLFmlJhIr9RWtT1txF16X1WGvOk2GjKA6LS0n46YpomXhmUa4kz8+Yz7dhE6EPoAQ 7g== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3n3e0w09kb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 13 Jan 2023 22:31:09 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30DKwdj3006706; Fri, 13 Jan 2023 22:31:08 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2177.outbound.protection.outlook.com [104.47.56.177]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3n3etdjkpm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 13 Jan 2023 22:31:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gfOqV9YRSE+4HTuD/oYDSoVVA9mWBLvgPy5equXLURJaxp6VncCkOXrzk/HCbeHwOn39kibSG/yv/cvSBeQWakNRQC97A3O862tvLjTZ0W05SCY20b0MY/2XpB+YPx3CeFpvnkCM/OY0oFORyzI1xluDrJmJhv7EhIoKrQ1/tQ9pjZ95Qu6d2DgITZXTCNJ70p+RV2tEwM4sydFjZ5u9bEJ45ExOz6Ok/df/ulPvVSrngLc9p11qr+QInWwKbn7kQvSExkc13qbj0clr29cQBhcpuYaWmCd1OWL60Ugi6F6EUPxzaKoZQNP+kyScM1KkNy9Z+6J2IOmqUAmxkEYTiA== 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=ia/pKYvs485DK07VT5Hlv1uptsr6AIwYUeTt8NNpORU=; b=Jq7C+tDpIcCRe1tnouLR5dc9YkLLS0/BQladBDCWnTgXhIAaA9Y193N8AT6xRTapVp8eOcAvdA96MVmSATf+tIRsoXDNggNqTvM7N511SwxKejWDrygogiKM3j0wVr9J+4HrGZCAQb6e2Im9kMz9b+EakDjBNU/WekNNfpilhfvaxY47vp/fsjcbQBpVXabVaPdmpZ07yx0AQH3/BB4G4N7/qOEDYx6GDY7jRYjnrp2PTNtzuLZWrc+qrahwf8+k3WbDUpQYkvfaNriA/8fVPT9vaySYk4/77lZUnVcxdagvXsminnht9U3or9l+LMpiZsHDm/Ml6v1xw+x1mKD6oQ== 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=ia/pKYvs485DK07VT5Hlv1uptsr6AIwYUeTt8NNpORU=; b=S3Koee86dj807nA2lgdskpnLZm7O27RKKF8JRlRWh5WDY4hyearAHyHy1YRLyKtzmPj3YncULqyL1GHNbLMRQMkavxhQH0oDd2VNNzKdAKtt2wNyoJyplZAdQXtbLH+p2MLJlkjx+eRVX5pmY4QRFoO0fEsdx/167HhKI1561Gk= Received: from DS7PR10MB5117.namprd10.prod.outlook.com (2603:10b6:5:3a6::17) by IA0PR10MB7326.namprd10.prod.outlook.com (2603:10b6:208:40d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.12; Fri, 13 Jan 2023 22:31:05 +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; Fri, 13 Jan 2023 22:31:05 +0000 From: Sidhartha Kumar <sidhartha.kumar@oracle.com> 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 <sidhartha.kumar@oracle.com> Subject: [PATCH mm-unstable v3 2/8] mm/hugetlb: convert __update_and_free_page() to folios Date: Fri, 13 Jan 2023 16:30:51 -0600 Message-Id: <20230113223057.173292-3-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113223057.173292-1-sidhartha.kumar@oracle.com> References: <20230113223057.173292-1-sidhartha.kumar@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: CH2PR04CA0010.namprd04.prod.outlook.com (2603:10b6:610:52::20) To DS7PR10MB5117.namprd10.prod.outlook.com (2603:10b6:5:3a6::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS7PR10MB5117:EE_|IA0PR10MB7326:EE_ X-MS-Office365-Filtering-Correlation-Id: aa827c21-9c6c-40ec-5b8b-08daf5b5dbe1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2HeMp3wHJmawI74fn8kEuHRKGG0V6gmeHJAyh2k8OcWMvZTMiAfLIFSSQuCxIWGjgMy3NdYNZUXs5FVa6bEHD134apkF4UzmozF627bKTzyt7af51zszm80W7jrAWCArBQYcTuC9drL2nB/L1Nc6TjGasi7yQhh2ccf/a9EPsRYLOjlkg9Koo3ZQ28uOgHFOQJg8D7oxDsLk68MFABqsV7PHSxEd0QQoXe32f/8XbmaYBsUzZiTBy7xbO7pZXCWi9R+ws3qYZ6WY0XVotaBgBPEnc/DPv5a+TvjLfsd3myJ0N5/5bWn6lfS1ITKEjajm7+oyNmLUVBySdRXm1rr+MymenFV4GnFrmTKxEfs9idkwBY/MBgINH1ze4kpJwdMc10xtg4rjt5MzjcorXXabIybMNIP08zdr8nrSSLXuYtSpBx5PBXBHPW9k4M4BNALhCshQMpxz1hf+6ESB0khTXXJytyhKTZRCJ7zxfep2k7WugOX+RgKVZ7xMaId3CFeXnEmMEHOvPb0yDcSZzctFrDCT9PKhfk1dUYnrNvwUpPTUrFfvbiUPEZ9VQ+uh9S4cvlMSEXY++PeWfiMsMJ14I35T534t7n1SjzwWwFVJ+XGx01kH4qEoTJJ7tbjae+5D4sNQ5hCTyWBWmtJ06MJe9Q== 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)(396003)(346002)(39860400002)(376002)(136003)(451199015)(83380400001)(44832011)(38100700002)(86362001)(2906002)(41300700001)(8936002)(5660300002)(6666004)(107886003)(478600001)(6506007)(1076003)(2616005)(26005)(186003)(6512007)(8676002)(66556008)(316002)(4326008)(66946007)(6486002)(66476007)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: N58X2uiiWbldboHnvSFd8wWeL4HAHyCLj1jMcFBQYWotf/dv6B0xl0aLUv8mOQaoAEQT7RV8NxAIm1a6xWPz+Lp5QmDmyBpr85ySHo8NveRQcX0Ehp+dynKhdR8rG2fmimYjy2x1UDT9hA3ghCFdKGCcVBi6xOExe3r2rgHewZJxf1ZWcFCQO5Y8UdL+/bLOSsp3eaQaBY8pqHM+9DLwyL+fiB1XKjZI4DYA0XCKUHnDwcra4O8bb1RA0Vf1h1i2ORBmCk/yP7OygF7PaIb/oT9V4QtgaMNbe3hJfIYQ6wg95JUPg3Ut9dVRCidMiyMWjhOGofxI0TIWX+Tr5n5w0yh9UMQ2Hj0laB982scZ+MKPWb8BDhPaAKRCuFgLWDa5jd3bHQpciBEcP7PuwAzJaur2gbX9LNk5/GMWopsB55l4ezd+5+OprWThmqZHnDSFP1qsgSwKGQ79O87R2yO29+aZsfzqAjmlrLHW1Rvok131BKopW6QS8kv6PjftKglnwO729SpQ6zLnetY25/RpXa6Gam1OvM+ET0FkC8o+9f0CCQBYYSPcXqyoGIcoiyVGHULT7wrwVovoVRzrBL/iwVxIyvT48FxmUjAMqKcUca3MrepiCbH0SYe0YXT449kGDEsHOIc056kEm78YTu4ZMrzADkOHasHvnj0RcMp5Iw0FLeZciG4TvOaLM482oCFhD3xFm2X7Vy16GLZAxcfGmtwEz4bBwmPkUlemJ4lFOJfGLZ4iKuIhKmzU+f80sIqV7pk/vufwkzA0vZGkCrAF6J8qFd2w4CryeIqqNyncepk5RMtkPBcSUKPMCHswBF4r+dScI6EHrCTga4BM9P9FXL8ZYvHQTPOjU3EVPmRk2xnTpouUIu4O1a/EcjWuSObrmc6gL3vNyNVfpx69v1lWNqg0HBoI5uQoVhKSHUxjjsjoBFPHyOOiOSn9it/buqLwFWjl3KwxCzrL4IXjhLDE91JSCIt3i/1Fznl1b5wI9uUCxN2+qJhx/MZDaTE0y9GaIc466QblBhoq1gUQ0Iq8ptdpMAeZOv+RUVgS/fU20mxWmkPhO98lPOz5gczxGUlbIMNcfnCEdF84iN7aogtL4Ss1YT12f2BEN5/QgWAHCY+ebtMpgfCudbhxKmNanZy7WlzEwGBsbxWUr0Fa9yEck2DSV4aUx89nZMb0gBkZWS3s6PZfN/4fnm3wZ1DSEdRD11tjZKPBNH3B+7u52eARg12eFRQ4NCC6npyPhU5SjOaVNFX/W0sUkYtSxSxSowvDobyLzSbCvymEQ2J2+Ies5J/TqmMYyBKKBwAZ3/fp5McQi7QycSY2MwgcVg/kg2kMGWn1uk4LEVK0/plZ2CoUGrX63RW+2le0Wlcq9uoPeL5dY/6Zbg7OvmQXvgwe2r4wxL2IZN+M7VTK539b2Ntu/jl4Gk1mnsb+B4bcnWzB0NXnS9vABkln31hS84vPnJzOpyYhOxTflZt1wBLCYKnmuZxph2lEKHLTSKP2EDdpWkjnA6YlkIwCnpuywUnFQ6RZkZDTOhjCV3HdnhDRbIguX7pll3vuvEgfYIyZC+2QOSXE+DmqXl86iQrsdmcbPNEFHELOmNCNVL+bxTI7xf/UTg== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: sAWb/pI9X4D9/2dzwhmuS9T50WSpSpAlbmW3bMhUKEl7Kz45/1Z7crk5/hIplFzlUlwJWTkAkzcDYRozW2WhJkhIls3mUWI/5mUSMHe20lUz9Ob9AYy2XqgLd+SoQQQ8R41PDdWAowPayVc2Xd2WIsJOYDvr+NAp+Qk0pnETy8dH6zF8sBro0ZH8382Am4Y62TiFOYWtZ9tjlvByEiW19y8ezF2Du5BX7ZcdAW9O2sLyohSRO4oSfMvuFrkPR9f+aDqNVM/tZdTeeyVLm/1Qt+M3o4DR5bz4ohSFbslzCQP09QRqWCGpdUqirXctT7ZwXLc1GFhlNopGGYIvRuPQhI6tov6DBrNU0lpg90aw2R+jBuXCWtxcxlnFQnJOrwUnMMxE9gY3T5OIg7+BYTSQNj8JZx1BK5Gd1HOyKxfRs1t9GQ/6xDo9kfo73tXlRgeHuhrrOJ9frpv13YssWssiKNwG1EODik7w3TbVN1qKsl7xUab9XZzk0sltdN2X7p7IpAhumWnvHQg31sAYdHF4/R0hQYOAKZstVUPsk52WSNZ//3vtzydemCM1+UcrC+SZj9cNOgRL3T4yEBtK361R+KV6R89/WF4tSZgGKNyeApKGglBqMGjIh4aj40WuTYYlx3kvjHULDNnjJMA4rk2vsi+39l5vqdTK5z1BUqsBro9oQQOvZVSGaz5P1nk0Ghlncvxxt67h1E3SA5s+rJzjx6do0acAgBWTPown32h/6G/uaP8yJxNIiO/wQ0lD9tXiUA7vud6J1YDbczkkXrz9gsN/jBTzcaktifQdouiMXHSEjbEfA0mJANcj3VcKhpk9MfxanUbP8vBi6kh4aL2YRGrSpDBmpyrehkwDme1QLno0kTYqvbsdjfN04r6dtyjQDOaVE1pPfpSsUQ7k5W3OpvdZtd6z7bfKhQ44yg607zjzrUBJ6l1rSRrX9wKlLnqY X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: aa827c21-9c6c-40ec-5b8b-08daf5b5dbe1 X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5117.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2023 22:31:05.8366 (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: 4tmrZS6KneDh+V8DCD94HaxelKk6l01bJMEpXEm6nyhl2s+8VpvBldSV1yADOaTg6UIOpbW5bvm0Bh3/cG9EOrinodTrrnRSjFOG1xrcntU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR10MB7326 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-13_10,2023-01-13_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 bulkscore=0 adultscore=0 phishscore=0 malwarescore=0 suspectscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301130154 X-Proofpoint-ORIG-GUID: y-v1TNK3pjDmSLTPAnL_iSYu4xlVEXCh X-Proofpoint-GUID: y-v1TNK3pjDmSLTPAnL_iSYu4xlVEXCh X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: AD6921C0006 X-Stat-Signature: 961ot4o68mwi8rs7e9zkyekzcx4edhn4 X-HE-Tag: 1673649098-474235 X-HE-Meta: U2FsdGVkX1+8rSyN0WxW1yK/5KfjziQLiEAMHoHtlKC+GmrjoYMkS6m+OOrTlLr7ZvjXbIlxl3ee4EGmj+8bXzA3hon2tucQFYjiURA7+D1Q2mTqM9Q/vgG0eeNNGVspUqSh+qBVwseMwDJRloFt6qHS3zr4v1BSQXeJHEwnkfiVFUy0z+vfEuyDkHZ0221GpdUx4ecelEWN6S9ciJpc28v3gQVIRGCCITFyXvI+b5TVwDn7jP41rG1n11zchtyxrQebkGjMBNDSzfStiNR7s77EfDz5vHkbxAbom/NVB5Tq5ntlZIkEvfz7zJXh9wPnadVBBZdFhdid2ErLfoa5Ke8lr0oILpaOHQeT2Jx7q4vRVHRYkpFX5NprxLOcN1hVv0rOaP5kX5CW3gxsBRddKEXzv0c7gYKk2jOdeISg20ps46FFr7GdsyJEoiBYygp0VRneDu6CWLJDUNcmiZzf6vE2LlK4/XuJwojThwy14+5Qdvt0cLSjp2bqWmWNCKkSYp52r+I8bb5EvvVSN/b/z1znaGCgM6ML/cTbshdOYZ9mcVzOk0gbv6HhfLXTK7u3Ec7qvSGvVmH+qr0O7MRkeTg1dyS7OJGbLDclgKij73s2fa7GOoooa5aRqGy/YsMLYb2sw+2ifxFRXyekpytcAzPXSoMOeeMMbIZFDJ3qIdQb/kIP5tveogR8X7iEVKkp44/1AGz14S/mc/u+Ev7fmAi8+8PZSQTQAdBMI52Xv6SccMFimfVvJ9RKOeZM6dQp2K+wnfMDmApMhYzK3bo43izvbn1XYPezcq7NJYlF1vBpIA0O8WnDyvZc1iayUvzUs7E0GJteAU0I8oYnuDPd9pvltKHqzrRtrzmMpnroCjnrzkx+9RCGgQoQpxwy+VZroOypXyCNMdWStheqnc9GAhBM2u1u8ITEsgwkKfMl5aI5wEOf1BjMlvara3z2i+w5ZtGHYODcKyYXMm729sO /h3KJxKh C7KieoEl6fdlReATkpNww40KHxBIQ/1sEVNpKTn2PMwxxp2KpAvqbar/YcKkXC9hNls5VDeduF4SvLYM1esHAl5THjQLYnQ49lGsdCWnAl5NqmRTneMbKGOJ/UWnMbgE9dlLr4KBJjKcGVjPEPhLU4clN8Q== 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: <linux-mm.kvack.org> |
Series |
continue hugetlb folio conversion
|
expand
|
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 540f33d8cc51..9155bb5ee570 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1556,10 +1556,10 @@ static void add_hugetlb_folio(struct hstate *h, struct folio *folio, enqueue_hugetlb_folio(h, folio); } -static void __update_and_free_page(struct hstate *h, struct page *page) +static void __update_and_free_hugetlb_folio(struct hstate *h, + struct folio *folio) { int i; - struct folio *folio = page_folio(page); struct page *subpage; if (hstate_is_gigantic(h) && !gigantic_page_runtime_supported()) @@ -1572,7 +1572,7 @@ static void __update_and_free_page(struct hstate *h, struct page *page) if (folio_test_hugetlb_raw_hwp_unreliable(folio)) return; - if (hugetlb_vmemmap_restore(h, page)) { + if (hugetlb_vmemmap_restore(h, &folio->page)) { spin_lock_irq(&hugetlb_lock); /* * If we cannot allocate vmemmap pages, just refuse to free the @@ -1608,7 +1608,7 @@ static void __update_and_free_page(struct hstate *h, struct page *page) destroy_compound_gigantic_folio(folio, huge_page_order(h)); free_gigantic_folio(folio, huge_page_order(h)); } else { - __free_pages(page, huge_page_order(h)); + __free_pages(&folio->page, huge_page_order(h)); } } @@ -1648,7 +1648,7 @@ static void free_hpage_workfn(struct work_struct *work) */ h = size_to_hstate(page_size(page)); - __update_and_free_page(h, page); + __update_and_free_hugetlb_folio(h, page_folio(page)); cond_resched(); } @@ -1665,7 +1665,7 @@ static void update_and_free_hugetlb_folio(struct hstate *h, struct folio *folio, bool atomic) { if (!folio_test_hugetlb_vmemmap_optimized(folio) || !atomic) { - __update_and_free_page(h, &folio->page); + __update_and_free_hugetlb_folio(h, folio); return; }