Message ID | 20231101171629.3612299-12-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 467F5C4332F for <linux-mm@archiver.kernel.org>; Wed, 1 Nov 2023 17:17:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AD9C290000F; Wed, 1 Nov 2023 13:17:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A61F290000D; Wed, 1 Nov 2023 13:17:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8B6DB90000F; Wed, 1 Nov 2023 13:17:04 -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 6CFB990000D for <linux-mm@kvack.org>; Wed, 1 Nov 2023 13:17:04 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 1CD8E80984 for <linux-mm@kvack.org>; Wed, 1 Nov 2023 17:17:04 +0000 (UTC) X-FDA: 81410040768.09.ADD86B7 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf22.hostedemail.com (Postfix) with ESMTP id 95DB6C002C for <linux-mm@kvack.org>; Wed, 1 Nov 2023 17:17:00 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=r8aotf2A; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=zi4+U8vR; spf=pass (imf22.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1698859020; a=rsa-sha256; cv=pass; b=3PL0O2ECcGCmJnEfnmWWZi5rx3nQMeBK5PujF5oqpCyWixdVsE7CH1NN5ncPeUQCjjcHfY SPSYA4pF+A0Y2wYjlTSI17TKWUpKK2uurUqEtT4C34nRBdTG2t6dC1zBliAzrNPfKaiigx 1I01OgMvJv2wY+8OTeeL+CYdEZyW40A= ARC-Authentication-Results: i=2; imf22.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=r8aotf2A; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=zi4+U8vR; spf=pass (imf22.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1698859020; 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=8whd+Yd1cxMelqwjjNgyGUih5bjRsfAE6RJPlfXanJc=; b=pnLQ44+VotqmwLHnsFs2M9TJR3Jzxo27SvB3HQyUllzSXkKhYdBYNO9f/U514Xeoo6v1TZ DLcY1mwhTd1z/foWWZsRzUoI4BvRVIJo215eqW95uEdbM1qE8v0TxQOsQq4ysel9YScNVX nWIh1JkfPSGp/uk1Rn1E13lWmv1N7n8= Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A1GYaNG002351; Wed, 1 Nov 2023 17:16:59 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=8whd+Yd1cxMelqwjjNgyGUih5bjRsfAE6RJPlfXanJc=; b=r8aotf2A+mXWwlbNrUk5jpTRUsfQdJdeF/PFpwq0cd7RzyE8szX7GokMEMQ0Uspq7+va g9U+m+FumN66wiUL/9PObYQCxcQZZy7sumNVU/3Rsac0atcLypmjrjqpGdzIZSq30V28 K3HEsy7sklTsakLQjDQ/GCFqrc3JGHwSoD/QQ8CyRGLmUaTl9VW9KoS6UHA+20SRukKm 8NUS+HLExzHfEQVjsnaaGpyLFNqbA4TFvKvv27k2b2UltWVGhdPI/OWWhIVsAHfQyQI3 i1+qFn5yNQlbip3S1OUsN/X45DR1EVKhfR/4h9QzHm1XU14K3BE2KSOtVQ0IY87VDibI pw== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u0t6b7t71-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 Nov 2023 17:16:59 +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 3A1FoQ7g020069; Wed, 1 Nov 2023 17:16:58 GMT Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam04lp2041.outbound.protection.outlook.com [104.47.74.41]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3u0rr7d2va-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 Nov 2023 17:16:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MNaKs1yfDXN8GagrQVRbEaigKaYZHJkGYvp69Jo0K1XvZKpCoUD78fVeuIGsPoJWn07W6YE08ZDFGFGdDwSRQVyxsyDmnfUXGAyXL+mmR5qAgLfaQffoVCmJhs9Nn7vgoByibvXFzeESjBARLSGZJE9yV2AtPtt8eokdf6ins7lWuWtchzsfTiAMJQYakQw+Vr6LhgDbgbkXQGWhNd9ssdVAgUXgF1kmxY0TgYqbMwTnQvaMYSoHH1R7ki39/bQKMaDoFL8fPZUCZKBp18OdDd/pSnpj+JYxGq3cHn4FNGU58wzvwYZabKZV/L8xpKRDEAtwazKho9UsVk6JqeAccQ== 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=8whd+Yd1cxMelqwjjNgyGUih5bjRsfAE6RJPlfXanJc=; b=oMLg7T/REVgfdH8Zb9qMXJBcQUYfSZQxM00wHZ5PEbm/layE62XGlZ51T/nzKgwIaFhFGsYGDUIJTx0uZu+z5uOYKbGxB/jYbiNqrbPgrzqr1zYZu8KD72pvUjIotsvjK52XIb04BxhkKVqO7kZYgv+Ga9T0XTzef7BSoOdlXkq1lWsd2HDhJkNTy6J8wXWjQbVukDe3w4ao8JXYV7tlqNp+gtWZWx6jINvTqyDwT617g/xZTL/nZwP4VvMcHOE9N0gzSV9ZYf0YLur3ZDYJ+V+1s/s+WZHc4Lqf6Yb9pCYFOr9iOFBm/oPP+bVkwPbnyKkBD8ql9o1B/RxgLFByqA== 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=8whd+Yd1cxMelqwjjNgyGUih5bjRsfAE6RJPlfXanJc=; b=zi4+U8vRnKFEzVEg4NA4dIC1BWBjO+Rbj0DV7Y0EFQ131WOiVOGrVR6mhpLCvaq1jxInmT6lucUPA9v4hhI0xUX/bSsDpPO+OQyDT89l6mOMMUjs/pS+3LztF1MRpCC+rJp7oYHV66xOw0DQ//XQEA03R1ivQn7p64bc3QZsRyE= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by SA1PR10MB7684.namprd10.prod.outlook.com (2603:10b6:806:38e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.31; Wed, 1 Nov 2023 17:16:56 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8979:3e3f:c3e0:8dfa]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8979:3e3f:c3e0:8dfa%4]) with mapi id 15.20.6907.025; Wed, 1 Nov 2023 17:16:56 +0000 From: "Liam R. Howlett" <Liam.Howlett@oracle.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Liam R. Howlett" <Liam.Howlett@oracle.com> Subject: [PATCH 11/12] maple_tree: Don't find node end in mtree_lookup_walk() Date: Wed, 1 Nov 2023 13:16:28 -0400 Message-Id: <20231101171629.3612299-12-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231101171629.3612299-1-Liam.Howlett@oracle.com> References: <20231101171629.3612299-1-Liam.Howlett@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BN8PR12CA0015.namprd12.prod.outlook.com (2603:10b6:408:60::28) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|SA1PR10MB7684:EE_ X-MS-Office365-Filtering-Correlation-Id: 4876f74d-3778-4315-fac2-08dbdafe59e6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mqQiRW+Ly42Q53O924nK1IrJdMf/uo6xNj2BY0FXaz7eWbDcgcVGqU/ndOhpS32fkFDbFPwRujETddQkDughz08x1y8gL900U4Z1MPbs4S55X0HRHe3cuWQ8JOBgvtwXx+VQZn3LUAsaEXTge8rGXcYHc1zql5CxXMLgtY2rjyJx2YzToGkvSv7R6sxE7QleEdSGFIclNtUD+DFP3lJAgen/HADrqmgEq/5i3+NWojAwuM69pkSE/nWyH9Yt52M2DvBei3fkMaTCtklqSSaYZGsA+CWB0KWi+f20kcuYjWSW3oaMXuvSfMW19OrDYmOImcAbyYU0Xs33a7kn5SFkWGprBm3na1Z3w5la8b9zxrZh52V1ZAgMxlCrJ/0XjJrJ7AZX8xcL/0QMJdguOhb86ejT/Ai0om2w1heob8PDqBvuoIIsy9woWQJQazapgIHkkzV0bfwTsiymhiVsO1wlqoLL/RaZrI5Zoa12wRbJy6vy2wud9Uk7Dy1L8CnPL5tzEdA3xT4k50OJ8w41xltyloGXmrj7klyN27G/7eCtQlk0g+SilWOjTSeSY3fG8G3B 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:(13230031)(346002)(136003)(376002)(366004)(396003)(39860400002)(230922051799003)(186009)(451199024)(1800799009)(64100799003)(6486002)(8936002)(2906002)(4326008)(41300700001)(8676002)(5660300002)(6666004)(6506007)(66476007)(107886003)(83380400001)(1076003)(2616005)(36756003)(26005)(6512007)(38100700002)(316002)(86362001)(478600001)(66556008)(6916009)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zw03HPwY1tnNqKmawLRoO3KebHZf0fEBO88WlQbH2FN9/vCeaLmLQBrLjWyANw14QWIxDvGrTc9YQRMzsD19qrNpeMc6uWIUU8T6RyiDAUI45MdivWjdPilj+pqm6+2nOq83N7qorRKkz/Eo2O1rGYuOcfTzzq0nhEdZ2lysXS9jescHzS81IDI+hVnSk3CZApAtq/rmK90h+YwqjdiYPvkCXOJ0rSk0ufwl9ol7Iess5z+hvqYKVe7qpmOFVFck1uTtp9N2CRX1Ci1Qz2sTO/hyHyqgXtzq7bWdBHFk4CtaxisUHOhq/DH0HaAqZ8Zq/d03Z00fKb4+UC1CHp4uwPyOSH++z2VGtQVIy7p8wRl2OK9L2tHiOkQqkkrGVdvCWNIo+BvJLnB7Ir4CRU/sZttxLSCgj2f8k7wLIDs79ApQBZNp//+dXuH7SXDo0++pM4YL6E3Yg3fr7EjJe115R2+PkyA+A6j80XaKtLO678N9caS43wsvz3JSExN3L9NLgQaLgevp9rmxybT9Hfw5FVUoJo681gXDKRPZll/9uzdt7cn299H8+VJICmSGdKPiFNJishb7l5zqfir78Xs6GZvycjQWsGirFjKrA5rxjIL3pskEn1Rec7WuTHK92J4BfQcTmsBAgKnhr85KLCkbyxKpPjqNsCh9yNQwQv1/Iq+tmGppQTq9iMZCp8QR0aeGDDWyYMK/hUFOGpNTTEMMbBFLLEInZUfRR9ygP0FfQ2seSELhikddvQYZ8jA2UYxcXiVpvsazfyDM//4oqms4WyROyT3JVvUmTSeRcAaIi1AqJbyYC0YE2KJ5FxGYa+C6vNgxqq7Yb/Wwi7/IxDMbkaK02epsPTAKPm27wofRwGHVpbDWHYeWLHVzKG/EEdB8fYn4Ta7pV4gSisOQaFYdWndKDAHO/I7bkPL5knsC5CGwDjAtkIfHsBp9fekU3VaX3E4SkACztkoaX1OU2u8ti1BCUql6/y44q6/FhkrvDKG6rzucmbQ9rDQcKTKT+EFiYn0CiQDWdevV441qaR1jydZO74uBG5u9gSZDRdwBKsUgm7+iZucsz8C2V9YeDlYKhqgkreQOoQ519C7xmpH1X9vwnPb780UxJ9tBZrMT0O+0ixruc0FPxj6D6J0Cb8c64blZS61PiW4D1bM980URJufW4KIey4k9Fqao4ZvifKUHXh+gNHx3fXx1jIvlFl8S03k+56sGyE0gVcjdavq1kjBb9LFvoEvq754RFg+Yw+zRFjAreF4q8io61rEnaWGwL70xZn/13A1OL4pzxtvmifgge9kb7OWaQbKnnUlOmBbSYnQ/T3MzNlvCO7+OJKjZNFSDIlZbQcdZ35e49nlGI72ZWBckXJn3LvEAN5YKiZYqkUl8h6EzpTys4a2RTrEobfMr4oNBwnMLyZKUnBegqSsVQWJW+OiQrEuynP7TQ0T6qW75Y0vnXK6FpmAWucU03Q0dBuUApgRZr8kPRDGUDQkZ4rHhiK+nS7mRqPpvaoCsDLafJMRxkJOpopjLNxOcWZIMt1yirxWBEvgLdpeVHHS3UjUm3auC0rKAiDjabQ0XlMMxkK4lQ4l/odhEGLEJblEa7oIPFP+1zUyihoaYyw== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: NrK/kCKcCo505tXeHGSCM3ZNZp/WG5BFH92wswuVeaXO7QmM8b6EfsLmX/MjREn6lDV13lwQL5Kz4bIT/NQPYqwDzjj5klGFJy64kLT6xOO3hJdB+tXuoyF5HmAd1bkHwh+UKk0K45I5cXTGOWLvJzx3J8oJWaDtFjnp6VVDIl0+Fl5509ALpGu6puqIoaibuNnI1cjV+DrAedA2xNW/dmUhwT3sq++wU/diJa2agPXYxZItm9fQYxf1vlfp4skGAC0is703GxAYIH9J9USQOCN73yZcKCNptsFYjp2FISekEdO8e8qVb0HOSkduicV7cJYRzkhL5WRSbwN25WFhF7akqkesEyEDRJZ9a64Y5eHi1slrrBgaCrCOgjo4BN6YbXjNZvn5M0PB9G8b3uVPXSSkXFLXlFyq0b5jh5YhkywvbhPHGc4enMW/xpSAH03oaa3jzD3vj7tCdvVgTmwPqJy1qN/Zx7WTcUkQ6TvXqktJTmyRqNevglIQaQhNv6gOpa81hvDcX4Ek2IJVXEGNgfBndZrBBoR0hRvI3RjACgp5v7jwW/iuBKP9O6NVlOgKZrVhm5oxhSPMABHP5DGvPkgn7S74ojZdl7/TW66XQJEL4OFg6Pn7Dme+ouDiO1E0uW6kJJvAyj3CGrteOBcY5DhYnECYVefSlQocpit509KfbswR18IOraP1M/Je2g5brgf9vuYYj+gntYziIIK0BQmsVs8CLl1UB/TxPesmvIZtY5M1+C8yFK5N1aW/xOt0UnWHc9R5lTIpRABUfyoqvYMwsBX3t5ZpCxU7nvQy8K6NvdL8aJSdsG14lNkSnyC5tqt+KSvKCmmGQ+8r1LsX1YSq0XDZOKHBFEAAEmZDdjrZ0QBoV/2dahAvZtR284y5a7ZkLqDq/yZDp+T3zfJ+9w== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4876f74d-3778-4315-fac2-08dbdafe59e6 X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2023 17:16:56.8727 (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: zAoH8iucL29OvpAjFYvlzDlJ3ItlcNW68PzoKoLUr7ESiK+hW47ANY58Xka6SiGK2Um4vuhSgSNW3IKbK818oA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB7684 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-01_15,2023-11-01_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 mlxscore=0 spamscore=0 phishscore=0 adultscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2311010134 X-Proofpoint-GUID: Xfg-W5ZBtaBmw_FkDP_lhgHJkXzsx5s3 X-Proofpoint-ORIG-GUID: Xfg-W5ZBtaBmw_FkDP_lhgHJkXzsx5s3 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 95DB6C002C X-Stat-Signature: 4owepizmb4as516mqirawwc7q97yim4t X-Rspam-User: X-HE-Tag: 1698859020-810634 X-HE-Meta: U2FsdGVkX1+Dw+xBOz6yeVKm/ybSRZBKpz6WAE0C3Nr814YmB2Qjx2Th4rygh0M7n0M+xKC253Sek38S304u5yaKLR5gvowxBzJSif9L3TOYZEJFGQneeDt8UeYTXcW6IFvIWBkib3nvbN08u8VxxTfY/3cV6biOp0bcu4xWnNG9K+WThXNfvz94ceJOtEpT1evFRr+dr4CCvbK0tIuYhVjjhd2ho9NfeMygnadkPAZWu8hR7/hTh9rpAoxg3STFr9LzYlVvvn4AqG9pvSQgDt8JYPRZgaeQmYdtnNjkDdQZzZ6hO5vbRzYIYDOtvquMWQXPALKRNGV3hM+rIha+n0BepAthIpNLbfgDea65JYkFKGPasgRrepTkQO1sksuElVrZjP+cmmPX5MeIszfaptS21azUo5p57+Ls3tPbhFLcqqkzCT+irZe93wK+wNFrIKGUsHxKq/DGSHbtfV28/dQ9zZ0nN0Lt6pDb30Y+bUnlHKSq363YoB/LEQz7Dqtsc0ZxTsh4bG2uf4+8qjO/CeH9OO9NFDKLKUHCcHlNVJDCQu79KKHaI8QSTKCXFJbkwPT2w52NrhH2P7sd9oLSh+vEGECbZuviRFbPTN72EZ+uobm0IZsy6XIXBN5dHitEA8spDn92+AsTd3nlSJWdWKfxV2FmFBjY+ftEnt1tSS656FjABOB8RVv07uZkDkdfwZEsbgdDoV1B8HQ3k+neq45j57sGSEo1Co8nOH7CcYvPVU+4cXYrsseFg+UL4eeTX4Vt0KDTFYjJuu7It6C+bMZ3LCM6LESjiyArHvDLqIA/vvAa3uWgwoynFR0xvGXrZ7FRqWb85pSyYImdMJg0CV+udqNWpqrvorZdUTp4vA5fCUlpE+ODXGuBlsK4gONjH7CRmRyRyIYW0XahnMqWTipblKqxq4ppVMEkHFwZLXoHoJMHB35MIo7Sb52qSnAc59XE25rghT3VYOfbAL5 aI+FMsDe 1yQapTJsB2tparlZ35GUAmIkCwsOdnQI4oKSluRwtZ3mWVzl91VSuFKL6kZaTJpYLhee0JiEOsrpDsfqBumjnQAfY2RvPolNq+lcp2/s+FbtNXmxS9Z6DHjLkaH42EfAHKQgZPiJn0PwBqhQ/jneS+ZfSlkxH+aPa6pIAf7m+spf8mK6aNeH5Minkxuuf7tjf7NYIKknRfABoGoe4dmuMc58ftwhLS9VM2jQIQuAzhCKeyj3Dl9vmnrSnTl8FceZV8kr5ZjLhnCmUNDXmFxGxuphUvwGdmxlzQQ6rS+Kn3Mi5oB2gAAgabNz8D9JHU4Q0RJXmbh3FsICLs6DcLDICNnEoGaNLb1wZ1kZRO329z/mtI1ufx9xwNLlQzx60D5cCsYdmTTXEHqw8zeK+DLc/IHqvBSJS9s5kqIpKwejXS6Kt4NKbKM6qCKEGChEyhOBTexCcJ9mbLyB6IFs= 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
maple_tree: iterator state changes
|
expand
|
diff --git a/lib/maple_tree.c b/lib/maple_tree.c index e45734676471..a91adaf17306 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3732,23 +3732,17 @@ static inline void *mtree_lookup_walk(struct ma_state *mas) enum maple_type type; void __rcu **slots; unsigned char end; - unsigned long max; next = mas->node; - max = ULONG_MAX; do { - offset = 0; node = mte_to_node(next); type = mte_node_type(next); pivots = ma_pivots(node, type); - end = ma_data_end(node, type, pivots, max); - if (unlikely(ma_dead_node(node))) - goto dead_node; + end = mt_pivots[type]; + offset = 0; do { - if (pivots[offset] >= mas->index) { - max = pivots[offset]; + if (pivots[offset] >= mas->index) break; - } } while (++offset < end); slots = ma_slots(node, type); diff --git a/lib/test_maple_tree.c b/lib/test_maple_tree.c index b82c02f15380..d36dc64a93e4 100644 --- a/lib/test_maple_tree.c +++ b/lib/test_maple_tree.c @@ -42,6 +42,7 @@ atomic_t maple_tree_tests_passed; /* #define BENCH_NODE_STORE */ /* #define BENCH_AWALK */ /* #define BENCH_WALK */ +/* #define BENCH_LOAD */ /* #define BENCH_MT_FOR_EACH */ /* #define BENCH_FORK */ /* #define BENCH_MAS_FOR_EACH */ @@ -1753,6 +1754,19 @@ static noinline void __init bench_walk(struct maple_tree *mt) } #endif +#if defined(BENCH_LOAD) +static noinline void __init bench_load(struct maple_tree *mt) +{ + int i, max = 2500, count = 550000000; + + for (i = 0; i < max; i += 10) + mtree_store_range(mt, i, i + 5, xa_mk_value(i), GFP_KERNEL); + + for (i = 0; i < count; i++) + mtree_load(mt, 1470); +} +#endif + #if defined(BENCH_MT_FOR_EACH) static noinline void __init bench_mt_for_each(struct maple_tree *mt) { @@ -3606,6 +3620,13 @@ static int __init maple_tree_seed(void) mtree_destroy(&tree); goto skip; #endif +#if defined(BENCH_LOAD) +#define BENCH + mt_init_flags(&tree, MT_FLAGS_ALLOC_RANGE); + bench_load(&tree); + mtree_destroy(&tree); + goto skip; +#endif #if defined(BENCH_FORK) #define BENCH mt_init_flags(&tree, MT_FLAGS_ALLOC_RANGE);
Since the pivot being set is now reliable, the optimized loop no longer needs to find the node end. The redundant check for a dead node can also be avoided as there is no danger of using the wrong pivot since the results will be thrown out in the case of a dead node by the later check. This patch also adds a benchmark test for the function to the maple tree test framework. The benchmark shows an average increase performance of 5.98% over 3 runs with this commit. Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> --- lib/maple_tree.c | 12 +++--------- lib/test_maple_tree.c | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 9 deletions(-)