Message ID | 20211005012959.1110504-15-Liam.Howlett@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=pyM+=OZ=kvack.org=owner-linux-mm@kernel.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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8011C433F5 for <linux-mm@archiver.kernel.org>; Tue, 5 Oct 2021 01:31:25 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 173B06121F for <linux-mm@archiver.kernel.org>; Tue, 5 Oct 2021 01:31:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 173B06121F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id B262494000F; Mon, 4 Oct 2021 21:31:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AD76E94000A; Mon, 4 Oct 2021 21:31:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9281D94000F; Mon, 4 Oct 2021 21:31:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0059.hostedemail.com [216.40.44.59]) by kanga.kvack.org (Postfix) with ESMTP id 8422194000A for <linux-mm@kvack.org>; Mon, 4 Oct 2021 21:31:24 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 425862CBC1 for <linux-mm@kvack.org>; Tue, 5 Oct 2021 01:31:24 +0000 (UTC) X-FDA: 78660656088.15.E8823CA Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf10.hostedemail.com (Postfix) with ESMTP id 8CECF6003950 for <linux-mm@kvack.org>; Tue, 5 Oct 2021 01:31:23 +0000 (UTC) Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1951Awbm019258; Tue, 5 Oct 2021 01:31:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=qxtTeGCUds/04T4FwrH8+21nYX8A1Qqp7Uqq/HsMC0k=; b=gLmrYOHz0/9QnuEPNphn4ixqKovYyBCU/BWHiD1HFvrTc8AdAaGYVf7Ifcxz/Zhfv/wF ODxetC92ycPge0fpOYWL3CVC/ibHLKufwj0ZJI3GeZxevCH0MgJXyOWR0ZtVEg1fnOIn fm3H/TNwp0hgiQ2W+THz+FYR9pVHPrCBSb0JfQDHYLpEcWXtXf3fn80HzogrNdIzQNpe mPeOmiw+YpEvbgMtinKRzS7Zj4Ca4CQwu0GX4VxPwcrI5T2TEOPv9XmeUPWFh4SbdxVC 2Z2fipOn3aPQSoZbj4yPxxefduEznGlgjx5kvGG7RqzZXFiLqxyx4IsMVwKdoXzcF+nj 4Q== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3bg3p5c983-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 05 Oct 2021 01:31:13 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 1951UdGH141634; Tue, 5 Oct 2021 01:30:44 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2177.outbound.protection.outlook.com [104.47.58.177]) by userp3020.oracle.com with ESMTP id 3bf16s9dx1-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 05 Oct 2021 01:30:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A7pM38MSdUfsMZyiM16DujpGq0NXuGfvWj7kcXSN0Zg3HEAVPd+Smk5bn+/3ucirYVllG5dJu2N6/kMi5KoEDYYXKkbW1tl+dc3bgKnGUHxBxro10MnviswLJsf9moeltt6SM+9ZLoB1nxfOye+vG5ELFzUI8GasqxtkfOij4ZNJ/LzjrHVxUYpVopidhL36jUovMiWOD9f96tAEC1Xd5OdJINQxf9jTbXszVaOFGWdVWrsY2SnzKdwnjRW9VfecrROv8IKaIJ1G97PkQ3HhArnCMkDnkwExoOSN1/u25MaWooS1/XzmQLku5dPU/LHSfAJaQap2tMkwS7gP6FtfTw== 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=qxtTeGCUds/04T4FwrH8+21nYX8A1Qqp7Uqq/HsMC0k=; b=B9G4Eb4ZbeZUPBtsATILmdKQCDnuTfW0wicsgmL9fqqcXPlP5XIlPpGZdcWwMgcGFbbhYE3yyhiUI7INUPC2ic50PnROMf9TAtht+sc72QVoQjTfPnpyXfmofs1gpaAmxTJQw/ZhYCBfONbj0LkToFzVCQ3C3m7pbu2/MioN51pqfaJu3XGeVyasRPNmjGHkogsTP6C0ea7eAAM37/uRwYIcV2bw1B9lJbnTEpBl0hk4scqI2VDFAcX4B/XTO1P2A9cvLDYXg1Q1VDGIfAdrOZJwsbYS29BZjhKfClotKC5JV8u+BFTC17CWMFGcLvdxkdJIn7OtMIICSExkDm8z9w== 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=qxtTeGCUds/04T4FwrH8+21nYX8A1Qqp7Uqq/HsMC0k=; b=tqxV4/1RZFjlp+BG+CdZDlYqszbwD9fyoMyAkH36HQeRm6G+3mSNxrmjE7xfzbV1hn3x/SpovxN9IQIeZ0SfQwes/px+srAi5nyC16Picf8Y958ygUp3Fqd2jc/o8ipkdxTPpuUkTWZD3qxkdXPoP+W17wJxnroNoiUijvU6yyI= Received: from BL0PR10MB3011.namprd10.prod.outlook.com (2603:10b6:208:7e::29) by BLAPR10MB5044.namprd10.prod.outlook.com (2603:10b6:208:326::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.15; Tue, 5 Oct 2021 01:30:37 +0000 Received: from BL0PR10MB3011.namprd10.prod.outlook.com ([fe80::6d61:54c2:40f0:93a]) by BL0PR10MB3011.namprd10.prod.outlook.com ([fe80::6d61:54c2:40f0:93a%5]) with mapi id 15.20.4566.017; Tue, 5 Oct 2021 01:30:37 +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>, David Hildenbrand <david@redhat.com>, Douglas Gilbert <dgilbert@interlog.com> CC: Song Liu <songliubraving@fb.com>, Davidlohr Bueso <dave@stgolabs.net>, "Paul E . McKenney" <paulmck@kernel.org>, Matthew Wilcox <willy@infradead.org>, David Rientjes <rientjes@google.com>, Axel Rasmussen <axelrasmussen@google.com>, Suren Baghdasaryan <surenb@google.com>, Vlastimil Babka <vbabka@suse.cz>, Rik van Riel <riel@surriel.com>, Peter Zijlstra <peterz@infradead.org> Subject: [PATCH v3 14/66] mm: Optimize find_exact_vma() to use vma_lookup() Thread-Topic: [PATCH v3 14/66] mm: Optimize find_exact_vma() to use vma_lookup() Thread-Index: AQHXuYiZ3KYlGR8qyEeEYFBgvKGAsA== Date: Tue, 5 Oct 2021 01:30:36 +0000 Message-ID: <20211005012959.1110504-15-Liam.Howlett@oracle.com> References: <20211005012959.1110504-1-Liam.Howlett@oracle.com> In-Reply-To: <20211005012959.1110504-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.30.2 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 744a0a90-aef7-483f-49ac-08d9879fbbf6 x-ms-traffictypediagnostic: BLAPR10MB5044: x-microsoft-antispam-prvs: <BLAPR10MB50441D499365D035D3FF7979FDAF9@BLAPR10MB5044.namprd10.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:4125; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: XdtW8ZTHAhd1fjLwAtp/I7w221EsdA7Cwvh5OtohKXsAEtuAhGPdwToH1dhs5gykmYP/eT/PFpAtDwaWB7X6/5mhD/oWgIDynsJH38vSizNzNpAF6Nxfr1vGU8FYLVCAMbyK8z8Dteb6QuVtXql8IuCKxuc+Xap5r9G/FczcdPxYYrlFqBIr4UDAe1N5i//tSR7J4jgd+6zdVmX0CVwiU+0o0BxEoI9HYUkDnd+5uDa1YMhuyHxxC726lGVVtxK/DapAuFJZ3RD/mQk7EBrpkPzuAqWwQgbUqvMHaSZkV/2ecsXZ4D1eJcMCa8UjNEVr/awcr8v/y9f13aY/LB65N2Ona3M46ndBZO2bmuKgMbm9ZxPzIxEebgeN3I9Pih2tUNEzTQgCwIucnRVu5z/IZjPXK3RwA26H+BnBjLzmVWdHNQyCS39zUZEC9mCz0piEBpv/ZLjb557qrwACoF3+US2J7QZzwbmnbNjnq+nHTq2WhhNZQrX04aTRGL5RkA6sGsl4GUN5mjZFlhEzGEulRQxBdD8AYgCrrGCepjLCao+ynM5I2IyFR2u/opFv68H2c6+GHaViEiIEwq1elPiMAgEkQd/Hhxcd87GykNQzNsDvAE7SHGTjgF+x+qJdaiDErgrQcnRlakD0BYvwLp3sWvUUusCrJm46m0zBS9zE+peIhn0d/9KOCPryEckGmWa4kWpW15gApNQ1xdnp8ltGIw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL0PR10MB3011.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(6486002)(66446008)(122000001)(26005)(7416002)(2616005)(4326008)(508600001)(1076003)(38100700002)(91956017)(64756008)(66556008)(66946007)(5660300002)(66476007)(44832011)(38070700005)(76116006)(86362001)(110136005)(8676002)(71200400001)(316002)(8936002)(54906003)(2906002)(83380400001)(186003)(6512007)(4744005)(6506007)(36756003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?QUdIhiVX7jUXtuaSQOHNvy1?= =?iso-8859-1?q?bqeTdSeSrhZ9hb6yKEptw5Cj6Hct5VKc0E9UH0yPZOTx7MIit1FDEWI3ytM7?= =?iso-8859-1?q?SkIRmK83aT1iIlrCycc/AVnE1NF/ASznFSWULgZmqblcaomP1Ruq9yKNyY+6?= =?iso-8859-1?q?a/vCeTgTCwfCv2sFep/vlf6DzWfA0YiA7WatbWjM40Eplt+5A88wxM7HWYDw?= =?iso-8859-1?q?hXDybabRRHS+zxcpuDCZXLoSblPCgOqObQw+LefmUIDvgsllEgpwA7QNBkUv?= =?iso-8859-1?q?gQPBk0Z0MicvrlvpEjoGICMsQZ00GzucL6kK2X7hk3mNPlxRymMYpZYVX02c?= =?iso-8859-1?q?IFvgjy9bfSmipMqwdnTzj29L1XApXrR5U0gcijVt4PDX+R3Gx2YBsv2/PSrE?= =?iso-8859-1?q?mZomKnRpfDoUw42/OMnvqlq6fAWNKpkYZEF95H7GpFBU7iLEIvSH5JUV0LWA?= =?iso-8859-1?q?6P4ZkC10TOZsgrGV91xziXw/vFs2pu+JtRe2tdRzjthBteC+Gke/AUd2PBYG?= =?iso-8859-1?q?7wV76bj+zCp6c32p8xZVHIM/qqPid2mjaXQk8YoX1cqhNjFj+b2lz8qko1Lf?= =?iso-8859-1?q?6/yW37vFUkvrPuslQlYEdKek4hV5efs62cdlYFGfYhugUPiHZEuBIPspgDeI?= =?iso-8859-1?q?NNiwl4flSieuzk07gG/xKfxoXtnEmNILdmp6lUnPRog0qtof8CzRSvWVvM7m?= =?iso-8859-1?q?BVdC4+TA3BrBe4z2s/7yNbz1zplbEQdVHbAd0HiRVPopC/dMLfVqmGxbGzUn?= =?iso-8859-1?q?03cd78et/8JgeNs4b9zjezaWLDOoc7EinjkmjJTf841tC7u7Kw/3M1KqVkcM?= =?iso-8859-1?q?Af4pjsV30z2+4kAHOA+orphg1Vp6zOjV951yvQqr7iRYvgsRMF5NsayjG6Jm?= =?iso-8859-1?q?RHOZ0VVcbqEU8W3/SpqQN42x+UVIJaxty+fKslfjUZA9kMRPLGGJNko9U7ld?= =?iso-8859-1?q?HfJXbqp3OenwV7XyLj7A5l3tOc0cleEin+DCyWF5eFvZGG1cCiTGKa3qeV7i?= =?iso-8859-1?q?Xjz7jyoa5IsT8yIcirwVNlD1MDGvh57vrwTtaWL3unIXsP8EKfbquryrYlmN?= =?iso-8859-1?q?jerrOicoVd6vbgFDr1QcrakyqAf1HNWCU/C5qH3o3skmzkmqi135KhGzNqz2?= =?iso-8859-1?q?/ckaHrXTmx0FRzvu0VAQN5W0PlAfTCmX/xRE+aojDdqK2H5q6Z+rWvLDx+Rj?= =?iso-8859-1?q?zAmHYQTbyroI1x0jJR8RuLa4jfYxWtLLzqzmQZLvlaoRibfJ5Z5+lcBMlTuq?= =?iso-8859-1?q?+TUTLtRmCVKI8ZmK60ShscY5zVfWx21Fc6/2EnLCMS04NjA721LNayKQBiah?= =?iso-8859-1?q?9ALwZwjbpF+UetSlLYkWLYnjn+2aggXLe9IjqLmMiKCxAE1E4RwOBQs9jLR2?= =?iso-8859-1?q?W?= x-ms-exchange-transport-forked: True 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: BL0PR10MB3011.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 744a0a90-aef7-483f-49ac-08d9879fbbf6 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Oct 2021 01:30:37.0656 (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: 6P4IfqyQd8kiU9vgW9nDYzvjLLo+zFszV4hZhd0LpjecrEanz1TeD+5wOT54Zhz4wDl6Jki8rSN4L8PhK5JXNA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB5044 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10127 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 phishscore=0 malwarescore=0 bulkscore=0 mlxlogscore=715 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110050007 X-Proofpoint-ORIG-GUID: tlTh7kkFiACCAV_j1GC5CHJo6Q8r5uXB X-Proofpoint-GUID: tlTh7kkFiACCAV_j1GC5CHJo6Q8r5uXB X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 8CECF6003950 X-Stat-Signature: ut5y43cgb7t4h75hiwbfm76rk3kgfnnw Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2021-07-09 header.b=gLmrYOHz; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="tqxV4/1R"; dmarc=pass (policy=none) header.from=oracle.com; spf=none (imf10.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: 1633397483-461793 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/include/linux/mm.h b/include/linux/mm.h index f2d608283a9a..10a997fb60dc 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2746,7 +2746,7 @@ static inline unsigned long vma_pages(struct vm_area_struct *vma) static inline struct vm_area_struct *find_exact_vma(struct mm_struct *mm, unsigned long vm_start, unsigned long vm_end) { - struct vm_area_struct *vma = find_vma(mm, vm_start); + struct vm_area_struct *vma = vma_lookup(mm, vm_start); if (vma && (vma->vm_start != vm_start || vma->vm_end != vm_end)) vma = NULL;