Message ID | 20230425140955.3834476-12-Liam.Howlett@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3446572vqo; Tue, 25 Apr 2023 07:28:34 -0700 (PDT) X-Google-Smtp-Source: AKy350aVvdR2afRMR/+4jU5G3BoapgE4NFKJ+2ZqFtbPalevfq8xYkwowIbyY7WNOYAeEG67Odea X-Received: by 2002:a17:90a:ce18:b0:247:8029:fb30 with SMTP id f24-20020a17090ace1800b002478029fb30mr17241968pju.42.1682432914540; Tue, 25 Apr 2023 07:28:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682432914; cv=pass; d=google.com; s=arc-20160816; b=g3z1PeAyztg1X0PfToyOOjkJm4TDIxbF4ZrfV5a+Fd+f5If1o9iFt0zZiNUc+3LQkE olK4kOIPqF58kWPmQT3RJFSP1SldRMFrEv594DgcSQRZFQm1JMfo3uXPLYQAUfLHONzX RF28K0v06YcL0oTdldzBZ7rZy45+8qM88awilAxi/4ooM8nvzMjgfH7IK6hTwDqGfhyc decqUsX+jf/Q6S/tHaxs/HMufF1twJFZwgy+2cuGx8bKDUYOt8KfgrO2T1jIvh2KgmSI HyIFVSdttIf/ejIoxILvOOVdHrpAWNuYqIGUDslc4MbR6bXNGn9V8bDPUOAfz4YE1TJI YQvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=Kft5REKonD4Srs2Rad0KiajjvtvFMzXh9RlWg1rTwc0=; b=LOgxfT8qBua+Psh3yD7ec/J4SNqEZY76i7siakSAKaEoewnBFA2JsGKX1+N3MDAURG C6LmFR2XEC5l0A/YO52PuZqYq4hOhgRGnjjX/Ea1V0ffnZtl1D2t4K6WTOj71FTI8XDJ N7HKO/2yM7XT3BVNQYqAlTukVE+4zEsL7yn1ysAzvWR1eovb/8VD5s1x41ziNnlO3it1 mrC8BWXnwpJs2wc7kgE2tmLNx9VPRwRIJL832Wh8qswDLtJQNJ9sxvew/09w5siX9fqt R9TBnWqi6786lG7o5+BmiRHU+4NpfzDrms4YOgVEQCvQ7o4gzKYR3RZmUXgdu265a9HC 6pQw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=zdAb5kmU; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=RMjzRY8u; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qe2-20020a17090b4f8200b00246d179dc81si15027394pjb.126.2023.04.25.07.28.22; Tue, 25 Apr 2023 07:28:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=zdAb5kmU; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=RMjzRY8u; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234363AbjDYOLh (ORCPT <rfc822;chrisjones.unixmen@gmail.com> + 99 others); Tue, 25 Apr 2023 10:11:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234428AbjDYOLZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 25 Apr 2023 10:11:25 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0206D15440 for <linux-kernel@vger.kernel.org>; Tue, 25 Apr 2023 07:10:54 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33PDi2Zp008719; Tue, 25 Apr 2023 14:10:48 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=Kft5REKonD4Srs2Rad0KiajjvtvFMzXh9RlWg1rTwc0=; b=zdAb5kmUDIpWXTaQEWuke0WIsYGjPdIGzov/kjQ52yBXS5gd0ZZTo/c+c+9Kd9yTL4hV mBX3EajBSfOE7+CuNPxSe/ZZ9u1P/DZTJS48mixb7HrdHye8GHFXpB8OLDBMJQoBYON6 ExOxMIDzIuWNf3jYPcSbfu0Uj6hhB0+hEewSGGoMJmlGaGIGmNuQPLyFGWtqetcYFzCa P7+8mlzq/oFH5UJbN+xfiervmxSoM7UNceBpjBc3+Q6uX61oZVTB8iC1zEi6JtaG1mTJ hiSCV/A+E9E7URcvq79eVWrFPCW0dzAYJreGGY55sJzgQ9xepP90rR+DRL3ojDONTM62 qA== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3q460d5e4u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Apr 2023 14:10:47 +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 33PDJkRf032787; Tue, 25 Apr 2023 14:10:46 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2105.outbound.protection.outlook.com [104.47.55.105]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3q4616qsr8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Apr 2023 14:10:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gMt6jEnHj4hTQXMbJXTjr6DMOYNSGu0xyrFe3DYLEaFLtgHeEzhbpkYSKMhUUjIXy7ZEOkksO6W2uobot36XaTpcbAEDuAavpxG4hqg8vZ9K9WbzEi7B0dKOWJzRghgTgsVWwf1Hq2m03OpZhhXngkTxgJRe0KwGdSov6FHeIIQvMsQRDwx9PgB/rwR1cHxBKK/HoBUNi5dy+m2ov77RkOrVM298YB64999VleO9gmmRzjz9mRsSAmTrqQajbyK+TP9Pnz/vEszqY+fMg4xWmkzWB3DY4VCnHFsdN0GqKQBYyzLqPJjxIZR8cyGvUPtuoX0FNA6lAoWfKOArNSDKlQ== 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=Kft5REKonD4Srs2Rad0KiajjvtvFMzXh9RlWg1rTwc0=; b=Fbc2K9JmgpIYp7C/KEkyTX4DuWHCg5Zk3j0KQ74cxCB5sTlf43nyIvRABFFt1ZBVYcL/W6ogtHnrG1jGgpAT9eN4UOs94xiG4jIZcaOzZewVqvskNViM5nrpGDoL+O0IGATkJrz4QaiJOsvtk8WM0FywPL5nk78QTRE1CmUAXIaeB56clmKii0DNhh6bgXVll9WD9693UMj3zgeDPxiuX+6XRFQzZZ7Z1tUCdvlyLxk7a2/fNnJeT9W7FcNoNT9OMYmSPjSAMdZ1g43SjI5NV0GHOLmdqHF1hFmZ400N55wwGDP/uYfSkJenOgPjh3Rt8lp22qbiXaRDY5GC8NjogQ== 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=Kft5REKonD4Srs2Rad0KiajjvtvFMzXh9RlWg1rTwc0=; b=RMjzRY8uiUK9jV2+rgDxH92+P6FtAg2QwzwTRdzmc5weyIF7YSmdRC/rPSQUogEjB0xcMjdQcN7R1aqHl9JgHcYIHJyk0VpeON1fHPAwoEMecrqn0rF50LpxyD9ZeTzn6XDOdYjpi1aeEZAJv79KwcdrKyFC69wcO/yqk1oSc+U= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by CYYPR10MB7650.namprd10.prod.outlook.com (2603:10b6:930:b8::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.34; Tue, 25 Apr 2023 14:10:44 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8bb9:2bb7:3930:b5da]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8bb9:2bb7:3930:b5da%7]) with mapi id 15.20.6319.034; Tue, 25 Apr 2023 14:10:44 +0000 From: "Liam R. Howlett" <Liam.Howlett@oracle.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, maple-tree@lists.infradead.org, "Liam R. Howlett" <Liam.Howlett@oracle.com> Subject: [PATCH 11/34] maple_tree: Use MAS_BUG_ON() in mas_set_height() Date: Tue, 25 Apr 2023 10:09:32 -0400 Message-Id: <20230425140955.3834476-12-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230425140955.3834476-1-Liam.Howlett@oracle.com> References: <20230425140955.3834476-1-Liam.Howlett@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YT4PR01CA0059.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:111::9) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|CYYPR10MB7650:EE_ X-MS-Office365-Filtering-Correlation-Id: ddda0046-44f1-46d1-7909-08db4596dc56 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JcFKy9KdOnTqTRWczZoXc0Wt9nPjLTFhWEspg7ZEVa7G0WZF59qX1+huAhHhB+JNVawYmX00jNZG0GLU3WcLqO5sPc6xGAmsTQJJFOXyuKisCpoUKNtIVIgEG0ExLwcGrlnKu1ltZ/e2iXsdT1HH1cQ4zmf6swdBaEe3ZSUyQqvTgvwQrHwwf+dkNuwN7G7kETAASKGOIJziqYQ7PogzgsioI6nFkYu7aY2QYExSIK0To+oEudN4QBoq3hutFSCK40K/6Pw2G1B6+6zrne80o/anyO6fOm/s7WWCz4FcWc/WtcWG8A0fFnppSDzykVKNVyBeClFhr2KDcMFtedC6xQ8EaMZm7PIpiYoXjpgdbFSvx6UCe/hxCxOWtPQ/aoFuTxjDayicZb9jxvEvgsPv4lPiVsTkvkv7K5VDrwAHZgqGO2YqZ3b2dqPtC4ydS2szosgIFCjsO8MgD5cX31O85vwuDPt2lBo6Scf3zBT3H8KD4aGgUFYJbxYeJwIjT7du+6V+cNzXkMzQ7xXZzBDjQ5bdQIGBPaMC8dToEl+C4hUpvFX7xyQ4aeHEvIR2eQ5k 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)(136003)(366004)(376002)(396003)(39860400002)(346002)(451199021)(316002)(6916009)(4326008)(38100700002)(41300700001)(5660300002)(8936002)(8676002)(36756003)(86362001)(2906002)(4744005)(66476007)(66556008)(6486002)(6666004)(6512007)(6506007)(1076003)(26005)(107886003)(478600001)(2616005)(83380400001)(186003)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qNdUQDsn4vejCg/kY7jl5scHa+z1dlQXv+wFUYUer0lY7CeVZVf7GgP6t8ZQIbpnZRU5Girg1RJXbvXnqtVKr43Wpmx2nNnkqB4uMLqy9o0fufIRnoco5U7s1pJFU2Vgm8UlFh3dLwqbew3b+yA9blqdc/QB9r8I/GBTolHPDu4I0xVeaODGGJXfu1fGi1i22NVh+qDwTa7f4ncvtufGsSO8aY6+ymeHo2youknKAo0FhUza5m5B3U4SBdagvMkkXO9fpt/bUq01jBNKPpaiEZuyBF6+EeLdX76FbNGJ34QG+mRcsBYx5kdE0Mf7whwH1nqZuHn/DwLK91BFs2Mf6h0SS3htgtDksTrGAYs13kEKpKkeRiZzKM0sqBtIf2R/4s6Pth80gROGl3w2lOuYdPByje3UzYHqqMP1nzaZwr0smXC3hetUDD1CubOSfEPUwTHVTGJ0VKPRayAW5sPK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-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: ddda0046-44f1-46d1-7909-08db4596dc56 X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2023 14:10:44.8060 (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: iedxUfOvok6JOIKU0WreE0PJzY7ptoLO4gjIJn0NiwEsKZd0YUKDelWhG+Cw+boDTCynAH4A9avLVCRY9N2M+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR10MB7650 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-04-25_06,2023-04-25_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304250128 X-Proofpoint-GUID: 5eCsCrHMlg9rpdwdkJZY6_BwnNgZGZVi X-Proofpoint-ORIG-GUID: 5eCsCrHMlg9rpdwdkJZY6_BwnNgZGZVi X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764158775989606775?= X-GMAIL-MSGID: =?utf-8?q?1764158775989606775?= |
Series |
Maple tree mas_{next,prev}_range() and cleanup
|
|
Commit Message
Liam R. Howlett
April 25, 2023, 2:09 p.m. UTC
Use MAS_BUG_ON() instead of MT_BUG_ON() to get the maple state
information. In the unlikely even of a tree height of > 31, try to increase
the probability of useful information being logged.
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
---
lib/maple_tree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Tue, 25 Apr 2023 10:09:32 -0400 "Liam R. Howlett" <Liam.Howlett@oracle.com> wrote: > Use MAS_BUG_ON() instead of MT_BUG_ON() to get the maple state > information. In the unlikely even of a tree height of > 31, try to increase ^^^^ Again, *event*. Consider buying a new keyboard if your 'T' is broken. ;-) Petr T
* Petr Tesařík <petr@tesarici.cz> [230428 06:10]: > On Tue, 25 Apr 2023 10:09:32 -0400 > "Liam R. Howlett" <Liam.Howlett@oracle.com> wrote: > > > Use MAS_BUG_ON() instead of MT_BUG_ON() to get the maple state > > information. In the unlikely even of a tree height of > 31, try to increase > ^^^^ > Again, *event*. Consider buying a new keyboard if your 'T' is broken. ;-) hanks. I will fix This in v2. :) > > Petr T
diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 441592be039a2..f1ce3852712db 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -194,7 +194,7 @@ static void mas_set_height(struct ma_state *mas) unsigned int new_flags = mas->tree->ma_flags; new_flags &= ~MT_FLAGS_HEIGHT_MASK; - MT_BUG_ON(mas->tree, mas->depth > MAPLE_HEIGHT_MAX); + MAS_BUG_ON(mas, mas->depth > MAPLE_HEIGHT_MAX); new_flags |= mas->depth << MT_FLAGS_HEIGHT_OFFSET; mas->tree->ma_flags = new_flags; }