Message ID | 20220215144241.3812052-62-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 98721C433F5 for <linux-mm@archiver.kernel.org>; Tue, 15 Feb 2022 14:44:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 486336B00AC; Tue, 15 Feb 2022 09:44:38 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3E3DB6B00AD; Tue, 15 Feb 2022 09:44:38 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 25EFE6B00AE; Tue, 15 Feb 2022 09:44:38 -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 F03AB6B00AD for <linux-mm@kvack.org>; Tue, 15 Feb 2022 09:44:37 -0500 (EST) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id BDABB8249980 for <linux-mm@kvack.org>; Tue, 15 Feb 2022 14:44:37 +0000 (UTC) X-FDA: 79145285394.28.8B3FA12 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf25.hostedemail.com (Postfix) with ESMTP id 2CBE4A000E for <linux-mm@kvack.org>; Tue, 15 Feb 2022 14:44:36 +0000 (UTC) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 21FEhu07022175; Tue, 15 Feb 2022 14:44:36 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=2g34oeaEstuR6k1KnVWoqEnaAj9qxbo8IU7t0rZ31aw=; b=dp86RNqIH1IE+6vVCp6b3yxa1CfNgyK7eqINZ1Ch1XTTu1Wh+MyG3n8Fc6c+ffKB8VKi LZBCjrCWaBGEUQI31daWrZMYYPAm7sqGVRcbdgL8AsC/Hj8aXTKRIn7E2BYtbmQViSY/ /E8adMXE/W8xNA/I7eSh9mcaDS1ZD+l0uex5nPwnPz3TSgoROgfzy0uCFfA6pOufgc37 Eat1pokzxhpOmjh7L2svC+RvVOT5i9emgxrSDsTJXp6SBQ3o/yAtzF5JJhG0bXAnzTWm fr71LDew/i3cdyW9N+AqXomKKPrlqFJnsTrzUYTUwxTcRl5Am1Z8/ouxNmMSfhV16kBy ww== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by mx0b-00069f02.pphosted.com with ESMTP id 3e884r97jv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 Feb 2022 14:44:36 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 21FEe5V8157068; Tue, 15 Feb 2022 14:44:35 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by aserp3020.oracle.com with ESMTP id 3e6qkya227-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 Feb 2022 14:44:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FHtjMOsR2E9iwSMoypU+zu0JhHmF3zVY64N9bjfKqDf1qW0QegIHwIqpJxhHkxl6+K6hoNmmoZXzwiwtEW5dY/O0wtR33vxlWlRu7QjSlWhHrQIf2K5PJ750ysUt6JTuHTgwCfzXWNFZWjbuR1J94OlKbTM4oNDYg6uXopcB8xYra3gwPLSYVlssJO6y+Ix79+bXUHqVFFB1X6jjuS5C3qMokepQpFW0EWAJJ0oPE3n2uuaOGJ113QsfIIC/bKa48I9fzd9gSML0b4Er0VekdE9oPzl9R7kWnA2xnumKIs/UX8AJ1op6hEUhPtk0k+dwz1Z6giRVZ/NTANmtz/VaCw== 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=2g34oeaEstuR6k1KnVWoqEnaAj9qxbo8IU7t0rZ31aw=; b=I8ODKaAtZXnyhkmFbFXdd3GAUUSeNOR+o0iAsLmEuYEZCd3rwBNV9WpHkYCAOS5fsp3J1Pw5hIkewuliDQu1ip77C/ozPgPJRlyTB2a99+YhNABb8PFoGCKRE+6302+uyw7aM9jfF7inw/l+gJuN6KsEwvvp9MuSPkAlLtZtIPVEOASJDgXa1CAQ96fFAqRfhGBhiJYMJy8q+YPIPEt+mgZ8FM6IwUV7spAvAn7yRtr4cInFBD9h1CV21fldxzBPqYzcDCgo98RKL82Lyr3lBZ2/Prmd5DQWR8UP/P8MzEvNxZx8rPEQnCcTDQlCubjnzsRYkBRS0J8pUuNwT4b3FQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=2g34oeaEstuR6k1KnVWoqEnaAj9qxbo8IU7t0rZ31aw=; b=S05KwP33+T/yhtN+/pmi+YFuWQI5diDevyRegF5x3odGUrWqsMuJpJQB5XQsA0nMVT8xhMjCIhn+0jrQ2NcYNBvV8wS1yON5CYQ/NjhN7spT5bF2x9t7DxltIFVFJ/ZqN7COp+l0AYQ6p554W6VsLEXz/9EVMTi1JPfi8ojaKgY= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by CY4PR10MB1863.namprd10.prod.outlook.com (2603:10b6:903:11e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.15; Tue, 15 Feb 2022 14:44:33 +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:44:33 +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 62/71] mm/msync: Use vma_find() instead of vma linked list Thread-Topic: [PATCH v6 62/71] mm/msync: Use vma_find() instead of vma linked list Thread-Index: AQHYInpjHUEWWNQ6MUCOfqD9MZRPwA== Date: Tue, 15 Feb 2022 14:43:26 +0000 Message-ID: <20220215144241.3812052-62-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: 52a4c0cf-cb6f-40e6-4463-08d9f091ae6f x-ms-traffictypediagnostic: CY4PR10MB1863:EE_ x-microsoft-antispam-prvs: <CY4PR10MB1863210CA4309D30BCAA8D6EFD349@CY4PR10MB1863.namprd10.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:296; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bZusC7cf9HWae+sb4q6aeQLQe0VvvNoTbBPkeScwY61WDu1nJubZPdMJTkwXdTpWr187IxR31j+NSIDtQyZENb5zI9TXHgLAun2CTVlmVHlvBrWtkf0Sef55kIpDY/jBbCszqxNuO26Kzcgn2v+OSKf/NW7sSodFFCovFUIr7ptBtNbARzIVSQFkCGUT0yiPq61wE0SjDWSW8gX8et2d+/cTesEz4r8UET8PTSEwXszjgC/4mZA9Wzeo7ZeiPoTcC18zbPikjmvBc9WxuVSlP+QNc0WbEbvv2imOuegW0vu30tTmQD4cm2fywZ+V9HKTX76rRDrkunjYDG5iyjoLhEZ19LbDuisuDub4NWBP9flT0mNyNAcjvf6ji9t8IErDJRYtmE76MSKaAwLaK0HF55/mHH+ceozYtdqT9LANYBna2V7cga2h+kpiK7sD+RzLzqHAks4EAJajt+t2mBEZhbUBckuFdOZSl0cp9cLGP8mrlpJ/kCl3sGoxwsS27zu+f/Av5svEruAJWkyXmuVKfEs9QYeo4tjY9jbs3OLExZPOu/NcLq2y/Ajnksizbgf57TShdEhNZxxRSwRMwfNXe4OVf/ypvnDnwvNIxXbpa++mipFW0yVeTHvlmYRvorK0eXYBBBqyS1e7BNTzPd8igKa4yhnJTzi47k7+pZNHSfTNlblF6OzvkHrAKf203hrKoMctdkm/+BB9NyPY8Tg/0g== 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)(66446008)(86362001)(66556008)(8676002)(64756008)(316002)(2906002)(44832011)(122000001)(66946007)(66476007)(110136005)(38100700002)(76116006)(91956017)(6486002)(83380400001)(1076003)(5660300002)(8936002)(186003)(2616005)(38070700005)(36756003)(71200400001)(26005)(6506007)(508600001)(6512007)(6666004)(4744005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?zFPD81oj7FH9hFVdX6n7TVF?= =?iso-8859-1?q?tFavQ4aM/N7e0t6U/cf5IkOTMlsaQX+tJClPU0KWLAPl8xAdWfk0HOBSItdv?= =?iso-8859-1?q?wvGJsQy9zx8dX+IjJvdhiKSOplNwFVYygfjGO9E+QmxrFbNRNtyf2IWTfWfJ?= =?iso-8859-1?q?OUzCVuJ1O3DPdXqBaSL4FZXh4kj1J0WAgYU+mQb4ePCW8+WUunV8w/eD9yxS?= =?iso-8859-1?q?n8y1JzETWdMS3XikrN7dcaROobDdMhJqnXN3q4DaL9stSy2MC5Rj7UqE4p90?= =?iso-8859-1?q?0WWOcxKxjvP4AnXEQ5Y4KM35+0xQ6aovTjXNHByAlkPWmYY/OCSjhl34VJl0?= =?iso-8859-1?q?ENCnQh/rFnX/l4HWtR96WyjJ2JwfMp9PtZ/dAD67iZgpxa7U5vDXygX4hFYD?= =?iso-8859-1?q?02CAVGpOd3hBSKphgJNN/VXbUCzmXMZBzzj6cO7AGERK2fZQGhuNUMVPA0gj?= =?iso-8859-1?q?FpjjcPq7zEDUL5rLASBnrTwiKZA+PSF0d8tJDRKJev5/lv1Q7OQy/KNHS7Vy?= =?iso-8859-1?q?EeZjGVMdCAfju+/I/2QH8Te4EAzSrGwUe721ypEMEA7fYnLESgBH6UdSmakC?= =?iso-8859-1?q?J8EZcBNrt3gqTEOwJ9n/8MEav4QWZT8shVhdBChpSWoaTSQOhBuz5sA/Nnuu?= =?iso-8859-1?q?WPUEqxmCYKVCKMej2S/u8bm7HrCHKyFQ42LphpeZiTHKqOhBXeFItIjmjPyX?= =?iso-8859-1?q?ZRuHstuu7OoACLfGvVz1zAl7Z59kgGeO5qhL31JknOm3JGLgE6IONc+dkQV6?= =?iso-8859-1?q?6ZWxf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M4FokBFVFlP/QUcmskWn5mf0qK+xdpQGE?= =?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: 52a4c0cf-cb6f-40e6-4463-08d9f091ae6f X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2022 14:43:26.2445 (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: IpYni3V2cyGsDXbQ2aUUzOdDjpVstu/a6Z9VJwczG29JZAFdkVtuBb7uz0UeyeQZEoIkGM+5DhiEnsnHgnnydw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR10MB1863 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10258 signatures=673431 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 suspectscore=0 phishscore=0 malwarescore=0 mlxscore=0 mlxlogscore=968 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202150085 X-Proofpoint-GUID: qPk3mw0I5TxCvoqtTCfjS1UD2nRauZo9 X-Proofpoint-ORIG-GUID: qPk3mw0I5TxCvoqtTCfjS1UD2nRauZo9 X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 2CBE4A000E X-Stat-Signature: j4yn9s3ifx4fbyuggue9x7ep1zw33wji X-Rspam-User: Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2021-07-09 header.b=dp86RNqI; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=S05KwP33; dmarc=pass (policy=none) header.from=oracle.com; spf=none (imf25.hostedemail.com: domain of liam.howlett@oracle.com has no SPF policy when checking 205.220.177.32) smtp.mailfrom=liam.howlett@oracle.com X-HE-Tag: 1644936276-160241 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/msync.c b/mm/msync.c index 137d1c104f3e..ac4c9bfea2e7 100644 --- a/mm/msync.c +++ b/mm/msync.c @@ -104,7 +104,7 @@ SYSCALL_DEFINE3(msync, unsigned long, start, size_t, len, int, flags) error = 0; goto out_unlock; } - vma = vma->vm_next; + vma = find_vma(mm, vma->vm_end); } } out_unlock: