Message ID | 20230905214412.89152-4-mike.kravetz@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 EF166CA1019 for <linux-mm@archiver.kernel.org>; Tue, 5 Sep 2023 21:52:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 738D090000B; Tue, 5 Sep 2023 17:52:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6E8508E0014; Tue, 5 Sep 2023 17:52:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5157490000B; Tue, 5 Sep 2023 17:52:47 -0400 (EDT) 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 3ECE08E0014 for <linux-mm@kvack.org>; Tue, 5 Sep 2023 17:52:47 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 147B3B3E58 for <linux-mm@kvack.org>; Tue, 5 Sep 2023 21:52:47 +0000 (UTC) X-FDA: 81203893974.09.E236052 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf26.hostedemail.com (Postfix) with ESMTP id 97B3A140021 for <linux-mm@kvack.org>; Tue, 5 Sep 2023 21:52:43 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=G2ASeubl; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=PURaWeCo; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf26.hostedemail.com: domain of mike.kravetz@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=mike.kravetz@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=1693950763; 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=S0ppY54OPBFldkJJgVsH20gQesPTIK8uqEJvN7NBREw=; b=RZkgDAXmYfdpo7PBv9EPXwdby/Wcxf+HIKG9HOM0DeTIEcaw0hL90a+zzyJAn+CdzF0crL Cp48xuYvrJml58kAMOARZD9Q203HQFYXtCODbW41VCrG0xhgiRXvRyNRoOwaiOO72MTpQ4 Cp+oA4oIzJ9q2rqBe05W7G7/QunbrbM= ARC-Authentication-Results: i=2; imf26.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=G2ASeubl; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=PURaWeCo; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf26.hostedemail.com: domain of mike.kravetz@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=mike.kravetz@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1693950763; a=rsa-sha256; cv=pass; b=D5dqKYPyT8iHlv1sbpFZQsC8pof2/EAnlV2KF8IZQXPQFmZkjzrNC5XTFHeGEjuw7/z4Jz viq5yF/WN1O7UFlpinX8JQMIcjka7rROqF1wM88iJBi9TqQoq6PDVISQWz5POJDAIHxA1b m3f6B9PEEubSHwCWMFANrQWC5H4G02U= Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 385LB2Wf029608; Tue, 5 Sep 2023 21:52:16 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=S0ppY54OPBFldkJJgVsH20gQesPTIK8uqEJvN7NBREw=; b=G2ASeublQqKek6yxL+x9Cw+MclL9XHbORzM6PZJCrA4FQgQ3zFZ6cDa6Qb93Bst1ma2p Wd5H5CPrr5miEdR5SQ5wx8DNrO7Xe6vwcFeCegN79z7ztZtSRhDcbBf0dX566izHfxJz v0lFPfCml3nKo0KMCFRHvR9eFR2fMkka7pAvg67aveyygJOXRUkWYt1OzUAUW0iIw9H9 wVs8wAWCIlsi2ClUmKHpjo3kLpcnb0ZCulp2a55Z/kRgh+f31iU5l+7/t1hwHsAm5jz5 6M0PyZWzdnf4xDcDdRndWObfcM+5Fk/wdnmHNSlzIzN3y800+nL5MRlQrYQyRtMqAD5a WQ== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3sxc0sr27r-12 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 05 Sep 2023 21:52:15 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 385KKIJr007701; Tue, 5 Sep 2023 21:44:36 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2047.outbound.protection.outlook.com [104.47.66.47]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3suug5c6ur-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 05 Sep 2023 21:44:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V18DeOYJgXMNXYtek4h9RElCvDMa5B4rU7tjRxWTHLyxs54d6B7ihJE/DkuK/6AqmtE74BNJRHxCU8vd7hsgeSb1hGdlMF6a5q1RGxj7KGu9P58koRXC+KAsuaPfG1B8vX/wivygaibW0by98JwrqoSW6TdMjV2cZ6iO4o5MNGVg87ZYqnB9n0yQWtX3BhRkMi32x5SRMcARfCcXuj8VzKxLrBzpsaTkOpvUHmMcVVm9HofrFaGHKQLTsy+Vtkyw5gvA7SuOZq+CeY0JJ78QJV+K8VK6F+lOioupb8DwbqzRCQRpGkGIXMepYxvM1QpTtoRz9oGdMPaElMK8B9eaEQ== 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=S0ppY54OPBFldkJJgVsH20gQesPTIK8uqEJvN7NBREw=; b=ZXfbhtJ7K0fgEO/+JyIyxeVDIDGGO0RWbufd27h9IcrwoNRkrSKeCJkFdBNuw/79e74nlkMOLxf9zmYHep0nxZ0rx3j618AyO0kDxtr65XChue1qG308WhMT4JoNC8v41BB/B7BIn+ZhUKVbbqDpUNN0R1ZX/l0bakkP+HKMRKTpV4rLDLG9m6KAKjhYBNM7P2QQWP09yBwnJdU4DLJ7LWIVG5181rneKCT8HtUi+Ln5McOVOk4XALMWxePhctrr4NMkwwPJbEa53OAjop1D9Um3cV51OgtsdhAmQo7UHoaMaaGBEJKgyrp9tsAYFPmYhNiF2ajLro5YTP6FIlWZBg== 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=S0ppY54OPBFldkJJgVsH20gQesPTIK8uqEJvN7NBREw=; b=PURaWeCoNdzd/56iUbqbAbbmqMpxlEWgs29PSbjTD62PvYT458atVUCePuQK5jtI/jFSX2cjHMXEzG24TmKl7JMk0vpYw9FgRZLhG3MBqNl2Ch8b8ogd2aO8tEu3MfjeAwj6AHNh/qSo0WcdffYKPmWVA6V+bBcYJZb4tENdWq8= Received: from BY5PR10MB4196.namprd10.prod.outlook.com (2603:10b6:a03:20d::23) by MW4PR10MB6395.namprd10.prod.outlook.com (2603:10b6:303:1ea::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.33; Tue, 5 Sep 2023 21:44:29 +0000 Received: from BY5PR10MB4196.namprd10.prod.outlook.com ([fe80::58d8:cf97:ae4b:1715]) by BY5PR10MB4196.namprd10.prod.outlook.com ([fe80::58d8:cf97:ae4b:1715%3]) with mapi id 15.20.6745.030; Tue, 5 Sep 2023 21:44:28 +0000 From: Mike Kravetz <mike.kravetz@oracle.com> To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Muchun Song <songmuchun@bytedance.com>, Joao Martins <joao.m.martins@oracle.com>, Oscar Salvador <osalvador@suse.de>, David Hildenbrand <david@redhat.com>, Miaohe Lin <linmiaohe@huawei.com>, David Rientjes <rientjes@google.com>, Anshuman Khandual <anshuman.khandual@arm.com>, Naoya Horiguchi <naoya.horiguchi@linux.dev>, Barry Song <song.bao.hua@hisilicon.com>, Michal Hocko <mhocko@suse.com>, Matthew Wilcox <willy@infradead.org>, Xiongchun Duan <duanxiongchun@bytedance.com>, Andrew Morton <akpm@linux-foundation.org>, Mike Kravetz <mike.kravetz@oracle.com>, Sidhartha Kumar <sidhartha.kumar@oracle.com> Subject: [PATCH v2 03/11] hugetlb: Remove a few calls to page_folio() Date: Tue, 5 Sep 2023 14:44:02 -0700 Message-ID: <20230905214412.89152-4-mike.kravetz@oracle.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230905214412.89152-1-mike.kravetz@oracle.com> References: <20230905214412.89152-1-mike.kravetz@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MW4PR03CA0153.namprd03.prod.outlook.com (2603:10b6:303:8d::8) To BY5PR10MB4196.namprd10.prod.outlook.com (2603:10b6:a03:20d::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB4196:EE_|MW4PR10MB6395:EE_ X-MS-Office365-Filtering-Correlation-Id: 8f5c52d0-8587-4bab-b4bc-08dbae594815 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kF4FzkRUx2gxS6JiHld2jV1kYzT4NIh3PXUrcDlPev6YmeY/CHZXErZSVsZ/PasI8a9IPxz4VVG4BrxnzSBBrqeTMWqfgR2gA1Y95oyT16Xq2lEquhOpVAV70wwwo+FUwVkjzAGym8w9hHjbbWIlL7AdK8nyMndWaGawB8rJDoOKWr0upqUOWsc35oR9LO0Cvoh+PfyxZCc3KvZVL2qN9bPrgJN2J7tmGWXltD1uDc43rGE2IQqHp7zd5FKUsYAHRZ0idxNsXyoXpAIYY5B5DBms8Oa8Rc+xfEBAePK0An6l1BcY0E911eKp7qCQuGGolGPIIswIuGwsSGjhV10pbQtMFifBk9UshtjnYpPTDhHXY5YI1bqTsA8F/gIAl8vtYJXieWC3MwMtWOrXgNUJkJGZW/m9ePhcoMZBvoAAyrpNkwC+IJVikaZ0DMW23fAZOE4SZznPcpzHL6hfVKkHRs1QzD6iWCHbBXhVmGqcKaLTNbHIxI/T24HCe/e7QC47heFZfybGSxIP7OyrjNuGajAY671ZZmVHnbPpEukovL1PUsoPIX0hcWR4pGSWpNDq 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)(346002)(376002)(366004)(39860400002)(396003)(136003)(186009)(1800799009)(451199024)(6666004)(6486002)(6512007)(6506007)(478600001)(38100700002)(2906002)(7416002)(107886003)(1076003)(2616005)(26005)(83380400001)(86362001)(36756003)(66946007)(5660300002)(54906003)(66476007)(66556008)(316002)(44832011)(8936002)(8676002)(4326008)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JZjZe4NPDHQB12n1mBZBytIOo5QArd0sniMMIjCHh5JF+krhKRHSMzxInQIhzD1nyDvgbo5M/yexL8lElndGws2fhdUyx3CM75OKjka7z8sv3fOgZPkeJwqrXLt8lWLsTfZDuqPJvisQPbkd/pAF/xIg69915zXCX/KwOS0+QaHCQgW9D6D9iXQ5NLugWil3a43jrCYzBbxzRrQnCzN9aLsPXhEsrYqEE1XMs6PROFr0Myhd7ZzruS58MxjcApwPDLAwixq0/W7ds1pzEr078TihhE8u/1O4aLrhKhnM4eINEcEpnGxioh5SR1qIMppfKAFrG9HbSLR22pvIGKozw4qH7nPFy07DOFU33QPzz2vq1vJqaUkYELQqIiNRbwiPfTqDaDXONS2tbftRDeyWgvnrI/QALKzhHRAoQJM30HeJ4D9DfXGmQWB4vt9SVp9jRNm/VUbutwKfF5hhqJfnbi+NaqcOcqjYaiCpXDohkoT/i5gkEzIx+4lM1W8wija7OPLCQSfdLPYbqpFmlfZRGSzTGjScJjMq8vJ8r3zRj4DrMZ86FDuWlTPkUDkem+5E12WEOdGGhR7MqAVunVpgBxw4jAlMO4a95o5yLAtFqxUyDl5GC8vg0R1g0XkvqtyTkkOKRG017eEQlfMyUoNWLu/1bAyAvstR/EGwH2huVF6YQrZA/f+L7U2j3c+RBa2j/i9Vr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-CrossTenant-Network-Message-Id: 8f5c52d0-8587-4bab-b4bc-08dbae594815 X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB4196.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2023 21:44:28.8978 (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: euQP1sJItdXaHzpnawJilBFf/F/ihWgIX+LKSA2PxTbtqChC0CVTdOyPZvmlb7/MREywPAK4VBPyIeqx4lOCZw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR10MB6395 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-05_13,2023-09-05_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309050189 X-Proofpoint-ORIG-GUID: bajyeeLebRXH2TAma_jZXhTUxp2Nm5OZ X-Proofpoint-GUID: bajyeeLebRXH2TAma_jZXhTUxp2Nm5OZ X-Rspamd-Queue-Id: 97B3A140021 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: ainjkin96u6g4hsaq3hr94p7ch1djcmx X-HE-Tag: 1693950763-466014 X-HE-Meta: U2FsdGVkX19UiV/E7H3myl14KsXEuufl909I+I11/pdgPQQmASOhuGe8nUk/bocn8qNvHXhnbzCKZ+EohBGKa8qKIeke303mN9ZcIYQThnNbuaQiYxD9rJ7MFm0/RdVAzV1R1yzhHtCkR/9tlM1eBNFpC6WIdBb4g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A2fLK4WwXcut23WYmyAc3dhhNmUJHkIRv7git+uvU5g4g1lF58zUL90WPbVEBSoQSKYtMMjUmcGubY3H1Iz2G4ODvg1sFUtk6CFqU4NSjN1rAhEjit0EaYvPaWD/utF7osWKNOhpajMnf+GkhRC58qMHAsOufsh6cGLWHJ+j+cndQhXHw80mW4j0XS0HSQxnd4z0xykn9IEWn6NAx/AJ+/nBm48QbspXw2mK3RoCydfIursruYc+cXQuSHt0+WAbnOyIsH8Z1yVaaLWgVCkJcrU9RA82zE2bsnUJ09Nt/jIqAgmdS2ZlEGxwujlOD52hjCS+EAkiAPrO4L53Zw/Ab58H6OetIBAr2GAkDIr68QegEM40rt1AH+EXKhn+pA0Udqf+OMx/mptVfwbmY3N7X0YIsVKsje7HpFe7048= 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 |
Batch hugetlb vmemmap modification operations
|
expand
|
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index a27fcff3350f..f768fe9aebad 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1836,11 +1836,9 @@ static void update_and_free_hugetlb_folio(struct hstate *h, struct folio *folio, static void update_and_free_pages_bulk(struct hstate *h, struct list_head *list) { - struct page *page, *t_page; - struct folio *folio; + struct folio *folio, *t_folio; - list_for_each_entry_safe(page, t_page, list, lru) { - folio = page_folio(page); + list_for_each_entry_safe(folio, t_folio, list, lru) { update_and_free_hugetlb_folio(h, folio, false); cond_resched(); } @@ -2229,8 +2227,7 @@ static struct page *remove_pool_huge_page(struct hstate *h, bool acct_surplus) { int nr_nodes, node; - struct page *page = NULL; - struct folio *folio; + struct folio *folio = NULL; lockdep_assert_held(&hugetlb_lock); for_each_node_mask_to_free(h, nr_nodes, node, nodes_allowed) { @@ -2240,15 +2237,14 @@ static struct page *remove_pool_huge_page(struct hstate *h, */ if ((!acct_surplus || h->surplus_huge_pages_node[node]) && !list_empty(&h->hugepage_freelists[node])) { - page = list_entry(h->hugepage_freelists[node].next, - struct page, lru); - folio = page_folio(page); + folio = list_entry(h->hugepage_freelists[node].next, + struct folio, lru); remove_hugetlb_folio(h, folio, acct_surplus); break; } } - return page; + return &folio->page; } /* @@ -3364,15 +3360,15 @@ static void try_to_free_low(struct hstate *h, unsigned long count, * Collect pages to be freed on a list, and free after dropping lock */ for_each_node_mask(i, *nodes_allowed) { - struct page *page, *next; + struct folio *folio, *next; struct list_head *freel = &h->hugepage_freelists[i]; - list_for_each_entry_safe(page, next, freel, lru) { + list_for_each_entry_safe(folio, next, freel, lru) { if (count >= h->nr_huge_pages) goto out; - if (PageHighMem(page)) + if (folio_test_highmem(folio)) continue; - remove_hugetlb_folio(h, page_folio(page), false); - list_add(&page->lru, &page_list); + remove_hugetlb_folio(h, folio, false); + list_add(&folio->lru, &page_list); } }