Message ID | 20230921181236.509072-2-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 7A38DE7D0A5 for <linux-mm@archiver.kernel.org>; Thu, 21 Sep 2023 18:13:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1B6636B020B; Thu, 21 Sep 2023 14:13:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1668E6B020C; Thu, 21 Sep 2023 14:13:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EFBCC6B020D; Thu, 21 Sep 2023 14:13:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id DF6F56B020B for <linux-mm@kvack.org>; Thu, 21 Sep 2023 14:13:27 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id AA06E140FE4 for <linux-mm@kvack.org>; Thu, 21 Sep 2023 18:13:27 +0000 (UTC) X-FDA: 81261402054.01.6B676FA Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf15.hostedemail.com (Postfix) with ESMTP id 680D8A0046 for <linux-mm@kvack.org>; Thu, 21 Sep 2023 18:13:24 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=gyGWKrA2; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=KL24Vmrv; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf15.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1695320004; 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=ubzRy/J3CaNQKXWbZ+x7hIiS+95zrwHNV/oKW0YUlk8=; b=8a/xNUP+0pzIJ3zQ+oYc0vgT2Kz+4n0PLu6wJzeu+OWBjwFvvl/va9PjmJ0Fz5W3NfTOHz 9c14nlQCDANKoqpjm8oU23hp4BjxJbrEJtlN73vD4IAvhzkVCJdH2xhXmXGFPowg1O8aJQ ncKDcVgLhyyuXG8B4+HezodRr+uNFOU= ARC-Authentication-Results: i=2; imf15.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=gyGWKrA2; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=KL24Vmrv; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf15.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1695320004; a=rsa-sha256; cv=pass; b=GigLt6Jz2Bg7ODwPli7Kql38kAdgzKuts0ZWK+/6fqy1jWiwi1CNteEd9mX9Cj7TBs3Tz5 ZkgFP2OL4W/w6xFVDZlm96NRx9vHo7UFoVSOxcRghTXoecKd8qAZHij/VN7BXHvFltREDp MoCzi+hDjwKu8D3H6EqO4GTMN/BpV78= Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38LI5A6g026386; Thu, 21 Sep 2023 18:13:21 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=ubzRy/J3CaNQKXWbZ+x7hIiS+95zrwHNV/oKW0YUlk8=; b=gyGWKrA2/vyM5fgvdoEqjiNvhg+DetHN2N7nB5ArF3lzxWvZ8hnZrVBfJIvMA2r2d5A6 8wRU2PoJvDwCBpzVPhW4hneyTheEzTtI+6RVoWK8JovbQeVmcxQPNa7kQqspxLIuh/IK KRA8DI1gW4qGl4vCvVexEZYqd1Q47Tjg1cpJ8SuJb4r+xCieNpQhq2NvmgdGINLkRH3w q1gxYOiz7btwhqt99i15FvIh418hBVJUFvJ1yWcBkrwQryG9u7qXEXGJgOSq186/YGmw fYoyfhHSjQpw4jNhcSoAiNDf0RzCJVqLetVRXTVF7bUedcTVDxULoJIa/Xv9uqLdxM2S yA== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3t8tsvr0fs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 21 Sep 2023 18:13:20 +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 38LHPC14030875; Thu, 21 Sep 2023 18:13:19 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2042.outbound.protection.outlook.com [104.47.66.42]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3t52t8yn2k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 21 Sep 2023 18:13:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Su8Gq2j5kPaJeq4p9/d4YLyKlCAIpSKvlDxlWR/ZO9TCVdSZjWmjlYV2VIJVXXv/2O8vbM5hRO89DlOhL6ygIcKqN+mOqCxO/ny31aIMWJamndieoznzgnprjOaLxN/PCiNsCiZVRKg4xJzg5FU9BPzfENgP4ZTjFrCoatCj/bihd5LVQSLnEpTS7HY9+WVFp4V++R6uKuGYIJRWNADQBDKZAqEA2x1f5cCSVpd94k/fyiJJg52ybaEcCc4Nul/Neqp+g1lQ+12xd39LHS3XbSS6gsOHkuNmSKyTFHccsz5hIyUjQjCbmpvLd1EwxpDzg463KepaMd4xHrae/fsIlQ== 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=ubzRy/J3CaNQKXWbZ+x7hIiS+95zrwHNV/oKW0YUlk8=; b=I8MsdwSZTFlyTGGTnUBcGTXeEuMrFLoka9CNQrWXuZS/wf5bPbU6a6lO5Yf8G0Pc9l3Fd74G04TWja2cJKMPnrO9dc66vTou+FRQt21gEonIPu88QXywho99ZU901bawpJUBhjuxwdQhqUWgqXVtiOw5AD18GsHR/Cks0ImYrG9RhopTzVB2/nTBFlX+rHXsalvV+YykrV4SBktXu6h30Xc3XbbaCZpQA0fA3rUZKOMk/B2KcViIKWZiBT0oIdLF9CQzRE4q599xI0gKZ98GxHWs2LXvKto2JbVKtwq9FLjA9rkMkHGYuMchhdSb0+cZRcXNCxzp58MgYjvcs14svg== 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=ubzRy/J3CaNQKXWbZ+x7hIiS+95zrwHNV/oKW0YUlk8=; b=KL24VmrvIFDjsld/3zYPta7nUghNqwzp3G4CK/HvFX9d+yAkirQ6r43uM7gmauUuUEDC0qyLuD5yDznL7duMRDqi1g2YZj5Dnwit6kyLBqUTg7o6LPuFB1pJwF4PgcRgrvtA3gYaNJ3++74aMuERMc8mkVxBoc5qUI0qnJ2ztHU= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by BN0PR10MB5158.namprd10.prod.outlook.com (2603:10b6:408:120::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.21; Thu, 21 Sep 2023 18:12:55 +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.6792.026; Thu, 21 Sep 2023 18:12:55 +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, pedro.falcato@gmail.com, stable <stable@kernel.org>, "Liam R. Howlett" <Liam.Howlett@oracle.com> Subject: [PATCH 1/2] maple_tree: Add mas_active() to detect in-tree walks Date: Thu, 21 Sep 2023 14:12:35 -0400 Message-Id: <20230921181236.509072-2-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230921181236.509072-1-Liam.Howlett@oracle.com> References: <20230921181236.509072-1-Liam.Howlett@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YT4PR01CA0470.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:d6::17) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|BN0PR10MB5158:EE_ X-MS-Office365-Filtering-Correlation-Id: aa9a95ce-acab-435d-aaa0-08dbbace60fd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UGJukz2vzpqgfI4Z3P9kKMEoSipUZQ3fx+EGgl15rmYaY1beRaPpS/wtojDquNturz7P34kF3ksLDQKOwYJ0W1NAvcGOVoJ7I3U4Nitkca8391QsxFizu8fNa6Ro9Dx3FiaIbQMBGQgXhfjCcx6BRcjoHwjHcqSyc6abp0p2dsGeL7T1vx30kpNc/N2gCr9hU2eIL7PWGo/InlrZH3SBvdfT74GEU3NQQTcDqmt9320aSwQ9F0Bzm+0lTLK204Y+uM5jUOUpTqS7VeYx4ROGdGkOkUMJK5GnoIDHrbEVXulDweGA/3ZwryrcqSWNkVLRyWYHfC1feclfzpU+6frKVSJ32d2qH37qzyrY9DLDwQzRoHAqZTlRrQEjfdgb3I4bSvBdx/08d1jglNhtqXf1NoHwBtGhKD02P9YHzpe19QxhIvtGiCI3lQHe8y6Wvuwm5lnQY+q+EyknI6N2EQY7TswhGfk55h/Jf8T7Is0IoU7RZJmn6VKp9UdYMGxewiMppmBWzBwit4lYjy3cUwGBzGo+GpkEshSK7ux56Apq9OWXU0HEUa7YLfXDaX63ROT2 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)(376002)(366004)(136003)(346002)(39860400002)(396003)(186009)(451199024)(1800799009)(5660300002)(4744005)(2906002)(4326008)(41300700001)(38100700002)(8936002)(8676002)(316002)(66476007)(66556008)(66946007)(6916009)(54906003)(86362001)(36756003)(26005)(6512007)(2616005)(1076003)(107886003)(6486002)(6506007)(478600001)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yZkQZuRBJfnQxTDunhrskpmGyKTa5r8epY51W+Fk2Q+BXVO/35XbCdJ9s6cUcnar3PsvXb/C1ms6OuaYVfXfD/ss00bq95cC7mFGTiXudCdrZilb0z2aH/BvYY82Ao5Soy77s5BdFELDvGxIcWrjNlEU3VCCrqz1xzazAW4nDgav4DK1ZFoTSXokfo8qqoVjQnrkps/flL1oGgqPO9V72L4UlKvq1Xi7iUrAAsSc0w65czGjhFsGVnly2r5Nm3Ai2cpggJqVpvJD4KNrmd9KvXFy4DO/rtPB+bLRcqg7uywszov0nDiiUe1DT3xI+8EyvO561xuBOOzY2/EZq/rHxMnehqx5wQA3AEq3HVrJTMbvkvnuM31wJUeXlDVLxXBxaM+tphaG95+QQOkHEiKQK4SESsZFB/J7Kixb83osk9xH16QL3ECZmrG1+QEGiN3n6Io6Lh/+678vSXW4cpIvlQb5/5dgI3JeiwJzUqaY9ARM9XQ7jxhndc1m2pd6ymGhqFVjvXo32iU58lQf+enjqPynwJu2Q8hJZeSO4xh5SsBn3fKrg0tZ6YBfVw6Fl09ogfWgDDdtGEq9V93TO1bhBQBRhsMk/rWKBUEWbf5+xgGrymq+UTj84bfbFmHXE3Rdr1u996nJBQk8qN+58hUKwyIERz+eOYoexmxICv2EwQW5XGKqly86DbK9NSNX1MJdl5rULPIOe/UjdxnmyIu6Zu3C7l4/W+dcACbYEPW6XFqVUwH738SkRcdhuyGpeEFPxzQ9kBPY7/6cZ/HNPZrsaxXVXvWQanQvdBHTtgpO+YIBPavlRERBk7dd909sniBYDjdPf9z5VX5YNjBddikX7gMHfVhTitibgNIhViMeAjNNgRejBwEHu8gSXtAQAKZqvbgO1uFPN9m2Fnu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ZRjlAy33+ZJVgs0aGUfB8LAQ8ZT0J4PHLcEBu3G/KbMaic2+3/8BAH4TI88rU4qd8vhQ9U3yaj5tXY+0VULyNsSK4NyGWuTnXiIRaaeoxPtFsx06yWozo6dUex80h1d/XpeyD+hHJwkatje4/1lrFdZt2Hu+wOC0WdbcUIP8XORjQ095q8IBGxLnYze2nFLoQxcFmiB0SGH5zHgi2gKSOS2xgs1RPfGL/RkD/795x2ID1joTc+x06/Mf//FHuag2HEx4cdvv0b/+Zp+8nu0yWEafitUEZZq7p87IQsqeUuVlgIq9rcqYxaiTnj33lHIo4sqoBR9cNUAgnKtALfO97AOhHtQ4i8tMpTpCbNSRAclJTP5VAzuXwVHp6pj44y7JdNesrKlLjvT5sQEh1nGES99kme7EZ0jnywbbHJ55T/XpsmnsMIBtcKinesuWPuAG4+e44f9FWlbabHN9ChHqvzTigpIUYr8L2L6UgfIMLXe0OIfbfTjjUt/DocYW4Vv254Pf54teI1EJDXJm1Wz/nnCitdGbxkGlCsW3+RiigBLqAYUYbiHcNIy1diG7vMrZrUp/jEMPWit8JVuqKy1ZI3qxzZmY6bzDcxW/Vg1XncvEjTww5qjj8oX6LlNGeZa9q6w2per8RozQsKV2unUG3PethN0DmA== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: aa9a95ce-acab-435d-aaa0-08dbbace60fd X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2023 18:12:55.6966 (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: L0mEROA9BaJTiq/VPsXpT7xUXyYOUVgS24LQWHhAnIVLsk/dyXhU6BafemN/N0HJtpvBs5U+2eK2G9gYJeJIjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB5158 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-21_16,2023-09-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 mlxscore=0 mlxlogscore=999 bulkscore=0 malwarescore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309210159 X-Proofpoint-GUID: dsaAO_h3ftXn_8rN_OxIy7MNzk5YF3h7 X-Proofpoint-ORIG-GUID: dsaAO_h3ftXn_8rN_OxIy7MNzk5YF3h7 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 680D8A0046 X-Stat-Signature: 88g13dcrh7kmh58we1i7dfp37nkh7xtf X-HE-Tag: 1695320004-377004 X-HE-Meta: U2FsdGVkX18qWTx+J1OPCRnj2fFz38PplA81t96hZLOUJ5LVGgOkHE37Qk6p0fUnxe+akuOT3FOpZBraKRJQr1uUhOouleM0N1oa4TBYFxgN+NHpasN5gzsJN/ymLsDzDA0Y7ymYiaQIcDSunRoW2M3JG+nSJ0rm3nq6AfI+oSK6osXRzGj/5bbArUyrBhZaMALyyzHrCrXGXkHMBNfKIJFQjLjZ52rkNV4u1nsFBRwb+A7KPs/yNQ2CXcn6rXp2wPCJgt/8VqoW/wjXF5ZxGIHVUhApUQLC/QkJ+sPayuYcR/j3n5jigmSs7Z6NgeTznRSCzWyNWlJWsZg6QWzWkXks0PvcTrfJgg7kWtNn5ElpKYcRXbV1iHMGb1qmZnp5duRtt3Bn9I51hhpN7eIKXGO6fpTnRGnq/PIQHWuLPSGIrnW6r+LM6ofUjge1iKiMkO3WBpOX8QroVHEFQMM2q1erLCJjR16Kl3rlrdoAh+5QZRuCeU5NTyQP4dO46IOoffjwBvHx3Ka+5pEND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Np51at+xpurUpcSStcXrZ61IxTGwu+c= 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: Fix mas_prev() state regression.
|
expand
|
diff --git a/include/linux/maple_tree.h b/include/linux/maple_tree.h index e41c70ac7744..f66f5f78f8cf 100644 --- a/include/linux/maple_tree.h +++ b/include/linux/maple_tree.h @@ -511,6 +511,15 @@ static inline bool mas_is_paused(const struct ma_state *mas) return mas->node == MAS_PAUSE; } +/* Check if the mas is pointing to a node or not */ +static inline bool mas_is_active(struct ma_state *mas) +{ + if ((unsigned long)mas->node >= MAPLE_RESERVED_RANGE) + return true; + + return false; +} + /** * mas_reset() - Reset a Maple Tree operation state. * @mas: Maple Tree operation state.
Instead of constantly checking each possibility of the maple state, create a fast path that will skip over checking unlikely states. Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> --- include/linux/maple_tree.h | 9 +++++++++ 1 file changed, 9 insertions(+)