From patchwork Fri Sep 15 22:15:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Kravetz X-Patchwork-Id: 13387783 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 BD035CD37B0 for ; Fri, 15 Sep 2023 22:16:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9A7DE6B0387; Fri, 15 Sep 2023 18:16:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 957796B0388; Fri, 15 Sep 2023 18:16:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6E81F6B0389; Fri, 15 Sep 2023 18:16:38 -0400 (EDT) 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 58F046B0387 for ; Fri, 15 Sep 2023 18:16:38 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 001B1407C8 for ; Fri, 15 Sep 2023 22:16:37 +0000 (UTC) X-FDA: 81240242034.06.C91F871 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf19.hostedemail.com (Postfix) with ESMTP id 9FA3C1A0019 for ; Fri, 15 Sep 2023 22:16:33 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=FWQpehyU; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=NGVJn2ID; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf19.hostedemail.com: domain of mike.kravetz@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=mike.kravetz@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1694816193; 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=Z0pbkesaKqvYJeLsJht1bKFE7pKSDUHfig44BRUqGi8=; b=Bb9Zq4DUAfJMOo/VHTq7K1h0x/IISYq+2+fHG2/H3UvjuwPnv6/vJmTFS3btotKa6KhhAV CcdQ8/q3reggLJJPWWZANCIRvNI4c+X/gRsHhIvUzpS8eTBIUmffY+is3/syBHmIqID+cI ytZ9slRjW063xq5Iz+9/uLCXK2kJCS0= ARC-Authentication-Results: i=2; imf19.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=FWQpehyU; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=NGVJn2ID; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf19.hostedemail.com: domain of mike.kravetz@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=mike.kravetz@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1694816193; a=rsa-sha256; cv=pass; b=q07tfU06DzvPCMxzDLPryadYpr7SjX2DptZwKIYITknkUZIxXu3Rh1FHU9GihJjZlY6K+d HgTKE+W5STCpDcAx9NmJbZjIV8g61Au4+N/YNoTFw/EKIKU9h5RBWaryonFa+MhoSBHXQn T+2hWVDbjVk3GDkA3W/lMyLD6akitZI= 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 38FLwluU027810; Fri, 15 Sep 2023 22:16:02 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-03-30; bh=Z0pbkesaKqvYJeLsJht1bKFE7pKSDUHfig44BRUqGi8=; b=FWQpehyUwthwsc5kxVZDdu8WUc702caUPjl2rJHESCbDlSWfXujXqEgTm9S6E9kGalqv bBM3qUvyJU01jb2O8UzL/eISJqOtG582f1aismjC+RdusIFpgkdjC4S8BWO5eqy47X3L 4eirCjE1Iqo/Do1pX6mADoEi1TvQGNGp/czK5sQLakPjwvwuTb/EwlFOeIi4V5axN6FS asNqNOwxt5LwBj4FKw+1S2Oi1J6XUVpBqMrar6NyoWLGc0A9vN+rFnWbViSZGCh9sU6t O5tv1C5Iwcd6lYiEWDmkoECR37JZPPwFA3zXnPb9AJ/xRyhz5Ld4CBXz5GepwY6BgaTV Hg== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3t2y7kgsrk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Sep 2023 22:16:02 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 38FL2HxB003116; Fri, 15 Sep 2023 22:16:01 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2176.outbound.protection.outlook.com [104.47.59.176]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3t0f5anfkj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Sep 2023 22:16:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LYrwTpIytPZK7iR9/l42nR0ceMsb5fiAJ8rjwvCEdWYP/dj0RgZnbNs0FS5HOKXzhY4cTZyo+KrFFjfQh8rNx+BAraO03zfx4u+ld/o9zN8wJmL7aYerB7UqUzmrdGFsmb0LuVffV471Io7OVQziPxFS4sZWWJy7pJeUTmcVFsTJQ12LTEQu462tvwss5UJOAWgzT7f/wFPoQie6y6gcFK0yjlZdUBzfRuJHeKfZQ4iowGNuNBAtAkDifK4dmmJHplLM0Al/A//qtCvfLvfeBlAFNxfn0/5A9bMV5Tvlmf19k+tBi9yLxEkGGYVEbIMJBoJvHrRftCOKO96V4FjSsw== 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=Z0pbkesaKqvYJeLsJht1bKFE7pKSDUHfig44BRUqGi8=; b=ofsCfJGDoXPt3etQFhlenECJjwrwkWC5gwVvDZ7vOQsqFG1ihmGVPTQQwOV1zsrQ5O+cpcd5Qoek/jnBse1es6/wpRI1f7Shi/O3ukgcCeI8aPx78XKDiO5BmTJlNbXOv3/9SdhGJWh3iVQUledgW3akslWPUD8caJ/sqpsIrcloJXXkZ6gdeZBHkqQeFRhIEt8QXSI+euta/yD6NOXFL2loAScTm9foY+NkU+UCTtn/KeK5X3vUNa//6ZjASAChMeMPIgub5CTDQ+FIzjsHPZDpYMC4rXA/RnwS1kIn/FsHFJsQxEPQfB8QISHBYXwPdbXAgonbDYp8WcESzbRdTw== 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=Z0pbkesaKqvYJeLsJht1bKFE7pKSDUHfig44BRUqGi8=; b=NGVJn2IDT4zc1hPa98+kVgBndMIbmhGPDxL0SsekkGC/4ITE9Fkm4ymnyx63cbmHRAJYih7HpcEscjKabr3z8hzsKr8CNPV6xn7zsTYJGNp1b3xnL8eBnlgznNcDsZWH3BSkld7gDBRTuMiBpYlJ9KaoPCf+pXbT2HSjPH5000c= Received: from BY5PR10MB4196.namprd10.prod.outlook.com (2603:10b6:a03:20d::23) by MW4PR10MB5861.namprd10.prod.outlook.com (2603:10b6:303:180::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.34; Fri, 15 Sep 2023 22:15:58 +0000 Received: from BY5PR10MB4196.namprd10.prod.outlook.com ([fe80::c621:12ca:ba40:9054]) by BY5PR10MB4196.namprd10.prod.outlook.com ([fe80::c621:12ca:ba40:9054%5]) with mapi id 15.20.6792.021; Fri, 15 Sep 2023 22:15:58 +0000 From: Mike Kravetz To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Muchun Song , Joao Martins , Oscar Salvador , David Hildenbrand , Miaohe Lin , David Rientjes , Anshuman Khandual , Naoya Horiguchi , Barry Song , Michal Hocko , Matthew Wilcox , Xiongchun Duan , Andrew Morton , Mike Kravetz , Sidhartha Kumar Subject: [PATCH v3 02/12] hugetlb: Use a folio in free_hpage_workfn() Date: Fri, 15 Sep 2023 15:15:35 -0700 Message-ID: <20230915221548.552084-3-mike.kravetz@oracle.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230915221548.552084-1-mike.kravetz@oracle.com> References: <20230915221548.552084-1-mike.kravetz@oracle.com> X-ClientProxiedBy: MW3PR06CA0014.namprd06.prod.outlook.com (2603:10b6:303:2a::19) To BY5PR10MB4196.namprd10.prod.outlook.com (2603:10b6:a03:20d::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB4196:EE_|MW4PR10MB5861:EE_ X-MS-Office365-Filtering-Correlation-Id: ae097464-1a2d-4a22-db14-08dbb639565c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OTSdzMljbPRDqINwlsRZmDdjF2FeTHyVCcokk23ZKa6vvZJj052eY+eQfeYYFqjp3OHhB73tVjjcik2cE5lo2fRWIh5V9MftidxX+8/KCp4kZ2qY0GmhiBKj6rpGNgOM4Cx4M8vJFVphIY4sDyZ0vCfnKDMLfmq/IUzLua1SbBTLMatDzzPPfzfIU2TWa9Aew1ihZv9ioJLPMf/dyGhy9vUnXelvJVNakvGJAM091QpEj46V9KQFPsEMi48UiHqHngX3cZWh5simqcp2XlkVpgUBGfHwBf2ks286X4rfrRjtEKqZ/VqEG9ekzX5wm1/oHvc99fM9zCZNlaQenpPMsmYGn3Hiplcp4O7FRbfRcuyjQ/mAqm5od60DG/nPbKrYRO5P8WeQd/RjEyGCQpLTZU+OMyVU2a4rapjWydyvXp/MmlFc/IbdsqT3BkRZ9bt1A5XUCYh/QdCV1lNWKZkV/HzzzBpUePCyihX8RguR5m9VRuHhEbLXu0M55YYzuE2VuPCamjo5+W7INIL4ndaVg1CBqHlLW4A/C03MqNDh/Lj5fd/4g/veeScM/BUYqlLS X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB4196.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(346002)(39860400002)(366004)(376002)(136003)(451199024)(186009)(1800799009)(44832011)(86362001)(36756003)(83380400001)(2906002)(38100700002)(478600001)(1076003)(2616005)(26005)(107886003)(4326008)(6512007)(41300700001)(5660300002)(6506007)(6486002)(8676002)(6666004)(66556008)(316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0Ygl3d0/kwjjGHvHR4MEpUGYjpy93RjrSF8WbHM7/JNjeZuO9+YDBJfULWXz50mWv++ee+XCZ7cCEoGoNvLHNDOm63niF845QZ/rL2q1Da2qV/zxYvnGZR9UCA75kdBJjL8VvAmFnY/FklUI6jctzJNu2nbQEkPyAxpQmDfHMDDlpEH2lE8GRj2p+KAWYB+6zQVRJn5Qu06t0VOUEhD2ZdzXDzGa+t+RiJvcDhc+G6D6Cgli3CiJi7GEUxhcjLVbFL9CmjPivYWfQm9W7IsSppKxlyuNszmx3xppnIOSJfOTfIqa/la7yzg3ADzfsVaVyAdxP4i8H1Exl2KgAyB/0XgXM4M2UvJq9SZXrDsjaJ3T3L8SusfuT0atC+wk5j47xuoXRGJYgHZa3mGF3nosEvYLmdPoJWpWPoOECcZi4lucFKWkDeoPGHWRla/xObVkAKxFGeQRIZCKqRRhhqhky/edwLfk4BlYL/cNsuwlh3pZbmt0EV8yX/tWUdrMi5VP5aJuyzUQSXtBDlSenD337MS1uoJMSJ+hVItqs1xyaiOcDfnIXI01ZmeU8dzn+N3fMJIKvGLL1MRsQlftRuTdwmYufyX+013c/jE4ggqeCqJf4TqAM2TOTOZ3k9nq+KnEc3xqTYbtNR9E8wipXsOAqNgKTtx37hYWM/RhIrfnCwrMgTCN9ELs4SOHlyy5L3UYjsIQ9F0vY0+UOK/+qmCUnGXeyj9l6TLsY6NCNMnYE9I/L/sovm6ceK5uYiEyHOvkdJ8rKuqmP9GuW8nNNHUVKy2wUgZohYzMokCbEJA X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: ae097464-1a2d-4a22-db14-08dbb639565c X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB4196.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2023 22:15:58.2964 (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: PISC3D/BETXJx215CPZKZ6fipM5XzhFx27p3AOkyw5pNJjcVbv/IqAjOBy2TIGq0trOxcjELuR/6PkrDjZ/4cA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR10MB5861 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-15_19,2023-09-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309150200 X-Proofpoint-GUID: hzSeL9k9eZgHxR8RKFNmecbR62ozPBZz X-Proofpoint-ORIG-GUID: hzSeL9k9eZgHxR8RKFNmecbR62ozPBZz X-Rspamd-Queue-Id: 9FA3C1A0019 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: 1uuxpq3pixoqx35bdywcy348zkrxj5x4 X-HE-Tag: 1694816193-303566 X-HE-Meta: U2FsdGVkX1+Gz5KtY+OHVEvbdcMgikKqZyKljuI4Je5IiXL+OF4+pDObb/qpgZnlQw5gq/JObliiEAgk3ldKKiitCpB6BRrCkwQG4xY5+VbQNjNypQm68WrcatdmNmJtu+0YySsllQBY03gY1Z7Xn0Cf21sDZuiJ7Jm0PFgnOefy1UnsmuFsGLnRHYzCeTiCdBWs7k99m3nnMe3azWTt3d4vqY7KmRWmUGwCtMCLxYe8ggKw9/Zl48rI7xcxbDTkDNoy5+8oWAErfVn8aNev6wsQpLvxbofcDppZTU+QaED4eX46ZwDlirZD2UxP0TbWFxjKPLqeXcQGbld1rzmHEBrSad7EkgWcf8Jun8Pit+Jyyd8Ccn6lOLhM/cLuDKRWWL/d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1F2xDuJIgkOyWu8ftt898mI9Xzls8+6OzbYK+dQuocWX0t+Ys8E6MpYZHdxX/Ow/iHItc/IMmf2oJXR0CVBcBpehjIR6s9m7JRPlrR2Ulla3eNrFl6GxKOktrUwPERem1nNET0FfXOSsyeARQxSb6IK2gnhHc0cIVQFgV7JuiMcF1/U0ta9EwbJRvWR+FYRWZf2/1kkoALRrUAbqnBED+5oJOJ7aI8Q= 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: From: "Matthew Wilcox (Oracle)" update_and_free_hugetlb_folio puts the memory on hpage_freelist as a folio so we can take it off the list as a folio. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Mike Kravetz Reviewed-by: Muchun Song Cc: Sidhartha Kumar --- mm/hugetlb.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index af74e83d92aa..6c6f19cc6046 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1780,22 +1780,22 @@ static void free_hpage_workfn(struct work_struct *work) node = llist_del_all(&hpage_freelist); while (node) { - struct page *page; + struct folio *folio; struct hstate *h; - page = container_of((struct address_space **)node, - struct page, mapping); + folio = container_of((struct address_space **)node, + struct folio, mapping); node = node->next; - page->mapping = NULL; + folio->mapping = NULL; /* * The VM_BUG_ON_FOLIO(!folio_test_hugetlb(folio), folio) in * folio_hstate() is going to trigger because a previous call to * remove_hugetlb_folio() will clear the hugetlb bit, so do * not use folio_hstate() directly. */ - h = size_to_hstate(page_size(page)); + h = size_to_hstate(folio_size(folio)); - __update_and_free_hugetlb_folio(h, page_folio(page)); + __update_and_free_hugetlb_folio(h, folio); cond_resched(); }