Message ID | 20230825190436.55045-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 7447FC6787B for <linux-mm@archiver.kernel.org>; Fri, 25 Aug 2023 19:05:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AD1782800C6; Fri, 25 Aug 2023 15:05:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AAFBA280055; Fri, 25 Aug 2023 15:05:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8F7D92800CD; Fri, 25 Aug 2023 15:05:39 -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 7B7A7280002 for <linux-mm@kvack.org>; Fri, 25 Aug 2023 15:05:39 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 5AA8D407DA for <linux-mm@kvack.org>; Fri, 25 Aug 2023 19:05:39 +0000 (UTC) X-FDA: 81163555998.20.EE250BA Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf29.hostedemail.com (Postfix) with ESMTP id D1F17120023 for <linux-mm@kvack.org>; Fri, 25 Aug 2023 19:05:34 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=2t+1O4bL; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=wV+6nZbB; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf29.hostedemail.com: domain of mike.kravetz@oracle.com designates 205.220.165.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=1692990336; 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=zb6NKCA64ESqc3mqR+LOpdZU6XXh60EAfRdU796i4Ro=; b=B08hbdzNj2mps16LEk/9Iydwz0uaEYFgJjx9xj9xK90dx+BgB43VvgTQEAi5Q8t2n8UNAG MAiNoz0AHk6s/bC2fX4E/LjMPZWhASU7eBpa6WUlJfV5vKOMNoOUvuWiS+lRV4hPGs8SYp rum8bIkUh2ZACl7wd2TvJhkxp3B6NjM= ARC-Authentication-Results: i=2; imf29.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=2t+1O4bL; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=wV+6nZbB; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf29.hostedemail.com: domain of mike.kravetz@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=mike.kravetz@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1692990336; a=rsa-sha256; cv=pass; b=kRd3KKg7mIbQ1s1eaZ2XEmU+pPxu+sMXwWqTiLtGphtSL/E5+vmlxYWIRKSUtf882oZFFQ WHfumeJpvzhOLu3BXVzY+GR0LinUTqt5Dee8KyJLWnZi2Fxkg8eySRVRH/YtZD8ebZX06t GqVk3Xd5jrgdOIoySPvCEvvRvEMQCCU= Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37PIESYv031124; Fri, 25 Aug 2023 19:05:01 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=zb6NKCA64ESqc3mqR+LOpdZU6XXh60EAfRdU796i4Ro=; b=2t+1O4bLN+k80Qt9bl8aoXFhuuMp9ZXlhGq2afXlv1gd9xeoJmb4MlG+dFYXOYomgqlh pd7rKQDWu4w9dOxZ/FZ7q27tc8uN3+WFx6gQTKk+WZYIJqtXEZQvQceCjOSwhTJqBSdR vEthCHAMekuHt6C65L48M7Qx/vFdBltTJdnkAHgwmoVYlviSM6H5EJXYJZrEMO93F6V/ MwTvuSuIFOL67XvKcpUheYgqurW3AjJ29fH8INRv0KYVxyQudGJVbvVLKLESEagaLAm2 aKkT/Atw1827JzDLQOl9FYVJ5Iriq2LnRGjLvLrzNUa6Axw6ZHPfVdvF0BsWVmRerCQG 2w== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3sn20cq0d3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 25 Aug 2023 19:05:01 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 37PIjPs7035753; Fri, 25 Aug 2023 19:04:56 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3sn1yr77jj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 25 Aug 2023 19:04:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BC1icQetrRL8CdwcQPbVd2yUqY7c8UF/mUdQ25eApLIfuiZ+U7QPW7uEUy+EPBxnVLIlZ67q0xlezRpjAPGNWS1+yuZ1eHgfiXBQGYlijdWbSc0HemBIVBGXEplqwq3fc6qR6brsdSeRiagUEU0yLXSf+nwOPyKPSfZ66p5DiY0LnW62pE+MQw7HHP3m4AIlNJubxR3PxqHnSVnX/2VfnrspbWpM2Krtw1oeCiU9J3wQA6Dd66n6BRnXdwWaQyeWic/RZ2lLSaEWp4cCBZOpbHFP/cP2IXbCcL8+P1qzAcmRf4OT2La+l4YSQSSv+BdIzh6xZKM63vZohtGKMCjBFg== 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=zb6NKCA64ESqc3mqR+LOpdZU6XXh60EAfRdU796i4Ro=; b=Dmb9c1nDCzFNX99cinMhXC1hhMxmciTIFfMr1U5AWErAdsbLIcY7C/GWMhMFHgAPrf+CtSyaxATo52ZP81fz6iYrp3TQCj4aTV/KEnSrUI3Y0uJ+N5UWlWt+SjkrO+TlFFgP2D5/1RMRsWviPPPhOkcly69E9Gt8hs4ki0LRuR99O+ywjqubgZy6CzYs75Mc0hZvUVph6FlemZD9xwGxxEwXUZJyPy/8LC6LuokKADNevspdtGXo/kZVR7i9xGIOpD+eiI65UIVW9uXwL2f5iM01fRQv1KIVO5gUymHEbhSiNxiq4rasXTJUtZhWXlmE2ZWeazYQ4QKDqepx706E2A== 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=zb6NKCA64ESqc3mqR+LOpdZU6XXh60EAfRdU796i4Ro=; b=wV+6nZbBfTvov7/U74Whvg6bWvinIk/Wi8XNXGZUKPk1zZGKnM9pgoV7x7cVIXQnmkXByBllfoQO2zxH5RtOSPyrgsfphF7+97ARnRLmkZhzLlek1me1Scoe/cMP4uxyn+AUrGqEMNeJTRgvwY2wipLqgI7LH8mxSStdWrfz9Iw= Received: from DM6PR10MB4201.namprd10.prod.outlook.com (2603:10b6:5:216::10) by DS0PR10MB6895.namprd10.prod.outlook.com (2603:10b6:8:131::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.27; Fri, 25 Aug 2023 19:04:54 +0000 Received: from DM6PR10MB4201.namprd10.prod.outlook.com ([fe80::8057:a3e9:cbd1:252a]) by DM6PR10MB4201.namprd10.prod.outlook.com ([fe80::8057:a3e9:cbd1:252a%4]) with mapi id 15.20.6699.022; Fri, 25 Aug 2023 19:04:54 +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 03/12] hugetlb: Remove a few calls to page_folio() Date: Fri, 25 Aug 2023 12:04:23 -0700 Message-ID: <20230825190436.55045-4-mike.kravetz@oracle.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230825190436.55045-1-mike.kravetz@oracle.com> References: <20230825190436.55045-1-mike.kravetz@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MW4PR04CA0087.namprd04.prod.outlook.com (2603:10b6:303:6b::32) To DM6PR10MB4201.namprd10.prod.outlook.com (2603:10b6:5:216::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4201:EE_|DS0PR10MB6895:EE_ X-MS-Office365-Filtering-Correlation-Id: f1c6fe78-d656-440d-cf30-08dba59e2a80 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 74PHp3nRoAJ6M9Fo0Pd0MN24HTz16HRlKL8Fq19+S5T8wbfui7T/x8rlt4ltVkoXMm0R5qBM9OXkIKLhHL4kRms+ltL0yg1Ds1Jm+IYFaXFBroO7dZ+AgRcaCjFWuc7va7kmcrUKi48KS6KlyrB7p5plz64QMsfdN++mIFjq7dP40Eb6Y1y4Ymx7WCJ4vNv+mYAcC3GPiAWV67la97jBaTeAreUIag6rM4hhYaqK4stz+L4SQLH+wW8TxjBY3hAIsBDYpJRjXOJjPww3U5JNcYpSBPF4eDqehcJh83FNvnb5wU7KseB9IcZWsaftf0eSlg0SPpa2TNGo6XgB5J/0bUeCHVWGrdollihAumO2iOe4IWTx+KxoddFxnpQWtJFpgRRlL2vupcDjsjyvU5A+eev6imKkwb0JVdun6yAvW7mt1O/YwKAG5iMXy8Vf4BOiKAAhS0eBZksfOlg7mwX5NU9yhNGpHly8gC/aDNHqENcJrgJuu/RkCmAvb/mSiAJIJOgTKpzanvmhNMubZbivC5KtEe8eaTw5njjGn/brCJPQTkBnP77HVoXH4bfv0yii X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR10MB4201.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(366004)(136003)(346002)(376002)(396003)(186009)(451199024)(1800799009)(54906003)(66476007)(66556008)(66946007)(316002)(478600001)(26005)(38100700002)(6666004)(41300700001)(6486002)(6506007)(86362001)(6512007)(2906002)(83380400001)(8676002)(8936002)(2616005)(4326008)(107886003)(5660300002)(7416002)(44832011)(1076003)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: B5TgNuPOV2zkV4qXRtkdJvrtWhUYCJxqgmbDZDF15l0LJeOkCUU84H7uWfSUiEtzqAxh+6PN1tFXeDjMeGDRJXH1yQmn61dErAzmTOgfD5PgAF+90thw4/7DB39q0EUvu+nquUgMlV0E5YhFmNQ3vrnBibq0RNHnKQZfzcRn5Y3XKRtz+tZp5QBqAT/vWPdWobDzVpRauIcJ5jok157r9lkxrrCNe+Ww5aoBgtSFfPsR+Z2eay80Wm81YXO2tNa7e0JFfmDI1wewaugPAYdV3Yn3uPnwwAKtUa52IxZoEJzeQdKzvgAMlI7uxmvdhAfwrtR4k9mTNwNx2XmzsTxSXaFOmBswLW6ePgKOq4c3zZ5Mmm+ls2KU+ooPqB3GgzVGwizOHVuH7WupObXX/g1Cy8btpjph25PJm+PWnSBA72rV7fMczza7VT3UCjcoJGc+3cKB/H74SW3Aa9kyma9Pmy9PyUI1Pcaxi4h+wviTLc8GSqCMSYVcIUxaNGaZAwc8YfZhEFoinMFZNP87x1v2y97k8TPgaDoXo4NGUtbACzlfQxes93pHmnJnbLcgjOXeXMLZyhUoN3D7cyjEXbVLVUNQ7HAEBE+yAaCDLk95zucl0/gzsOugqyD0jBp7VysehePNxYY50qAbnDzn/6k9AVoS101gFNC+6WsO7pE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oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: f1c6fe78-d656-440d-cf30-08dba59e2a80 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4201.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2023 19:04:54.1109 (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: 4viqr2pRx2yxE1H0+MrvVG6QMsocN7EvySr8SP3OO1Lme1rMR87KC5iU+uskIteL3QVmMBimJyoWeqYvQuO8rg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB6895 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-08-25_17,2023-08-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 adultscore=0 suspectscore=0 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2308250171 X-Proofpoint-ORIG-GUID: 2OKrJiPSiCvmOy9oRGA8-kJw9qhUO_Pt X-Proofpoint-GUID: 2OKrJiPSiCvmOy9oRGA8-kJw9qhUO_Pt X-Rspam-User: X-Stat-Signature: ik3ywtbe7c4fdbcpzjyxg7eza7pskbo1 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: D1F17120023 X-HE-Tag: 1692990334-670314 X-HE-Meta: U2FsdGVkX1/nosqEdUlKgvVoIE0dcKAdh1B9ZmaJEFIgl+pqkW/ZBKl9ZpbYu4y3cWCZo/8nSwnivp+cngjSVfMvfdmJa+rfS3MHoPwAFPskDrsKeNYg5R2no5IlJfYgg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BjAK4TiJZgiFEquc4JSgyFekkblgJI3pWDQfURnv0409KQTlAMjy4KYG7uau1Ms2seD4mCcaPosCzyHT4K6Pxcmo8hNcP9VsoVeCUOLZdzKTYj4sBLBmXX7PfjXI4Ja9yOJjA3vyzWznAD4Ohh6AeSAYHgznqlvKy8DBfEgtTU5NROzyGkp3EHMaM0Yz3CEs/JMx1JpEnaq7Q+GFo/4RtLI7J7f5XxkihMYxN/HqfqoJa78UVQNnKYcf6VAyJyVzBy6tHeVNzpY0Js6bf5PG6bi+/hbH9lhfc7f/WuFfxe0Lr0Gz6wqhfs3UdkJzfBti8Y9kOWP+KIryMKqPN1bC55+SZx/om+WOoRArMZEPGGxQWGmaf8fcWX6drHnlYeKsFYbn+dIKAhDVzg7nWW5iNtCyjVy0OBS+481x5Q01reGnvKmAcGjdMXohUAaseI= 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 1a48a83846cb..a5348dfada89 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1831,11 +1831,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(); } @@ -2224,8 +2222,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) { @@ -2235,15 +2232,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; } /* @@ -3359,15 +3355,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); } }