Message ID | 20230512182036.359030-30-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 E94CFC7EE26 for <linux-mm@archiver.kernel.org>; Fri, 12 May 2023 18:22:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 49B72900010; Fri, 12 May 2023 14:22:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3D4E2900003; Fri, 12 May 2023 14:22:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 20704900010; Fri, 12 May 2023 14:22:12 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id EA53E900003 for <linux-mm@kvack.org>; Fri, 12 May 2023 14:22:11 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id A4258120FC9 for <linux-mm@kvack.org>; Fri, 12 May 2023 18:22:11 +0000 (UTC) X-FDA: 80782422462.16.609C5C2 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf24.hostedemail.com (Postfix) with ESMTP id 3C91018000F for <linux-mm@kvack.org>; Fri, 12 May 2023 18:22:08 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=eE9768Ik; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=ujMYm2TW; spf=pass (imf24.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.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=1683915728; 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=hgPz8T1WANsIM3jiTasywPGcohQqXRj1T+Dc+8WldZ0=; b=66EAK88Ivls4rucmYMcTdh68yrCPT+3RtCLzwPhGhb/McqEVonyVi0r6vW8ZSarPCFMa8c zX+lHSg6LmCQtybMguaXoBLl/kND5J7dMrfi4oRMXhK9CAjffNNh+uZ2wpvGXrjAy2T99I OjTZTGnMxWbvsc+WAwE9UDB7/4bczBY= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1683915728; a=rsa-sha256; cv=pass; b=j3V3Xgs82Tl5+Qs45hkles8hrlZqujU95XUnWUraRvCuEDveLrhwFfAgXidisT9kyAZPJ9 kNQD7O7hLxXnzbwg33gtBQ/8uQOB1xc/wCYr/Z3npuqUwcw/DrjKHNYozxfJz8QHARR0s2 60y4q0MYx7agnMrY0M6BmbA1b7QecVU= ARC-Authentication-Results: i=2; imf24.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=eE9768Ik; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=ujMYm2TW; spf=pass (imf24.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.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 Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34CF4BOM002662; Fri, 12 May 2023 18:22:07 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=hgPz8T1WANsIM3jiTasywPGcohQqXRj1T+Dc+8WldZ0=; b=eE9768IkQLA67MoY+zYeuuj81UEV/AwHn9G2vfQpeQCPQPx03D8hzDQ7V1mZaZKfOst3 UCc/GZqUCRq2OlE+Gedcto9sIgwu8/2tO2nuvgrJnv9fSy89WOMTSNWHaaFaolS0HZYP vZ1up8jZ3/4CTo4G/MhrWe+U7gzEG0aHAx3ehA8y1zuf6Tl/JoquAO+PT3wMcV5UJi7d +5Wz40QNYPiz3oV6KZqTSBVyl3gMo+D3gthHUEt/B0c0F+6KkE9HfxXS9BO5sJbcT/4C FRaXyw+LvW50tCCQ0Dc/bXF+zHMB7etGurZoGtUiTVvB/33AgtYaiRmA9nN0IC8/q+VC SQ== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qf777bkxf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 May 2023 18:22:07 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 34CIBqZg018147; Fri, 12 May 2023 18:22:06 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2170.outbound.protection.outlook.com [104.47.59.170]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3qf77mjmca-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 May 2023 18:22:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dhgfXATd3qU1Vm/p26haEATcJmRdqnKgoIn/AZ+QrsjMbIZXOP6h5V7Gm5lNwnpLx9Dr/6e9jOqfUB6nq9HoqLkxY8bRziZzT005NzJi5p7dZdiCSTTfwh8bAnMF3gAc23SgeWg+n0wy3AOD5o7vQPGXzGSXLAYPzzL0KlGNX8fl2Acse77N98o+hmzA2ViUt3hZ8JNjwhoVsr1u///cB6qQckr3Ij/UrP1YoYiT3KQ45fEaTlI1Oy1Y/ZmSZFkHOrP9XyAsNVloaX2+P3t8mknfxtgmLg4RNz0UKlk22rwc966hjmhZ4UMQ45eF23fN+DPMVIQDhkqpupf/6AqcTg== 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=hgPz8T1WANsIM3jiTasywPGcohQqXRj1T+Dc+8WldZ0=; b=hgNjg7T7wuDGP6/CkAxlm+TLRk2fMqSkqht5gyKXaZZZZmX/ExzwcD2zAuNrJx85CSQw3sgtuocewXMG2poL+Fx9hlmidFa66pt2IgJg7T2Xui5xePx3D241bhEHI1ZzZoH4olbcfuRueXksL+uIVDCxPyP+0KA43xebZA8fQxkBBNuL/9V99j6BJ4u/fy0glrRbv03wAnPw8Wd08Boi3yQ9FGjVxA68f1t0XOqXe+eF916p3WisuVtt/Fx0St5Ijm2d1zGZyhsGn6yxOG2Lq3X9PHKMH/yxCG/IdIMc4Le+r7eysEe/pzkucVFg7nLeapjHBu9tw5F0l4+77Uh1jg== 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=hgPz8T1WANsIM3jiTasywPGcohQqXRj1T+Dc+8WldZ0=; b=ujMYm2TW9pk/rA4l9kTprU36KPEEJu91PNPeMDc95iUh+BE5tN20ZLEIHp9AP4qMiLKfEtimbJFzqx5ataEURY+b1afe48w1R5CqpFvRpJ46rZ8hbKxchL8u3gknJ4OT4H7lSdtAZmh1mmdW3P+vNZqy3hQIMleeFoetESX8f4o= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by CH0PR10MB5211.namprd10.prod.outlook.com (2603:10b6:610:df::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.18; Fri, 12 May 2023 18:22:04 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::c478:d218:8f15:37c]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::c478:d218:8f15:37c%6]) with mapi id 15.20.6363.032; Fri, 12 May 2023 18:22:04 +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 v3 29/35] maple_tree: Relocate mas_rewalk() and mas_rewalk_if_dead() Date: Fri, 12 May 2023 14:20:30 -0400 Message-Id: <20230512182036.359030-30-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230512182036.359030-1-Liam.Howlett@oracle.com> References: <20230512182036.359030-1-Liam.Howlett@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YT4PR01CA0348.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:fc::10) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|CH0PR10MB5211:EE_ X-MS-Office365-Filtering-Correlation-Id: baab5718-671b-4955-1788-08db5315c9b2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zBrDQZVjwlvdp6GDcwXVKhBhzlVyu8/3/tD0An6IjMGl0bsGGQ/JY4y+RTN8kMnI0TjzFHr40DEEM1ltxQinCbkTU/mM8rbQqpHCdQ2mNxP2wWiPseM6Af/jJNt1eHBt3kRnfPwfxTgoildEr42V2aOK78pZv45c6GA8XUGnFPHxZJ8SbVSfJbRZIKtFclkKoN550GAvll69K7pW0/9WTW2hn6lUeRFpbE9OtizESWWR62c7dL+q7juuH6LBHf/OocLiTH2lyrgS7s7XquZoosODUPJAhKpHp0HgsP2yk2/d2vmcwPHFBZpkTHNsKgvn84CaCpnXk4sWOJdMXc7BHlHfhWqRxa3QLNT5frWsVFyO0qnscYTEdZmNxpz5s9ZV6KAXlL/KFVU0/eIIEL6qaCtyFtv0S10OcIGa/+BvRGuj2JQ+kb9eTWjAYl1O4/cyXtFBRSSDuUBozEOWXBwmsZ4bJJAFLqJtChexynN7UFWdWSSAYWVZB5BXsqMsKYtZP99cabLHVjHtAWFDfYEtui9cpZgM/9F6hnzfAEl5nwUxkiJQ4eGSxLUZiwn1KEWd 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:(13230028)(376002)(396003)(346002)(366004)(136003)(39860400002)(451199021)(2616005)(8936002)(8676002)(6506007)(38100700002)(26005)(6512007)(478600001)(1076003)(36756003)(186003)(4326008)(2906002)(66556008)(66476007)(6916009)(66946007)(83380400001)(5660300002)(6486002)(316002)(107886003)(6666004)(86362001)(41300700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FRZm7TUMBgIVc87s+AeUemlHxET3awWlSazxFP/S149g0D+dz+8QQughZGmjwkDCuL6+Qfrrt0dKH+R9rLUGFObcMCWlJp494DBJpbKlEamuXkkrKM+p42jiuVEPNe/8TA/y+0U16hY2HtNZBROaWk4ZUIcKmGlLYS3/yl+izqBkj2YkWjvz8z7STwEgKNtd/P7SJnMiwwChjDZBguUP6H311+1+pjPK+mHzdsfxvkW/v76lF869zCf9KCO/jgsuZyQB2LCEIFFSbW/lXJAre1Y/mzvom1GRit0Pmd661SY57C5NK1dSvvzftVt6fpodbGU3Oj5+o3BuKxT23vi2KvKDZGBzdLtJnQP0xi1LoOCnabWBW2Q8Tepp54ZYKUgpzhGc0NWlrXd1Q00lTUdXZeZYIDLs+BdbMK5+z/1X7CUAEtkzon7nfayTKhWa8K9RcaybK77GwaHXknl8wnNzOgd4jcJLWLdn8qQi5uUr688+PwvcULacxJs0DP2qO0BIyQ4yy6bHQtuJw== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: baab5718-671b-4955-1788-08db5315c9b2 X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2023 18:22:04.7946 (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: aZwji4qVgGazXVT++eVgpfvcxmKgNushUMGV8UHe1ilbqykXq3lB3heqPTdap0sUN0fTGkygi41ieCs8cQatWA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB5211 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-12_11,2023-05-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 adultscore=0 spamscore=0 mlxscore=0 phishscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305120153 X-Proofpoint-GUID: qP5PD0-t1bzF0cOQdCVGGfgbTd2gFRFa X-Proofpoint-ORIG-GUID: qP5PD0-t1bzF0cOQdCVGGfgbTd2gFRFa X-Stat-Signature: mdfyebez7ukme5s8ugrfqpefyh1dwrsh X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 3C91018000F X-Rspam-User: X-HE-Tag: 1683915728-674926 X-HE-Meta: U2FsdGVkX1/JqwW8QTXAT3G748hbq5R5JTFguWriP5hsLsm7eUW1/mhz/NUtkfgBaYEL0pDpFW33Ltgobg1qFKUNkvkIYQnqYlYV0Gz65wDhwRNrfl/43yY1ITjcZ/7HADGBMjQGQVA7Ia94ZUusDcQnpWrKoEN6jKMInQbJh587J4GOeJN+KEGHIz7v5knnVmHYTIzohjAgsEkm5ui694nTUzv4UWpCIlbR0WaajVvdE+yfen0xLScIi0NZXPkpOYZ+tqiVGUD3nlRIn/B+GqP304Fra1SJzWok6CCXVfl7GsJbKwMUOUHzairyK3dzQn+trSOFXDMl3Og96cIa7HuU9FmG4ztTuGZhXzIFauPxGivdZcdpBW/zzhVK7KRhx9Sax5vqbweZmCWXn1ep/hqUnX9LPvLSELePq3x58qx/pqjCy2DSJzTDd5hAI1BBIp/yLAa0AmCbnih/um9MJZO16sKZ1NoBUKCZXCdcSJ4W0p0svqsSIfMio5+Z5Fmpp+l0yiQk2+0A3zJJq9KfTFU5AZxsnnAkCuHC337oCp90PHSAl2F5w6oW1rhukgKHEX+6Nuv0yNFbDtZdFo+tQcRvQRhi7syR88jLZNLoVO69Fkdw8ZcR46QfrFcjvKLp0XNpOFC4bCMGi354QgIqna75me022gzIoiBsxbDtDZ95h+gpW8KJzmTWLnGAGs9Q9pifCkH2JMZ6v+1Q/dp9ArdFkl4LW0/41L+NUvKqvQicmBpYG33pG6LaiJLx0ub1XObM+3pA7+mqf/H45sjp5w3RvHALuCn5FluTGHmO3cfmIzBGwi+IBaBCaupycxyolTiTNtNc8yOPqKjCZ+ZTPbVvh4+1mS1aBc3zP/FINqscokG78GPE8ZdbD4umDHJrtB7mDWzqAEYGb66wwS+ODdXcMl2DpE0jv1CEIP+EKp8yRmBgq+82LauC6BPIiVI/BcTqKBKQJzwRr44loYQ /2mjlGz5 R3B611GCX9T68C7VBg9fB8HusQk4x70+HY2sB6NX3tf25oGjb/aTv+tA7AT/uDfqdbAJ9x6mOM2ZqfYMXT0n7QmMImv/tWvFYLlXwNh+y3gLvRYjTtSN30poxr9l3gUfyoSYo8AgHtkfcFSfRLkMbnQ8n0j3d6M1ar2F0i2xaBUE5zBrGetBhRi0d62bQX07SXkNHtz7QvWkSltYi39jzFjAiw9OLIbwbEZERrxuP6a37chHldYZ93AH0YL3xSZG2oLSsduisDmHHWU8pzIZxTYP1NQHgXsq+k4bihxEB1nD4Pwrvxdgx2hEPfWxbcTKvd7N0WBiD4VgW1hPB17IlRoWrzQZZgAVOxSTJFXplKmLESp2GL/APDMRu5fJLX3aJId7vyXwbkI6gOK1n8CJT9G/2f70pCHGJWSzTYekXKf1yzzI= 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 |
Maple tree mas_{next,prev}_range() and cleanup
|
expand
|
diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 10b9471a80cdb..c69418b120179 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -4497,6 +4497,25 @@ static inline void *mas_insert(struct ma_state *mas, void *entry) } +static inline void mas_rewalk(struct ma_state *mas, unsigned long index) +{ +retry: + mas_set(mas, index); + mas_state_walk(mas); + if (mas_is_start(mas)) + goto retry; +} + +static inline bool mas_rewalk_if_dead(struct ma_state *mas, + struct maple_node *node, const unsigned long index) +{ + if (unlikely(ma_dead_node(node))) { + mas_rewalk(mas, index); + return true; + } + return false; +} + /* * mas_prev_node() - Find the prev non-null entry at the same level in the * tree. The prev value will be mas->node[mas->offset] or MAS_NONE. @@ -4676,25 +4695,6 @@ static inline int mas_next_node(struct ma_state *mas, struct maple_node *node, return 0; } -static inline void mas_rewalk(struct ma_state *mas, unsigned long index) -{ -retry: - mas_set(mas, index); - mas_state_walk(mas); - if (mas_is_start(mas)) - goto retry; -} - -static inline bool mas_rewalk_if_dead(struct ma_state *mas, - struct maple_node *node, const unsigned long index) -{ - if (unlikely(ma_dead_node(node))) { - mas_rewalk(mas, index); - return true; - } - return false; -} - /* * mas_next_slot() - Get the entry in the next slot *
These functions need to move for future use. Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> --- lib/maple_tree.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-)