Message ID | 20211005012959.1110504-16-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 1351BC433EF for <linux-mm@archiver.kernel.org>; Tue, 5 Oct 2021 01:33:07 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B5C30610E6 for <linux-mm@archiver.kernel.org>; Tue, 5 Oct 2021 01:33:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B5C30610E6 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 D6FFE94001E; Mon, 4 Oct 2021 21:31:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CF87C94001D; Mon, 4 Oct 2021 21:31:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AFC1494001E; Mon, 4 Oct 2021 21:31:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0206.hostedemail.com [216.40.44.206]) by kanga.kvack.org (Postfix) with ESMTP id 961C394001D for <linux-mm@kvack.org>; Mon, 4 Oct 2021 21:31:37 -0400 (EDT) Received: from smtpin37.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 427D02DEC9 for <linux-mm@kvack.org>; Tue, 5 Oct 2021 01:31:37 +0000 (UTC) X-FDA: 78660656634.37.97DD84E Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf08.hostedemail.com (Postfix) with ESMTP id C32383000AF3 for <linux-mm@kvack.org>; Tue, 5 Oct 2021 01:31:36 +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 19508Mde004481; Tue, 5 Oct 2021 01:31:28 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=RhRtWCLFuf/IjKzlpC9PkvRZhp3YFOKb5O1vM858NFQ=; b=yQ6HQtpDQaRbcsv9/dPWov743wm0GhmFbbUz9nirUBuWOErAO82l2gW8bXhMGxRnK0OL MYmBklTowlrRoJDlVI2nryAg2SSMzWZIsNu1KJ+NgtRx+TreMUWhWgx4yT85rvUAFDZB /mZs61fBtsmh7+XQU3nAG186uN/uYkMnH6jM98USxYw6pCHXusgprv5sGm28eznP3CCg mu9tjwwEv+hkSY24bTA1F1my3qk3v+YVdi/YonY7ajLAJGfVCsP/Idul88pYZK7yqgkk DjCDjNH2BoiZGn++noZkKpxh9X3XnRGt9egE5fT/fZzQ75BS2n/rEoH9Vsp3IdRG+hME dA== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3bg43dumju-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 05 Oct 2021 01:31:27 +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 1951UdG0141646; Tue, 5 Oct 2021 01:30:44 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2173.outbound.protection.outlook.com [104.47.58.173]) by userp3020.oracle.com with ESMTP id 3bf16s9duq-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 05 Oct 2021 01:30:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JXW3rBU4X1UmuaVs3hhKZy80aYRAOvvH1TfwBvHBuvDy/J3u2syzcJ/EGcbxQ2mA/tFS/Cs6Yg3T9wGmB9pDVDFlDt/27DV4v8dm8wTT72IJonpn28lZ1n7LDp6EUPQpL7/tgtu3fbweSaLrYj6/IlkPHX8NQoCTscCfr56c2E39J0dZKDjddVABIqbvYudAYBUwVjkqv8lND/r+CZV39PLc7s4jEG8Tz/f9ABOnOU7EJL3gK0vElNsgfmlHCcDkMgv2k1TVHKqXbBv4EMc1/wAHcWY27injnILGcbDxfzMqwOfjENjziuLdkdgvcNKE/KC7tuasL+aofjCJTD936Q== 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=RhRtWCLFuf/IjKzlpC9PkvRZhp3YFOKb5O1vM858NFQ=; b=ESeyPCEIGG+JNnCy/KJR0/GWhXx5WXnZDK0WFtgBSbAZsRbKld8MhNtYbH3jcp+pz75nU07NRCFDyIWFOXqdEpoAG/pAQHmYIn+x0BAOJXZ1Yhqa77ZrufGicPuB70QqYb67E/GyOOc2uAQZ7kvwNnP9TDOB/R2jPR0IzifSJHYwiOHjWSt9/0OSy6wSzLKUKnOR+I8KbHOP5ZdEdnS8HFf9RWZKcOm/yveFeyOey5d5dXucEyuAOqZSnD0Zk9jI6EoBqv/33B6ttHpuVj8CCVUw2dagOX/VfJGH1TDLBeVrLP1ZaWdBYxzqo6RA/axkxt+TIMKA2rP0FXkmFsIHWg== 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=RhRtWCLFuf/IjKzlpC9PkvRZhp3YFOKb5O1vM858NFQ=; b=voaFRLIQFSqiCaJD9KPR3yTvVwyFKcAZXjxV7romO+xRRVsF4LU5OYxxKi6XQa5xn7TU0rodcGc1NjbY0wHZQ6uA5+G5j2Z+LbALvOBvA9yxOwku4/gHKq21FVnynWAgOpZCYrR6C5hBfuB+U6iDRcChUuPc+49Gx5RVC1tIETU= 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 15/66] mm/khugepaged: Optimize collapse_pte_mapped_thp() by using vma_lookup() Thread-Topic: [PATCH v3 15/66] mm/khugepaged: Optimize collapse_pte_mapped_thp() by using vma_lookup() Thread-Index: AQHXuYiZfye87b8RQU6Zh6yYK1qXOQ== Date: Tue, 5 Oct 2021 01:30:37 +0000 Message-ID: <20211005012959.1110504-16-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: c762357e-8976-43b4-30cb-08d9879fbc24 x-ms-traffictypediagnostic: BLAPR10MB5044: x-microsoft-antispam-prvs: <BLAPR10MB50441512A05C0CAA21D6502EFDAF9@BLAPR10MB5044.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: 1eiSqmWRhN0dvo16FMYwddN3XzdgSRoNB+XeKqOKGb7HXgU15f9Af5e6ZoL5PuA4Luz1em3Pb5MEM2OqLVlE7yeCuVEq4fxB4GGUWIH1nZUWrt3kNhhUx9wKxg8IMa05JooOShrtPdn/3ZNW1DMqMY/nueGwqthh+MY+b68MCZHiJnOQld1MIepjcrcfmOjEMeaLpE8SSd4gqdWq8SlADnLq5dfKTVockboPS453J2mJgsDeSN4YHzQqC492NBSHElzSoes3VVWHQCyVmLNv+vmQrB/nhZuxzOoGhkJnIyjSQoPRgXkfKH/v6kLg0lNY9Uyk8JC6WwrCI54fax66aFzlkQFfOZm8DPnIOCLF9pCGfGzATNKXyPzTTwEL7eu7IojbvGtyeBdrDWyTg/Xwx5Mh2xxjlSNyzQQbe4jdtq8aFQ/YSMbNP0tKQH9b58H0dDdEB30gg0s1lhUZ2Wg0ZR21FZ83GQnKncYc7Ha8sFMeao1HXIfzWWu5qe8YVNU+PayCkqQjvozx3gfjBns5dAsg5nh6/wQgUcjqigJJiNGrl9mSgRB1wdMTxte6xQndCGgCqB+5FFKmL+bxU8smdmpdl/RhSUlAkqBFUQH9wSfPYuAt937tPY4CoVQgLgmf7rMxJDUEGH0h+Nv+o2SCHT6jxC7Y7RN8gA38XOghrWs6g1VjJ+5DNyhFg9EzfvzxFd8FMF6vaGU7DLcLr3DUAg== 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?AkVte0HrPInQ/3NsyiwFbmV?= =?iso-8859-1?q?WzmZtXrwUwJ5ZzD5m+YrXsfH/gBNrp1JHag66b2DjoTjeMfnHpe6KaDbGp4X?= =?iso-8859-1?q?l4goyLNjSXe9JgenByp9OZO+dPpHO8XwUhyIpt6p/BrvPwMzwK3hYaYAw6SA?= =?iso-8859-1?q?0KBPadRfLkzEUSt/Beqjtmg27QFjhj23BIVgoVJj5AG1UCCAe01IUoCF9rJ6?= =?iso-8859-1?q?9hyXW2X1wBKtlgimO6aXZVM3Ng9uU2T42j0LRLEOJ1v7VnE0YTyOOc4Yh8aB?= =?iso-8859-1?q?jaK7ZmTBPG+BfBBTr9Pg490xfrTCwVJMbm++vhxR628nlfmJIBXn4dA8N2wR?= =?iso-8859-1?q?yANbbeXK1KvtfcjjiNUmTyRp2GWiymV+vi31S86GiPHwx3LGHFrOiJ0nX8hy?= =?iso-8859-1?q?3BbJ0r3Yqt8+namufW8F/k1jiQ8Ro6afZ7WKXi79oIpmMDZyfam262yW9oxj?= =?iso-8859-1?q?RZGU1k3A/47DDo+wlQNF1QcDd25Thx06NDo1+rX79TAS0NqWzCuhAAg46uHo?= =?iso-8859-1?q?h31SxZA0FLmJ7wBnrzlgQAKHMHHzJqoLVTAzf3RP7kKOcKryDuZq3ZsDGb2g?= =?iso-8859-1?q?gLs510tpR366FGtpK1etvplzVEJGRpbUC2fFIudBvDKDG6xgia+ahlPYCHoh?= =?iso-8859-1?q?6Q2fO6BUtBvhw4SxVHSjpEdsLzH95IXkusPzeW89BCAEfeUjQMDbxSCSGvH5?= =?iso-8859-1?q?CrTD+6vGq88umokb7pyDF9ZZT4agogZcXTGaeodLOEGtW9VV4pbNY0G7cMmE?= =?iso-8859-1?q?H1JtvX5YgmpiEcM8RpA7Lj9SbkX4uwKHdTQXgUaUyWnyfYA7nymNYjjKtpkT?= =?iso-8859-1?q?/w8a94dfui0IJNddMMbiquGBPLor560k8wRhZbNKs1W+wyhC8ikLVqDMd1mu?= =?iso-8859-1?q?S3nTl7KVQL557GOqdkijwstHN+mL4mttQa5wbERxKl00wKCm6W692Pj0EqBu?= =?iso-8859-1?q?yFXTUgLi/3JWo/16g1opP765uCDTpHR/VSsZO+AND4HVm/XNI9PcbKhjj4Rl?= =?iso-8859-1?q?s4lOrUa6s2YFSSz50D+InKkFlkAIX22fdLYjhL6G9EDNSpmtypElnZfpUCrl?= =?iso-8859-1?q?IBZFX6THYBSbPjdaqCsFWGSqe/WuTuJjrcbkzhRhXeHIDOkJzX6LgEWTAhzg?= =?iso-8859-1?q?TxPJOOUk+bTIuJT2gZHW1gL78i8fcxu8s35qXKXKvsJbh0tu4TbtzMNgD0ut?= =?iso-8859-1?q?UoVWWxqNnNsjEKA+3IXQk1oC5dLCTS7nmzqbB3QVTJPCrjUpNTsevMbulWDH?= =?iso-8859-1?q?/1R9vU1eOyxckIHEqZ8EQzM4P5oUkcv2G3fN/NK+FSWPdMwD9v8GFWWoRhWw?= =?iso-8859-1?q?BjoBHp9+CLd+14KPMzdeACxli3MOUr7mBpR+v7gGrog/kdFnYw/WoLu8J/J9?= =?iso-8859-1?q?i?= 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: c762357e-8976-43b4-30cb-08d9879fbc24 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Oct 2021 01:30:37.4434 (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: IyiWWnoftEQstVsyCtOh2lf2eNgSSTIYZ3D9W0SVqoP1Z4GRpFHpx0ap/07dqk80Uih/3H9AhEFmiQif6UiJWw== 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=842 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110050007 X-Proofpoint-GUID: TF-Omg7vV-kOAiNjTtfAk5ht09WBb4_j X-Proofpoint-ORIG-GUID: TF-Omg7vV-kOAiNjTtfAk5ht09WBb4_j X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: C32383000AF3 X-Stat-Signature: s443uo3iu8xzaew7inoj8pc6wdry975s Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2021-07-09 header.b=yQ6HQtpD; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=voaFRLIQ; dmarc=pass (policy=none) header.from=oracle.com; spf=none (imf08.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: 1633397496-437282 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 045cc579f724..f27673c596d2 100644 --- a/mm/khugepaged.c +++ b/mm/khugepaged.c @@ -1430,7 +1430,7 @@ static int khugepaged_add_pte_mapped_thp(struct mm_struct *mm, 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, _pmd;