Message ID | 20230922153853.767603-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 7A838E6FE58 for <linux-mm@archiver.kernel.org>; Fri, 22 Sep 2023 15:39:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F1D9D6B02DD; Fri, 22 Sep 2023 11:39:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ECE8C6B02DE; Fri, 22 Sep 2023 11:39:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C5D416B02DF; Fri, 22 Sep 2023 11:39:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id B89F86B02DD for <linux-mm@kvack.org>; Fri, 22 Sep 2023 11:39:16 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 8C1AD1601F9 for <linux-mm@kvack.org>; Fri, 22 Sep 2023 15:39:16 +0000 (UTC) X-FDA: 81264642312.04.416A287 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf22.hostedemail.com (Postfix) with ESMTP id 4601AC002E for <linux-mm@kvack.org>; Fri, 22 Sep 2023 15:39:13 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=WlV7Cx6Z; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=VTd0mzA1; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf22.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=1695397153; 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=as/fYKKuaBR5SblYrUiYVM2b/c0CwsDVCICaaLgl1OA=; b=DgixfaUymvV7UlUjFltNBCOqxhGkmyYLH2xO2MWKFs9FBeWv4VRFft3nhkBs7e2r33eiDd j9TiXNRdgIZWJiWXOTLq+Bgg/FzvJjYO1z5HYb3+jPpCX4IhzyqkDZVS6wLOyFnBcUhflJ dP+ZPGB8siZTPJ+5UOBrNuaT7SGUngs= ARC-Authentication-Results: i=2; imf22.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=WlV7Cx6Z; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=VTd0mzA1; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf22.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=1695397153; a=rsa-sha256; cv=pass; b=qwMIv2cLB+U10CC0vvrvThlzjImQwWlcyox+2uzBxvPoYLL+9ita2J/ArxA+vNzYPsudpY QnMYWnllzwuy/9yabjy29j3fX4y1CF1xKtoKSqiey78OnK/HvF21w/hhYu8bGBJrjs9Ng0 iBKPGLllH4dKoGcQTNMSQpnFKAHvNkI= 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 38MEETBJ022692; Fri, 22 Sep 2023 15:39:09 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=as/fYKKuaBR5SblYrUiYVM2b/c0CwsDVCICaaLgl1OA=; b=WlV7Cx6ZPp745iFmXQQD/zKuZesjsighFCZDDQKSQi3UQxQ9sT5WUgcOQcyflWTAHjSA gGQHSIwFx3hfU9/6uXwJBc+7n0TOxSFsMQaa8josW794GTYTGmUvCqKu2+flcsZurzKV xpaOTNgKSpj6erpBg3x1B/PJDkFdlQvvepm4n4/oxyf4SeX0/rHNeQ/EOG3mqrclfP9O wVvLFxw6m0O6NNsPhzQqSZQWX+s7uX9Z3JZv11aZPGcwa7lF8jw+dMdIgH8nicxfrRW7 6IFZdp7odmohl4goKSiD7jUTal5vzJmx5rQFf68napCI/GcRDJzvM+9SvvX4wuvW5cuw 0Q== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3t8tt024xe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 22 Sep 2023 15:39:08 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 38MFRTh8035067; Fri, 22 Sep 2023 15:39:01 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2170.outbound.protection.outlook.com [104.47.59.170]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3t8ty2qppt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 22 Sep 2023 15:39:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iXjNUP3a4W3Q3a3SRj3kqvBr95IRddhqRnEnucv9hc431RM+mR4vJiETMhTNM7ATh0sZzAy6ftmk+4WYxM/4Hk43IUzQxSJRqLGPpJsceZtUs2MTKCudxb7sXKMhl3Qvm2mzkpwHxEvexntpNp6KC4bJMmXAKVi3NgPibdQlbdWQa4+uWwwLaGiMsClQ4KPzC6IFyEhOD+4plgGG/vUhJix1ECPGH8Gbw3cA+UeNJTNbbkzSXz/6Aax0tNYZN2JouKzJ+O8hONNVWl8Gsm498QIfwukSl+y1T44jEy1mI7G91Z1DYYmG/eWiWWYB8/XqFrIqmjYtdY+Ey2047rTa4g== 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=as/fYKKuaBR5SblYrUiYVM2b/c0CwsDVCICaaLgl1OA=; b=b6oVFHnRFyZwBgzsnfYpo6xeAdLI3pzXyb8ZnW7n1wMnf7QTmbgkIPTEDJFvRMMkyuDNG0YfdA6lDvLTGWblrzn5sgWuk/09kagISi4ryr65fUFU/YMufLN/XhT1LkKklae7Ctox3yhAeMyNoPz8JSHVOkKPLMDm5PkTEw68gvw5kksHADZpw5NaO8BAjwy0xTjOSl4OTtyvGK5iuq0eqFIZ5Z3XBrY6c8gDgoGXPQLFj68QpISxPQwzQ0Cz+vweyGMrj5jBdU6KcPMYw/LMG8F0PQaO2HkkOPjGLIYNQd7tQqn797a5aHc3z4u81tUMKEArEEMLOKUBdwiSgNi9hw== 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=as/fYKKuaBR5SblYrUiYVM2b/c0CwsDVCICaaLgl1OA=; b=VTd0mzA1JWTq8Aj5Uo5hx+kLOPSmyyRAS+M5mvgQKnaE/3qwbC/wl9eYaWfss/P+/Ln2ncWhaWRqUWRudHe+pULH50X3k053tNMgkfSFhWaw/5xCMhv9eXNHdSLqzc1Jh3f7RxFA1ssjeaJ6qsTkiF35cVd3XOOT1TnNYbDX19g= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by CO1PR10MB4561.namprd10.prod.outlook.com (2603:10b6:303:9d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.20; Fri, 22 Sep 2023 15:38:59 +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.6813.017; Fri, 22 Sep 2023 15:38:59 +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@kernel.org, "Liam R. Howlett" <Liam.Howlett@oracle.com>, stable@vger.kernel.org Subject: [PATCH v2 1/2] maple_tree: Add mas_is_active() to detect in-tree walks Date: Fri, 22 Sep 2023 11:38:52 -0400 Message-Id: <20230922153853.767603-2-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230922153853.767603-1-Liam.Howlett@oracle.com> References: <20230922153853.767603-1-Liam.Howlett@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YT1P288CA0023.CANP288.PROD.OUTLOOK.COM (2603:10b6:b01::36) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|CO1PR10MB4561:EE_ X-MS-Office365-Filtering-Correlation-Id: 4306140a-566e-43c0-5105-08dbbb820a2c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mxAXr9ZAZ0oW/ePBnSeiWES9NikMBytbqbQUsji3uOTRVbafBttsZahHBK2FVl98MTepQ7tgrmCMwYddwEuWX0tETZjHOWuXB/gfsXSSuEztdCqxoOOGuq08g9Nw5aSVfmuSdKFw1BrHSe+JjLSzV2aOwsTNEWd+6tG6NNtQcNhlGD9fl/aujg5GylJLa+4oNXy0xM/HnRAxO9/7yU8uUuAeB2aeePKp/tLB8NuiK3YG2OKvK5R2ILHHHESQg1GFog/qjmh5tI1g9wzdK5tkqKC8kPYScH9G9O8yIFVF/nwVBJlWcM0pjHqkl+AHAdvhEj3bYMPstAPBbIQ1BMtNiLKZZJFmMoihBEb0RqIDq9TNcp6ZaW9mYbftugCiYBam1eTEdSzJxg12YPVeyWj+4c5QPCBIfYugOU/ElBvBjcQUiKc+j4SPZVmvcRDcUL1XlCwT3sSYsg+GeMeVmEkXP4x9IL2d5+PAs1AYQae6WWxsKkZaWqI5w6CsCGLnkXOuuznnGfk3IS8y3T33u1Kq7lL/w4b+zKfMe1TYbWDRsv9k08aN+SM2sCrJ7rIaGagN 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)(396003)(376002)(136003)(39860400002)(366004)(346002)(1800799009)(451199024)(186009)(316002)(66556008)(66476007)(6916009)(66946007)(6512007)(6666004)(6486002)(6506007)(1076003)(2616005)(26005)(36756003)(478600001)(5660300002)(2906002)(38100700002)(8676002)(8936002)(4326008)(86362001)(4744005)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: oKv693aXgx6t1dKjwvMuZ9qcyNPwjGN4CL7HtQOg6P7PSgcqkNgJCyY4Ar6slh4y8QN0qimmLHv9nx4+dZLmQZ5xKXmfNO4nvQMk9A5Fg6NuRqIW9rg/fGYqQmfQk4axvXMFIn4I7ze2A0UrXBk4gDjRNwkpIsxNA51/fJPfJnbUD0FPB72MQrkQM/iBAOUzuvw20YSopB9llGjEXw8Tza7ve/AWwL2yEbsGpDr6iODZu9B9D74wdjQB9OJ51Flo/bA/cyTL6EF1+y82Rf+nBC8Jpx+XGqWBltEKZIVVc0HOdB+ZCfO8IgiotrdT9y90mHPN0nrPoyFZTGeKy3vsYofPuXtcQSHb5X7ca+8+a1pdAOAOBN1HehBDsN8CcrkCvVMBHbPWXZe/B+Jwg/HwKFigN9zNbRdNrX6Oa/lNMPkQ4E3YQfZr9v2xHQBQt/vbscWyNh7NczxXTbm8ePj0gnlJNMWSr2MlBo1UMm89H1Y1EKuT79rCLCAg6oE4xM09B51O0vzeiJJBzlB3XEutyrSbGptzILGBlBNk28ATcGiGqBT2/+/yaVSifhCdyAH2fyf724ekVUkDw9bbZ6z2KImG+YJM+OVdh0ly6JYHpLHqzSSOtOwAZpuOc9THxOoeVwpNS5F+FJKbHlg8VaSEyLsdmFqH3pAVIek6anlDRCbzYmr+rh3e+G99/od7ERd7j6XrprxJTWyP9aUrr/OpCwdbA0gfD6NJ2auNj7/rMGxm/fBc9YH8hYoZrS6lomwMsYDTd6QVv2U0GWXkqiQNXSMyK/rQWRLiUOOyMNF58ZBklAX6OKjDH8W/D+cE1NeUl5F1iXwvlDZe3GTRuPomMlU4DmC2+yRYnuWaC8xrjvhQqpGXA6yPEJhaXD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slmf1B/OPiBMDc3YokRFtYxQUNwkNQblfH49yrkfaTjxVVXpgkJE6Om0xlgYqUoqIOV52tBw5JU4Ake/VmuYBMsmZyurErwTRork/0LDD1Naoj80HcVLGZmNcDgADTzyBvHSLrduXvQ7Gl4lvjpE9EvTogchJNp1Hmyh86YXSW40p5Af0RECgTNVpBk3gfIgphiWn4H6o0inxCGdAPz4pKpXbYErn8mc9RIpLaoMvzmQcFo8vP+g4HBsgYTDZINdyl0v4Fmw7ANbjKpgQfnd41Hc6FeFT5H5lGRZrgVETf5v79b5hgmWlyNrmKYJaIxkBy+/V1Qte9IGFfGw2qxujPFBCodLeBRQm4vguiCYLkr8I0f2ODVus/nBAmuiZ1TUMo/lXTKY72iYz8Zo1yFFseM2Lbf6Zh/0LiQMkWZTFm2Djyyq35tWgW8+dMuietu5u84jf+ccM2BYFJm/YkdE+W8XhRP6iA/iyKR+vQjm7+B9iG2L5GO5rGgS4fxDytWA5ebvojZIJDRWWAtvwcDrs8a623Nlm8unKcEKab1ucQd81ZDmIbS+DzAiX/u6IpIKZ64kovsCqObFIjY9hrZignMMfdCP9nZmxCPLDS0IX7J4iO7MpCy6xjo9V3i17pWQS4VpoLO57EREoB5ZwggkOfQ/LqJwbvXaebVF3cFH/petag95OVwHRiT6b/np+ng== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4306140a-566e-43c0-5105-08dbbb820a2c X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2023 15:38:59.4660 (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: K7Iup9L7VPgtFk+sb+zUtIN091pDiXXbFj0KWLUnRsHv5ATy4oop0Oq8quPS4MCHpZW4qA7v86J1qJ5/mg8wog== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR10MB4561 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-22_13,2023-09-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 mlxscore=0 spamscore=0 adultscore=0 bulkscore=0 malwarescore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309220135 X-Proofpoint-GUID: 8GHqLJ1NXscxddU5ITDEKPXRuXHBoDs_ X-Proofpoint-ORIG-GUID: 8GHqLJ1NXscxddU5ITDEKPXRuXHBoDs_ X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 4601AC002E X-Stat-Signature: 5nyjd9rrg5b4t3tgmkrod7i5wbszhzpp X-Rspam-User: X-HE-Tag: 1695397153-114155 X-HE-Meta: U2FsdGVkX18SFLApZvLSuPVvatp0u+zajLTrINcTh7iMykzGPYNAfhvznDOEy4SjcUWFBxds34heCWfWqwXZs432qVW7lXerhb+8GNL0jPWg7PwK+LcW8cTVOXm6xy728jaeMcEQ+sF85v8uA7B83D5LwBvhUoNGKi09BrW3Vl6sdbcfTRxt4B8iVNu52KrUCwCtWNX6WIei7Gz0mGTzF9sIMvpTD6sRm4WvxQXZvt/nzp6hIifWIk5w8RbGYzG3o8tES6mn8WgGeIVG78ZXWwV0KOd1y65YOkV+v7CIl8csUB+romjal8loC5okJuPzWFEpDiTWsidZaCm7dLLkrTsV1Ojol/g82Cjaz7bXQxz2KStWEKl0kBib/74jWVHcAGaHIiAbWqxwmVnaRYbbAbax4gCC4okX2rXx+XzE4v4+ug4DMgwIbOFqU8ZpUzdSxOv3Xk+V/xYX9nR+CpgwGey5nmrzS1p3JgwN7EO38prOB8GVHt6wRgHeNjc/66wJWk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fBRtmRlj+tnzo6nTf/t1IQGMr+kSBQI/EgQ0xjPoKEgmisal3NjZ628qfS92Z9grONYp0sNqfbIJCS4JIgwoN/YLhF6zIhFiajiDNyCC75jGDs4LfWI= 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. Cc: stable@vger.kernel.org Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> --- include/linux/maple_tree.h | 9 +++++++++ 1 file changed, 9 insertions(+)