Message ID | 20230512182036.359030-15-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 1BA63C77B7F for <linux-mm@archiver.kernel.org>; Fri, 12 May 2023 18:21:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1DB666B00A1; Fri, 12 May 2023 14:21:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1473E6B00A2; Fri, 12 May 2023 14:21:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E7F976B00A3; Fri, 12 May 2023 14:21:35 -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 CCD0A6B00A1 for <linux-mm@kvack.org>; Fri, 12 May 2023 14:21:35 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 93B1E140FB4 for <linux-mm@kvack.org>; Fri, 12 May 2023 18:21:35 +0000 (UTC) X-FDA: 80782420950.29.0765DFC Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf20.hostedemail.com (Postfix) with ESMTP id 1BB7C1C0015 for <linux-mm@kvack.org>; Fri, 12 May 2023 18:21:31 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=EgCHd63+; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=NiO1Cqau; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf20.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=none) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1683915692; a=rsa-sha256; cv=pass; b=YBeTm4fTV8F7O7IIJ5bQ7OfVMOgRkpdceSf2N0id1HhlnDDA3D+OPjcCVFstwH5hHoUr2K xJNcNErHZIF/pQ2vS1RLSEE6HXkVt2/rJS/eVsXAX5EsznL7/GEmJNPU42fV3sYnf2ogeP UBB6qlyFVOixDBIWaguqCHXdMhllPxs= ARC-Authentication-Results: i=2; imf20.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=EgCHd63+; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=NiO1Cqau; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf20.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; 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=1683915692; 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=9yNU9HJW6liJ2fUnwkIAF9WIpSr2/rxcoMxVBhqd718=; b=equ4i963HxioD3dJCah33leaI0NGoMXxF2l23cgO6bNxHK7/1pliUUQ5p1fIdhV5cOOl/p 8dEz2RPglZ2c9/sHTqYmP4N50dUZa09xEjPhTcHKr1f0GPzjbJzlyQN8lvWrFWg19UfdJR SDp3nBOe9uL4nqKw4JIKrmaVmt9H7ts= Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34CF4ki0023043; Fri, 12 May 2023 18:21:31 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=9yNU9HJW6liJ2fUnwkIAF9WIpSr2/rxcoMxVBhqd718=; b=EgCHd63+A5j+X5QYHuz6xONyolzXGUcdWg9xcYvY1pf+BpfNmAufRyWnIN478HGSTfE6 qpPusEhb5wgVKE2cF2xjooTPMaSmcIgYJdfmoAZnFserNoaQtfKkl0iAPL9i2ZdRQgYu Q4Ha0/2+hwrHeXx8DBZgL3hGPIyHdAjngHN3R7Eww95/3lvSN0b1kSDE96aJgKWAjH2f s5gqz6FgDnjBWGVeCA2iPh7mCSR1OimA4mSaLrDmLulrh1030Dw+4iqigbZTwk750plI 0x/iXvXR7kTNn7MhJD3wyovpEn51lNIvYduO5HIyZ1LX/SdadCazG1Nc+dyYfccTfJhG rA== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qf77gbq2e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 May 2023 18:21:30 +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 34CH6CWR024148; Fri, 12 May 2023 18:21:29 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2100.outbound.protection.outlook.com [104.47.55.100]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3qf7y8gtjf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 May 2023 18:21:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MJHKmYSBkmVx/8X2hP3Cgk08IXWFlGiICHYXhFyJVeeNR7FwcrslKfva+s2bg12Uxif0494JMMr/6ZEYkCUgJBYxZpge/y62uGpvmhj9tpOYAg2K87XTb1KeV3n1TlHeFaBZ0VP7SF1gOCCUsoTGBEuPxENQD0pJZnyXnKJaOWPrbVbI6NSd35pWNp5bvkZ0mpckTJoU+YhPdZSFxgi/OgS/LJe6BJ2QO5/wJdkB+2VGQ/hVjA0kYIBtqYwDHtfjMSzznjpb3MFGDGZn6+Lad8aRJCplMBPf+KCzTzkdicy4I7UKT/k8m2vMhopsqS8kZpMbmB06ZCOGVZomNZHdcQ== 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=9yNU9HJW6liJ2fUnwkIAF9WIpSr2/rxcoMxVBhqd718=; b=j0wiVpXid+LWigmwfCPMm/Jj0qQqgeqBkpBnD8nTAxWMWe5I3ZrxS91hzs8X7x1D9bdjqPQWJFksETIe0G8fA2lph51HnMswWBZ82k6h1khXZFYBILVNE1kgNKtrgZN0mqWKG5hax/O93X9ZNwnv2m932+R8/i7rxcpR5DVyKMzo4I6PCWPMq1jPxuZLhm0KdK09D8BgfqQFEdtvkftW+tld9i5tZVzYCpIseXpqyQfjgOISq+XJuSu6sjCRCB0E563pyprtBH41f9OxAE5kIH0fh4yqwVvML+UFOim6qDjEukZhNe25A/AtG5x4JRxwnugmR9XNMFyh4THYZMUQwg== 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=9yNU9HJW6liJ2fUnwkIAF9WIpSr2/rxcoMxVBhqd718=; b=NiO1CqauRKrr6F1ogToC4aD11mAmTdkVvmjmYTeIs4M/FxIofWyLT96c9/sTzunRx+ZVHEms9iJeGFUYOE/YhNHHXAAcEOnBFlvw2YI3jQcNPB7F5gmeVZPUAXORV2JniVODHaIFnvN8aiM8sS2WqBtgWX9qbnTPm7HCsZeXP4c= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by CY5PR10MB6143.namprd10.prod.outlook.com (2603:10b6:930:35::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.31; Fri, 12 May 2023 18:21:27 +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:21:27 +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 14/35] maple_tree: Use MAS_BUG_ON() prior to calling mas_meta_gap() Date: Fri, 12 May 2023 14:20:15 -0400 Message-Id: <20230512182036.359030-15-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: YT4P288CA0047.CANP288.PROD.OUTLOOK.COM (2603:10b6:b01:d3::27) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|CY5PR10MB6143:EE_ X-MS-Office365-Filtering-Correlation-Id: 41f3a7e7-d6b8-4fb9-d1b1-08db5315b33b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DTJs5lyFM3/BwYcRmldEn6B2q8rIGiRe3xA96PW5hlgC0kdbqadyr4MRNrRFayN8N3g2S30FEH4rTP0eXlXk1hVHiTopKCg6pXjE7QBfu9Eo8jXJZXRv+uc35rZ6uIVH/H13znZUcwi+Glr4fQv8bGjCJVi3fYV3wx4d9cdAaX6j9lm1TtUl+Ei8+zOFNS8fzx+D36D7aUJLpV5Xq2mfaXb1+8y+GOqM0p4o/dqNNki26fYEL3BeddI87e/UXhM0W/opc+2DwFIjhVKSB/vetc8fJguAZwd2AbLcLN/wFp5kC4Iv2kciE3pCGAMMMlHzX7VcTexOUjNe6DnHmZtAYNOjzFqO0R7ZauEHEf57jR535ye9FcS3zOvwD4/3lFfx1sUFDaH9aHZkGNNkN9UHP0wDrYAtkl8BOGFDqhJ/PsjjkFkI7V5qpg3bTyY0RYpoTx4Le7jamkwPIovgSa4bFGz3BbZQam5+TL3NdN/ZO6zUO+u4gy7f1UKoE0t0l0cfZw+5TDS7lqAsxBOTU8YROiCLxigr0Xv947I0rsWapOTt8CkBNv0mEXfdysIb2UfV 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)(136003)(366004)(346002)(39860400002)(396003)(451199021)(2906002)(6486002)(66946007)(41300700001)(316002)(66556008)(8676002)(5660300002)(36756003)(4326008)(8936002)(66476007)(6916009)(107886003)(1076003)(86362001)(6666004)(26005)(6512007)(186003)(83380400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r2KOePUDEHm8o8tQfWmaV0PNnsYVl3mXH7mJmb65zlZ4FI97jsojNXWnDC9utmeo8BSAD1hCbbHEbXkOLjFdrna6+HfO2+D1GUyqrcBuE8dseTYcK3Wjbz2p9Ward98knO0WZSPY98ZZH3Lopjn0YX2pPixljlybjK+22ajv8lTVlDL/RmJBH6kllAWZ10iadCKc5OvuqBufJHMuNXC+1iTwWiZB6e5AOvCvbXUdzfz4tCym/m0ubHHCK2MbXsODgA04iC7V2Tgphjg9nIvXjPH2Px2VIjJzLhG62ZfGmhIKlJylN6wFnmbR5kk+EdGQMSUowO0ARi+IlVKFkq0rcS+UCGIkq1JI0KyuLeCnuClxijHqHiYPLPpWozS391dwDm4cTI4ECUpp/QNEPW6MCh2i9CqtUdODDhw4QWN/0MEVKrQcMAF//JvzgATrNuKBNUO9RGyxDCsRfzBRk/iJNEOlwkUI5nUWAsTgDuFz5rYXRke67hAS83x3vqmof1TA+QUDzE8T5kqDnF7flL1omXQmekfEZiGu+svejbRaWB7/KdPSVTdH3CXtICWmTcmBQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 41f3a7e7-d6b8-4fb9-d1b1-08db5315b33b 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:21:27.0594 (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: JZBNaHjd45ZOFGepVvbetBfuuVNEayvIg3M4WT9vItOs+fYwjkA+StM0DFlwTggy9wupWk4dpaRBecMigwnmaA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR10MB6143 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 suspectscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 adultscore=0 bulkscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305120153 X-Proofpoint-GUID: xYSOlNajnFQJ0zrI3hZjAm4dPWVKGCYP X-Proofpoint-ORIG-GUID: xYSOlNajnFQJ0zrI3hZjAm4dPWVKGCYP X-Rspam-User: X-Stat-Signature: q1cst9apztq73gjafxhe9rn8jsmsw519 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 1BB7C1C0015 X-HE-Tag: 1683915691-360946 X-HE-Meta: U2FsdGVkX19QuklGbPQqMDSFDFxCg9EQk95DHTUl7vK0xDwx7tKLc+EiG/mRR/Djt33iasInEgPDTp2aJpqPCWCeOZfLGmerkIpy64sBHTpBtvnnpKUhtqiyW5j0otbQezIbnxdU8fGzM3p6OfFu5PcsdEZ620xPt7u0RZSvVbhQf58vEvtxCyLbXE1Isv6brAaKwjjDM9T8YIZVyCyZLFWxbOENJDPS8L2ZmTT6UhQE+6f+10LJYX+GhnMkdgbEwbZc0kvdNSU5vnekElsXwO3ksj8Kdq+Xmlr3tgMtdRhJecGraoQNRL0qU43CT7EgFO4Qd2jWmNU6qQxkLT8smH8FmP7p2hjWhGQqdnqFJVihv1xCPf18c9oUJscezXj22l2KM0Xc+htxUeGK0dzzj3I28kppjUA2QzbEj4fIGP7NhiZBlEnWppbNIT5Jkjg7KAsf8iud5NNcAQDWJVQGKN4wldNsBs/t9GnMaMvr+XcuZkLgy9iZVRnK8sZD93tNLqc6NNPTCGpoK07MnWuDiQbqV5gn4rdq/ERIolkrkcqs5xP/ucrczW5zc16ujWTncwLOyaywcBFLVlVKt0TL7sN1gyhShfysKQQ1dLSajt7o/e5K27Lk+j4/UCl+DippoaNd53IsmiQS3m+fhbGhCEq5puVdrYTsfpqBOcSjMLizaQfrPYPkUIOZ5Z/flcD0pkN6J39Ai20aTGlXurnoCm/pCQo/m/+/o7F0WxzS6e+BOjpxTi2EsE9gQQ9xxK2bMGg1RRqqKYoxJIvzBdbWibvsCG2XL4B4dLyXnXlH3PYpkIQDUu/4bpjEu7wlEkXD+Yhpy4ZClbLgH5biCpWlZJ4THnV1F8yw4P6aHGjKEcWeKqRLoj/o+qIcTZvmlmGesaVVW1WB7kOBNhmPJS8gSSftfPPmWG9IhFJUAn9XaxOXBG9MksGvya5ENRfZy/+VtHWHRJB4vHO7tZWsdnA AxFREx6p Lz3TPPSvOKkQYT0XV1CJlyRzj3GnmDmhjfM9QeqgJr2IhozfSEsz2EvmF5KySZGKHLCRdZwTBXQEChepQpC5Ma7OB5ZDGRoDPwF5JxcKRUby31eWxVsfceFdl9IV1AU/6fM2aoQx8ukUsV1N1xDQ6qAphc+g2senG9xOBOkzULm2tZWfGpkoMjsEF3XM6TxlZp+wxvQgYPS3n9rcBnqo89gh0e5EUf58upzvX23J31rsI9UeTKaryGUOWxBzkvIsy4hV/w3/MzY2hX7Po3CPZg0wTkShbe0PUgALi5ekp+HDBwpG3DpIPoUWmBSELaoq/vATVtJ1eb/kOld//sE3pSW4hv+75v8O3nifPAVexBf4lVXfof8+dH65tNMUpVBtUNfiooxzQxi9IlCHMg2W5Fl6GvYCCE1PVW1D8mbYiminmaVo= 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 d5ccf7bcf3b5d..d7809a7000c58 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -963,8 +963,6 @@ static inline unsigned char ma_meta_end(struct maple_node *mn, static inline unsigned char ma_meta_gap(struct maple_node *mn, enum maple_type mt) { - BUG_ON(mt != maple_arange_64); - return mn->ma64.meta.gap; } @@ -1628,6 +1626,7 @@ static inline unsigned long mas_max_gap(struct ma_state *mas) return mas_leaf_max_gap(mas); node = mas_mn(mas); + MAS_BUG_ON(mas, mt != maple_arange_64); offset = ma_meta_gap(node, mt); if (offset == MAPLE_ARANGE64_META_MAX) return 0; @@ -1661,6 +1660,7 @@ static inline void mas_parent_gap(struct ma_state *mas, unsigned char offset, pgaps = ma_gaps(pnode, pmt); ascend: + MAS_BUG_ON(mas, pmt != maple_arange_64); meta_offset = ma_meta_gap(pnode, pmt); if (meta_offset == MAPLE_ARANGE64_META_MAX) meta_gap = 0;
Replace the call to BUG_ON() in mas_meta_gap() with calls before the function call MAS_BUG_ON() to get more information on error condition. Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> --- lib/maple_tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)