From patchwork Tue Dec 6 23:35:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sidhartha Kumar X-Patchwork-Id: 13066368 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 0F130C352A1 for ; Tue, 6 Dec 2022 23:35:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A0D378E0003; Tue, 6 Dec 2022 18:35:31 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 995BE8E0001; Tue, 6 Dec 2022 18:35:31 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7C1C88E0003; Tue, 6 Dec 2022 18:35:31 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 669758E0001 for ; Tue, 6 Dec 2022 18:35:31 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 2EB55AB3C7 for ; Tue, 6 Dec 2022 23:35:31 +0000 (UTC) X-FDA: 80213490462.05.EDAB26B Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf28.hostedemail.com (Postfix) with ESMTP id 9F1A8C000F for ; Tue, 6 Dec 2022 23:35:30 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2022-7-12 header.b=UMRqu6Zg; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=BKj+zcS0; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf28.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; 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=1670369730; 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: references:dkim-signature; bh=IrbPa70IMHYzOt+AD1BT/B3H7kDMvBl3kPIuZCk9l3s=; b=fJJp97x2cB0WzZQXVrcWxJBb9fKu0sRJvS/c/TC+2fHxAgpRJcWu1ts2uW+umje+qagzSM 4/TP+zShAsCX5wJU4t+1eMNpep8eZgP0MKcz6q7NPtVZcfHm/M3txRacFkLtx/fInphUJI awnYLl7OSorJWDQynNsMucmUwqLOimM= ARC-Authentication-Results: i=2; imf28.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2022-7-12 header.b=UMRqu6Zg; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=BKj+zcS0; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf28.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; dmarc=pass (policy=none) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1670369730; a=rsa-sha256; cv=pass; b=HUDXl7wrlDpdTmKo2rbIHoJZhHCbZ+LdIFsVA7K1uHQ754j8fegRKdVaBZdk/J+lfaULaP TSiAopZH41CWZjQ8S60kMcfSlBqEgP5Y4p1wZMNYZqvETZH0A0V6YDlVAxu4q7pRbPvA3/ gcOjUu92KmtlzAaArHp/CdYQbJtJBo8= 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 2B6LIeee029952; Tue, 6 Dec 2022 23:35:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : content-type : mime-version; s=corp-2022-7-12; bh=IrbPa70IMHYzOt+AD1BT/B3H7kDMvBl3kPIuZCk9l3s=; b=UMRqu6ZgkKPoyuHHc6hZO1rb6uVyOA2rQHi1UmEUR5ACwLxbPVE5e9HQx9YwFeSEkoE8 HZU+GqZEBcA0XzycH/YtKmUYScdWM/w3kgTtX6pzCb4O64UFjQVg146TynQTN1nmuQxP RbzbQikQmkGywRAdyAwFCmnQ0Y22wZeq+WDFU3kN5mby6kpYyvhG8tru8m7rcN/Tsx1O vhjZf2JVoxCUsa1K5zNipaJBITmjtA80Vqg8K6u2qKXDXgRzRYemcaj475prqIw5Crt8 ahpPt4uf2jkdBIi9KZXdhUAAg9x51tYXnHhZPECm95h8gPqrjLRTWcg+GK1z/GvsGS9a NQ== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3m7ybgs41k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 06 Dec 2022 23:35:19 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2B6LH48d026205; Tue, 6 Dec 2022 23:35:19 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2176.outbound.protection.outlook.com [104.47.57.176]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3maa8enxtj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 06 Dec 2022 23:35:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZkivcXa2+bM1zkxLc3WBkl1Bmq8ro6MQh90gDblLrcwXfLt69v8NIsjFzPSWuAHcd2KUYsZI6FXe1x3lVZ3hgYMZihhAxLybfGx/NSePANChP+xOdKFDBj6x6R+Om5jvZwpgzsAD1uDXWrOMfxQCcNsDm2OipC1gPZKahIhUTwgkbVEXRfNEvylMwTnYPyajrBybIGkgFijFKSqngmhXCnLV8GJoyHYMa8w1FLYwpQY7zRGVhibc4GKNFVWcsT/iNOinUtIncHpuRTnH6w9I9l5D91ECeHM0mtKH/UyHKwasU9HTwoX4YDR4sXKAcXpi4sy/7dL8E+buYWRIOCmhsQ== 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=IrbPa70IMHYzOt+AD1BT/B3H7kDMvBl3kPIuZCk9l3s=; b=lq39/pfI/aqK/j6L+26hc7HEH5RlT49E40bQnAuIzfonnr3UdxYcMZ92QQHUArMvpftZccpgNibonR6QmaMOHugjY/5kkRcpo5iJi+o+qrzlR/8jgGFpZ9febzjZDxXusSd+lB3SbizHpIwwTqK09kTIl2z+zWUu4P1q6o5VTqdMFTv3k1r3b6vz9YlVrXb9VzrKjYlGkEzOeGzwhq+ty6/HlPZkE79UKaJYE1t5QExCWNjpjLivyAps62vXf+SQy8InVf9khqAhe6JageO+zozoVGX9/TpKSs4Aj0Bc+BJdYadVTHFanEzwcdChhTuDVmuq5XSHAlkV6NmE9BPbVQ== 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=IrbPa70IMHYzOt+AD1BT/B3H7kDMvBl3kPIuZCk9l3s=; b=BKj+zcS0EPpsOhVRxS7LnPE6xg+fJGIAn3rBe7kaH946XA5F1/9YkWoQgGdA/qEDvQS/l4O3VDypEkfIp7k9wdSqEBlvBeKRp7xXfrmy8JKGddoYc3Je7E9ccOS/f+brLNifEWj207uw2v5ytiadYUKi7GslLUM3qATRoKA9cBk= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by BLAPR10MB5329.namprd10.prod.outlook.com (2603:10b6:208:307::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Tue, 6 Dec 2022 23:35:16 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::51be:1301:5ec3:996f]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::51be:1301:5ec3:996f%5]) with mapi id 15.20.5880.014; Tue, 6 Dec 2022 23:35:16 +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, tsahu@linux.ibm.com, jhubbard@nvidia.com, david@redhat.com, Sidhartha Kumar Subject: [PATCH mm-unstable] mm/hugetlb: update alloc_and_dissolve_hugetlb_folio comments Date: Tue, 6 Dec 2022 15:35:12 -0800 Message-Id: <20221206233512.146535-1-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.38.1 X-ClientProxiedBy: SJ0PR03CA0177.namprd03.prod.outlook.com (2603:10b6:a03:338::32) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|BLAPR10MB5329:EE_ X-MS-Office365-Filtering-Correlation-Id: 726386ed-0cfa-4555-a35e-08dad7e2879b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BtfJeJMopXu4zS/U6pCKjlvgPVhEOjEIpmTreLm0ZPBXhzwXttSYxoL4BayTQxUngzfpDEf/5SEeFPHb5VgCwBBj+ToYlCYd9XaqnPhzJahGt08aeCR1qyulqLK96Kpdy8yMyL3TgNoZ4FGIemRn6FiD2mApp57mRgMIfSYcBEsb0naey+0v3deCNksYrCkFWFg1QQbCGF52lRpfU9L0jLC/vi598OdPK2ROjR4no1YAjMOgEWQ+0gyyxv8g2WRMUVoYnyJphSi1RguYJLZrjvIAtj/1nh7g7xQJ9/bI1rjxeCu6xMTAQ9Ck6FYuw655zPgUiK0xXW/HPtVBJPaOaVs9a1NDbGfDzjwFGh+FH25AZy817mbywwjM661VVApU/RUbPFhMSABh/NE0Goi7ZLLfwXbF7IRgfmKvcQJ83cVlNSlfF2hCwJGxgBr4qHzgqAgn36kCcuBZHPJ5NaOZ9OJyvyRRKI4O6e1bxZjFM1Rze/B6ZO63+5wj9f0Z1fBlkDRwVwFwbni71fxqruGvuUakVI3n74mddDJOFEpWJjPx19kCRqJPWGl5wgEad0yp3nZ1oNJlKgAQLWQPQEHJ5+E5lUkkU4kH4qJVNQhSeHqVtrPnOntF9UiMpS5QzDFmOqbBOgKRY5rVhi/6DymLvQ== 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:(13230022)(396003)(346002)(39860400002)(136003)(366004)(376002)(451199015)(36756003)(86362001)(6486002)(6506007)(478600001)(38100700002)(26005)(6666004)(4326008)(44832011)(107886003)(5660300002)(41300700001)(8936002)(2906002)(8676002)(66476007)(316002)(15650500001)(66946007)(66556008)(83380400001)(2616005)(6512007)(1076003)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PT1KNBiakDqc9zKJ1Mlk3AyPxXJ7MT956CK9PL0UJkEts0+gYvLzqDO3aSQCwrIXEaznAW84RQAxEJsE++kdq+h9H3Je6ZCqZmgYEELot6TZWvLDlVe1RxlpPkmTLkR5g35+JivyY5JoctABn0QDmytBJRPLqowuDsnD0oygXtSbkYtcGkMAff5Nzi4QIc/6kiwwbOKXatvL/AaFnaULECdKe9+Z2AkUtolpcwtotkAiWNsv3dTuFFEbIWolTX8k6XKT1evov2f3c2nrj642IYKVm/d2fufIt+c+S0uFepKv+RtsiGF2aqJX5ldvtAMzKg1MFeCdCotp6Ot8p300IMFMxfDvm8qxLyQvVpVbMlIe7xCw1+i9GedYOAU2CRTh1xLKtIZ6jJX5pxx03OTH9H/vil+85JrAm/JH9UoZScRHgEP0CDpBImIxmZWDRHnZzy1niLf3AAAT/k+H2+89T3Cf2gM6Sv0QLDwFzb4IjSqC689+kXG0xWcrxAIBh2aPy+0mAgnoxgJHArEdtJkeZboeYwWwxVRnN6+04QJLOEzxJhoV15CnZS5H001Hid5pypDxcUsvCz4B/RqB0a63Il1XNZqVcMwBh4/05vI6UY+hrvHe3oUCBioTI5OpY5wdlJFcxgsoljnOyMSbFwn0sgvZAw0nkFplMmQ1/+FeYlx6V6dALH4tMueefW5h+L0P+0urfClacUN2SGMRTOVhizYa+FcNGG/osJVA7RGCfCQJQk5Tf1rZbCHdamBcqHRHLXTIPbXPluKARU+jB4F9jwhooTWAudemvvaF9MXOahVBKOGWn8MZYbmfGfiMLjXizrWFeXe7wxY3KfWqf11Y4IU2moozPtMNW5zvae84buzN+NgBLzsbT0ylIfUQeVeN3WGFfEfBTR0TIoFEfcsAwxrxJPv8flx9YWtQRlK12REXPZZ7SNcyrqN1s8dhA9fvo8ZPqBixRwy3WoeTFo8BPMHp8D8dqrRl7ufS3qwsU9/wqWZaRX7OJdzj8h7J+bhRtddDgfdnxPn9Lp6P1ER1HOSPfNTMrNQSrmY5ir0uYJzU2Zn6NO/r7OYMw6LU+4hilWFo6UC7/k/XImBC2sIoohFD5W1SX4kz44Xl9R4T7QUFgCIm1SSc1B4roUmKVl68z3IFax7HAjaMaDN7mudG9KGbsImZb+Yq9mNSuRniGfkkLjD/6h9BJDlY744zVKJWGtrIfCuevp3a6k5mTooDRDQ8059StaLQ3s8AYuuFI719ptm6kdiw2Ez+nAVn9H+/zuC33XA2xsNl+pHVtCkYecBxxZ7VcVnKdW7zfnVGLiiriHN8gLZjb0WParPd5HW/3pB9kzWz25mIfXxpQ4CFxFpVc9P6x60zK1UTPOCoJIk1q0B5tgFPLQG2UwRPQHtE71vSioUoITP4tB4XhqgbGxkES3QKdjIBELE9u+YVVwxPOSm7XyNnYi/EupeSjiTT0qXs+Fm8Qh+XzeTiVJIrvy72CbGSxLRnkLutzVA7BEN+g5gbrjbZ71iGT4RQbvO8cVfZP9f0G0IM3qfc5KdhiR+eUVAtRdg7edL6znygE5AJoqogWwI56UMJ35LT9m8XqYTLEC0JBK1lzOKnKqdE6A== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: dKPRS/BXRj+rxlRqtYylA1UfV4PB8I4otHbjxyTUJSejIpa32x9hp4tUgeUyJGxQ9idvXX9o5lYjWo59l9waATC3kPhm9huFqGcq6daZoT9j4rmxZb2fY1UusQIm0MTC0R+sxCk98R3VqsIVlfuHrgXZGTgvqlpebQJ7GwQqLWi4DweZ1AGL2a7syDHmHY5UCOp2EDG4YNAbiSFnHi2SsDi/xGN+ovnN0AGDyNJAJwzm13aOwPuiaEpdc+WmBJbRZXx1wF987ideTKtJjj/KCCBaIpWbOvn0lJabk3xyMmhDLNUevxA0hCVUprSBWv54lZD43vDUHIq+Da7JY1DSB+9LqMMfYqWnLr2IRUtK/3kSRMROMYgpfizMJm6JYvWGlJOgfcrJVHavq5UPQs0jKLVMVaEdEVc+ExS95j0RQRY9iSav1YlbQ307WhKer04046C6z+D/GwK7JSloawJXCUz2ZoSUnFMt+vHcD4HN8cKtafnq5HaXhU5TgEbJ8loQdnt7oXCeTPlYrZOatdLnM3pZ7Pwlp0MuCVVKEjucUZtAq7sbmAdLZeW97SSfXiQOqN30Vmy9UA1xTEz//sTwiVAcKo74nGJEPNJQ7YL+/MN6Qxi+wxcM5duOxaLWpSdPi0qgLaie9tV+TaUooRsvtDFpCvgQWP0ZgKzVAQKoA2US4H6cRahrJRiVmo7E2N5uMF6xeXQMFm3vVsCkbAEIr9/io+HJysHalv/k5Z0RQS1p4asBkYPyvr87X33110MCvDqznZ2n+nxPpafcDs9CIQNwBJUvbPQ84rr3C2CB0hVwvUcvj1nfYDhQMfGQM6sJU2lyGTWX4hWzTHWxHasayVuFdxRBju00RIz8+rMkQAiDQRI7OnqBXGaxa/PWDKSx9OhmO8VJQGhB2sprhb1nLuRbiQ/S4MGgJ82eaiIqOjsxpw6Rq7IFlHlFsszde2Fjy/sRabG1Av9cB46J678sMfGNZEj/3/ZBaptbdRKVTD4HogKurnmrOw4Bv47CwEkGmwjBxJBERBEdehVIDyRWmg== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 726386ed-0cfa-4555-a35e-08dad7e2879b X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2022 23:35:16.6863 (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: GfDpxPGHvFyqzXIGdZZCX4CEHU3KVAFrzGLQsjMkME+ITD/uPPkWRYZp9WrpwMyBp9chqImBIw11BscV3J6F/SHN9WSrshu/v76eptfFwEs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB5329 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-06_12,2022-12-06_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 suspectscore=0 phishscore=0 malwarescore=0 mlxscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2212060199 X-Proofpoint-ORIG-GUID: -vRdcL6c-gO-lJUPSqfM1W3sAIL23jlf X-Proofpoint-GUID: -vRdcL6c-gO-lJUPSqfM1W3sAIL23jlf X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 9F1A8C000F X-Stat-Signature: x3z477hpii49i6kfq3bqq3xiyfm4nrs6 X-Spamd-Result: default: False [1.19 / 9.00]; R_MISSING_CHARSET(2.50)[]; BAYES_HAM(-1.41)[83.42%]; MID_CONTAINS_FROM(1.00)[]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; SUBJECT_HAS_UNDERSCORES(1.00)[]; DMARC_POLICY_ALLOW(-0.50)[oracle.com,none]; R_DKIM_ALLOW(-0.20)[oracle.com:s=corp-2022-7-12,oracle.onmicrosoft.com:s=selector2-oracle-onmicrosoft-com]; R_SPF_ALLOW(-0.20)[+ip4:205.220.177.32]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_SEVEN(0.00)[10]; RCVD_COUNT_SEVEN(0.00)[7]; TO_DN_SOME(0.00)[]; ARC_SIGNED(0.00)[hostedemail.com:s=arc-20220608:i=2]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[oracle.com:+,oracle.onmicrosoft.com:+] X-Rspam-User: X-HE-Tag: 1670369730-983514 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: Update the comments inside alloc_and_dissolve_hugetlb_folio to reflect the conversion to folios. Signed-off-by: Sidhartha Kumar --- This can be folded into 73133b81bf715cc9d426d177c07d97f50061c28f mm/hugetlb: change hugetlb allocation functions to return a folio if that is preferred. mm/hugetlb.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index c946abb868e2..e70ff6768596 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -2766,8 +2766,8 @@ static int alloc_and_dissolve_hugetlb_folio(struct hstate *h, int ret = 0; /* - * Before dissolving the page, we need to allocate a new one for the - * pool to remain stable. Here, we allocate the page and 'prep' it + * Before dissolving the folio, we need to allocate a new one for the + * pool to remain stable. Here, we allocate the folio and 'prep' it * by doing everything but actually updating counters and adding to * the pool. This simplifies and let us do most of the processing * under the lock. @@ -2795,7 +2795,7 @@ static int alloc_and_dissolve_hugetlb_folio(struct hstate *h, goto free_new; } else if (!folio_test_hugetlb_freed(old_folio)) { /* - * Page's refcount is 0 but it has not been enqueued in the + * Folio's refcount is 0 but it has not been enqueued in the * freelist yet. Race window is small, so we can succeed here if * we retry. */ @@ -2804,7 +2804,7 @@ static int alloc_and_dissolve_hugetlb_folio(struct hstate *h, goto retry; } else { /* - * Ok, old_page is still a genuine free hugepage. Remove it from + * Ok, old_folio is still a genuine free hugepage. Remove it from * the freelist and decrease the counters. These will be * incremented again when calling __prep_account_new_huge_page() * and enqueue_hugetlb_folio() for new_folio. The counters will @@ -2813,14 +2813,14 @@ static int alloc_and_dissolve_hugetlb_folio(struct hstate *h, remove_hugetlb_folio(h, old_folio, false); /* - * Ref count on new page is already zero as it was dropped + * Ref count on new_folio is already zero as it was dropped * earlier. It can be directly added to the pool free list. */ __prep_account_new_huge_page(h, nid); enqueue_hugetlb_folio(h, new_folio); /* - * Pages have been replaced, we can safely free the old one. + * Folio has been replaced, we can safely free the old one. */ spin_unlock_irq(&hugetlb_lock); update_and_free_hugetlb_folio(h, old_folio, false); @@ -2830,7 +2830,7 @@ static int alloc_and_dissolve_hugetlb_folio(struct hstate *h, free_new: spin_unlock_irq(&hugetlb_lock); - /* Page has a zero ref count, but needs a ref to be freed */ + /* Folio has a zero ref count, but needs a ref to be freed */ folio_ref_unfreeze(new_folio, 1); update_and_free_hugetlb_folio(h, new_folio, false);