Message ID | 20220215144241.3812052-23-Liam.Howlett@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 489C9C433EF for <linux-mm@archiver.kernel.org>; Tue, 15 Feb 2022 14:43:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 65CF46B008C; Tue, 15 Feb 2022 09:43:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 594396B0092; Tue, 15 Feb 2022 09:43:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 39BDD6B0093; Tue, 15 Feb 2022 09:43:22 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0088.hostedemail.com [216.40.44.88]) by kanga.kvack.org (Postfix) with ESMTP id 131E56B0092 for <linux-mm@kvack.org>; Tue, 15 Feb 2022 09:43:22 -0500 (EST) Received: from smtpin31.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id D12138699D for <linux-mm@kvack.org>; Tue, 15 Feb 2022 14:43:21 +0000 (UTC) X-FDA: 79145282202.31.0A9E84D Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf19.hostedemail.com (Postfix) with ESMTP id 29F071A000F for <linux-mm@kvack.org>; Tue, 15 Feb 2022 14:43:20 +0000 (UTC) Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 21FDunif005201; Tue, 15 Feb 2022 14:43:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=UdPCPM/TvAvt75OkVtNK7v/rDuEDGFNXN9nw2ShtPBA=; b=zbdcMuTZ3Uv2WmSKhEek2dUAgvFjjCvIxYY/M7UURK5j+6hrkw3TMS3oqQOnk655XV03 BF3BAKFa5CZPklPTD8ahFHTebB9Zfgrx+3/GJ8/1B49RK5WsVmEwrmNRmKksJGNtYVn6 Xu4tpScIaAoRut7PC/LLN6HrPJRHc4WG6x+Hn/vwiCOCPNIDZr9Xt4wRCDGUscbEf/hx CZ9jqU6QyvtLadCBZWtf+oqg8mgeMLlz+ZbOwzx5pyFPKrsF90WCb//aoDCC6vHH0eTg J1NCzAkJe+K9g0GKp8plToRoyJLIbnV/uAU8sAnwWaicDr2GF56aRL5M40I/u9fwpSR0 XA== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3e8570shry-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 Feb 2022 14:43:19 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 21FEeUFo145877; Tue, 15 Feb 2022 14:43:18 GMT Received: from nam02-dm3-obe.outbound.protection.outlook.com (mail-dm3nam07lp2048.outbound.protection.outlook.com [104.47.56.48]) by aserp3030.oracle.com with ESMTP id 3e62xeqejm-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 Feb 2022 14:43:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VHKNHOLMLM3cbcD32F2Ke2aDnmThTuKQk1bkghbxQE+newfq29y2vLnNTGnioGhBsFYdONvNw/qTUPFrlze3TQHZEPmrTXAYykx1t7Jpzlc7I3ekhoQZYSawhdKwV7jCJtkZu4vjcQWfxYTShvSOlOexfYLr17NAY2eQg0yxdjNwMq4zLu8yZuPQOid0RzsEzwqmMimIRv5n31Vw06pQ2K7J1z384ZyPon2BmxQbzOUW2eT3Cqe3J5TRKWHQUOK6f3lI/XLC+dVUae/jrMcmWoK10BHbebBGS+zUAC72F+BchD0CTQ32XdpvMF+hRTwM6cr5jWiNlibO4VYfv+Yi8g== 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=UdPCPM/TvAvt75OkVtNK7v/rDuEDGFNXN9nw2ShtPBA=; b=FB7atJGNc2h1rBCFPfxzj3kt+lqYD+4mOpekjxmlfubzrSAjSachJL7qrZvqZuqzXOOIwUD3sRVn1Gc/BH8iwJsnFvw9GJp5OIOOp5IF76te9x88H+aHFKqYHe3KCB+quxBcSAvIKDKzpO3MQTFqPhEX6wwZ5DRfXhjoecU6qN5AykxFaMouf5cKVZWUj6il+htQ8L3m0ZSqjMt4PaxO1VmWMdwFDoiFBvxt0txfW2b6VpgqekD2XxVXPytXjCKKISah4KsEGCToHkqb1T7B6oj7MrJyJnD2cR3jy8qklDBXsA1AJZwUOTi5n9fA/Tfk3gi43nQ5hJvFiqnqn7XmjA== 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=UdPCPM/TvAvt75OkVtNK7v/rDuEDGFNXN9nw2ShtPBA=; b=yUSXxe+9AY19oy5ng6vVcQGx48NYVEmbaS7QCxCSNUk9M5y2HQ5x0qVdQQ+uow6fDan4vZDXmdfmCyrF3L8Im7ZW3eYAcIHHdx1Qbw3t6ObSHE5n/sxhvDkUv5AmB1D3YO4yPh8RD4Erlsk5nS6Mbkn0sQoKW2TdqyMvTlLIioY= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by CO1PR10MB4689.namprd10.prod.outlook.com (2603:10b6:303:98::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.14; Tue, 15 Feb 2022 14:43:16 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::899e:951a:8129:8ef1]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::899e:951a:8129:8ef1%4]) with mapi id 15.20.4975.019; Tue, 15 Feb 2022 14:43:16 +0000 From: Liam Howlett <liam.howlett@oracle.com> To: "maple-tree@lists.infradead.org" <maple-tree@lists.infradead.org>, "linux-mm@kvack.org" <linux-mm@kvack.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Andrew Morton <akpm@linux-foundation.org> Subject: [PATCH v6 23/71] mm/khugepaged: Optimize collapse_pte_mapped_thp() by using vma_lookup() Thread-Topic: [PATCH v6 23/71] mm/khugepaged: Optimize collapse_pte_mapped_thp() by using vma_lookup() Thread-Index: AQHYInpaHsAYvsWYxkyjvMhPkhVLjA== Date: Tue, 15 Feb 2022 14:43:10 +0000 Message-ID: <20220215144241.3812052-23-Liam.Howlett@oracle.com> References: <20220215143728.3810954-1-Liam.Howlett@oracle.com> <20220215144241.3812052-1-Liam.Howlett@oracle.com> In-Reply-To: <20220215144241.3812052-1-Liam.Howlett@oracle.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.34.1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c625f885-9624-4a58-551d-08d9f0918094 x-ms-traffictypediagnostic: CO1PR10MB4689:EE_ x-microsoft-antispam-prvs: <CO1PR10MB4689719E3B7818B29011B138FD349@CO1PR10MB4689.namprd10.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:4941; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Nmi47OuyOqhQ1btMyqfOYmd68469VcSAy54Z6y7wHIaw+YxBIYze73EdaIMKVeljPy0A3xw17n5Rn8qitlIf5vCoDcipeHxRQnK7qT+bXEx14cFsHxIVgTsGIRF6v7n5dLOaaTrFJaxwhOac30uy7MKZydDRhbU/coekbc4R/soLjUy85afb2ezEKLWLPQ9rt6tZ3wbx2L+DPvqYZ7/fMDyMuAfqESNvadaQVlFAK+EMmux1gFxF8NWTQY3oNqHyqrmpeeZ/RlbxWrUn3ZVG/GjfjbYu2OpMES38T08PUHHjBUSGVr+aEGPG92ZxUfsnZ8DVD7cSAaG7rFuePZWiv8MLR/nCBlts961XXhOLDpI2dXADrCNPZ5XqDKoHwUMvtQPURgrp0/EA1jvPJDij8wp0HNTgJlK9gnmSfuXLQDS8D5Bdh4V4BXxioA2S1WGu9ZCJM76vNJVsnRmFGd/u3Ms7R/YQqkEMgUjlUTisXBQcxTszvhsa92S5u1s+wdrUvbxL4ETjgd2hj42zWiV0LnWcBjV99JLn/k05IjmZbeuyG7534EDTuxxJRSSnRnXnghXE32TAaGEHUP8B+XKQa91F3NH/62gF5dg/eYWMFTtO5x6NutwMfh8AFwmwAkpK/B37T9zW8HZtQu9G+8Aa0dFGmbZNO2zQ3ugMOoxfWn3AVH7vgQAraYJKsckv6yJKQ8dAme4JgSRnZkt4AjNb+Q== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(66946007)(76116006)(66446008)(64756008)(66476007)(66556008)(91956017)(8676002)(6486002)(8936002)(86362001)(316002)(110136005)(38100700002)(122000001)(38070700005)(2616005)(6666004)(6512007)(44832011)(36756003)(4744005)(1076003)(26005)(186003)(2906002)(5660300002)(83380400001)(6506007)(71200400001)(508600001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?8Gna+mbx3zbBCbM6FDrP2Li?= =?iso-8859-1?q?bYOPo0HoSg/XhqxEglMZb2O3Mi8gdB+ilyS6RzcQu1XmZ2uTpt0E1qo9DCdI?= =?iso-8859-1?q?ZZGV/7L3cZ2QINCAJNjyKyiklfjCOYZp3yfesTVkxj/RAAE//3A6AZrEzngs?= =?iso-8859-1?q?fB8O/qnMvmVl4LcC6GnAMf+TfN5OblQWYWpb1I9tXOTvxbmVRxwZAun+GuTF?= =?iso-8859-1?q?s+hiRoUsEhgW/vwRo1lJNCPwX460Q5T80B+Jou2l8n+HBSEjqsuCDwnD5CcT?= =?iso-8859-1?q?jyRpOJt0ziK6t78WYzjTH4COdThzYO5rTQbeR7hB+6Msbt/GXkT7y8FMHUNN?= =?iso-8859-1?q?QTKvNEGn1jxoKemLSOJz3N8cD/CblTAStVlMV5bC+DHoaa89ar+SvXlzB3bB?= =?iso-8859-1?q?v3vgbXMxwSmTtspV3oKzoNXtqCge6F0gvRGYm8XmN89g7Fvv//2m6PqoeOX7?= =?iso-8859-1?q?b2yfkJ8D6h2P8xmxyz1eYy0cCJPknqgE4Js/N+2PuQX3268xp6z/UkHpu4Ox?= =?iso-8859-1?q?5yC8yA+Bsgk5CURl49UGW+aBjMhIoA/SRU8pWS6WVmea7zK2k051EBndVtWN?= =?iso-8859-1?q?Qz06eqdh37iAlB8rm4UpANq81YMzGY1ueYDxAAp/Xn6rCpRWgRMN7c8Qw2bS?= =?iso-8859-1?q?6LtPCg3uLpgKyWIhbgn0ks8DK2kFpfOP6VzBS0G4wK6V+3tqUIYZMwuJLAHL?= =?iso-8859-1?q?z0AuuuPkHpECYPeHK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apkjsU2xmb7imElv?= =?iso-8859-1?q?3MoSMnmArglZwPVb4yzaetNGFE+PUB2GTORSJJul0mT6S9bG7xi8G2z6YFIM?= =?iso-8859-1?q?=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c625f885-9624-4a58-551d-08d9f0918094 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2022 14:43:10.8550 (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: sXeN1ibAXs4L9/mLGgKt3eS8OyeSKdJTAmxWNjG/dQQUF5N5PcponyaF4+ilWhBcP+gYsnrSrGJSBAwUVnV2ZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR10MB4689 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10258 signatures=673431 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 phishscore=0 bulkscore=0 malwarescore=0 adultscore=0 spamscore=0 mlxlogscore=898 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202150085 X-Proofpoint-ORIG-GUID: CEz8x8w0VGe6IEugnt34_MH5kjnhHVar X-Proofpoint-GUID: CEz8x8w0VGe6IEugnt34_MH5kjnhHVar X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 29F071A000F X-Stat-Signature: g9fnesyjwt3aim8zpwo3jb95noeu5nzy Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2021-07-09 header.b=zbdcMuTZ; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=yUSXxe+9; dmarc=pass (policy=none) header.from=oracle.com; spf=none (imf19.hostedemail.com: domain of liam.howlett@oracle.com has no SPF policy when checking 205.220.165.32) smtp.mailfrom=liam.howlett@oracle.com X-HE-Tag: 1644936200-14729 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 |
Introducing the Maple Tree
|
expand
|
diff --git a/mm/khugepaged.c b/mm/khugepaged.c index 131492fd1148..7507b786f1a0 100644 --- a/mm/khugepaged.c +++ b/mm/khugepaged.c @@ -1446,7 +1446,7 @@ static void collapse_and_free_pmd(struct mm_struct *mm, struct vm_area_struct *v void collapse_pte_mapped_thp(struct mm_struct *mm, unsigned long addr) { unsigned long haddr = addr & HPAGE_PMD_MASK; - struct vm_area_struct *vma = find_vma(mm, haddr); + struct vm_area_struct *vma = vma_lookup(mm, haddr); struct page *hpage; pte_t *start_pte, *pte; pmd_t *pmd;