From patchwork Fri May 12 18:20:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liam R. Howlett" X-Patchwork-Id: 13239609 Return-Path: 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 4253EC77B7F for ; Fri, 12 May 2023 18:21:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B25C66B008C; Fri, 12 May 2023 14:21:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AB0036B0092; Fri, 12 May 2023 14:21:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 92A1F6B0093; Fri, 12 May 2023 14:21:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 8253A6B008C for ; Fri, 12 May 2023 14:21:09 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 4BC02120FED for ; Fri, 12 May 2023 18:21:09 +0000 (UTC) X-FDA: 80782419858.01.CF6BE11 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf17.hostedemail.com (Postfix) with ESMTP id B0EAC40008 for ; Fri, 12 May 2023 18:21:05 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=qXl9GI7u; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Or8gIF6B; spf=pass (imf17.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=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1683915665; 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=C3AbTxtdfyzVTdgMrkt+8cguGreW/PZzveEPUyUGMKU=; b=8JUvJ07p12NyqHTnlJvp+l3wgEVjj5sfkDdi/qNkdcnl3bFSumAJkG/iFr3gKa8VgQJG9t sGY0/Qgd8vhn/wUKUCyVKiZtAX66XU1JvKjLLvJrBi3XmX3t8FSPtrmus5qPCR/j/nhdIZ oE6Uz7c1KdXHpiuvLjOPXggVz91EEdY= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1683915665; a=rsa-sha256; cv=pass; b=Z74625VFXU5oRPQOGZkSmLEeKTM2F6EeDsMZ1kx6QH1uZ9V0Xdy8e75p275dbcVavy7Pvv u1/HFyQWYCWLqW0/mI4+pZ4gmX2oCRA3+F9YsNIgF79kmAtsf66RM/kmuZ0trkZFcnyCHv ptGfj/FPiyNa28wssfTVMQNlC9ezcYs= ARC-Authentication-Results: i=2; imf17.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=qXl9GI7u; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Or8gIF6B; spf=pass (imf17.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=pass ("microsoft.com:s=arcselector9901:i=1") Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34CF4eEw021823; Fri, 12 May 2023 18:21:04 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=C3AbTxtdfyzVTdgMrkt+8cguGreW/PZzveEPUyUGMKU=; b=qXl9GI7uRcDpvpPIS9y4V0HC26ZHe941/yKegFXZSZhNlkzg7POOAWmHwVUxjAiyGrxU I1DuAnFNK3o8ErbdrKPFoZOfAzVlx9IRlXHVkuOj66tUCp5M3GwLRdOQ7eeRniFbEE/6 90ivv5HDp2ppL6d68EbHgzj1UV8k+/wM2Vhv2W3rVpHXY8Gw3JNnkvVvV9eyi4TZfFG4 3JiP9/hg9YqY6Rq9laPgOXzBAsy1MY8ai8+zTk9DxwHevIX+6gEm4A6j/e9yxSzVRTT/ ZNq7yIEO9PL63xyoT2LdWDWQBT06bUGaeIUuE90fSRffYbKILHN/oIObm4DWga0PrV4T Yg== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qf7793gy2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 May 2023 18:21:04 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 34CHQEjF004541; Fri, 12 May 2023 18:21:02 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2106.outbound.protection.outlook.com [104.47.55.106]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3qf7pnt4yw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 May 2023 18:21:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hE5dtjli1v6coEhxgwgrjn9jDB9HsLl8RIkpza09bZvEUAg63r5FKLiPSrOfutxaaMhxVMNWS0MP22lTphCnNQr+/Fb/d7d2tYVlCZTXHckMBErfpZl4dfSY2wJZSvi6GphlhSWy/em0Z8lBklP/7TkdO0cdTeXBtQ/9Ss6c0JR6E7MD5yUCwR/ShCN+zjGhur40/4UDRqhmB1v2Eqe9zG8CIpPyWGUeVHmeguYR/+bhs+PAz0eUqevyZZT0dXWIooS2jtk2FeZwl5W6RwI93lpJ9KI2/SJuUEsGmf4PBHKIeYfcs85QC4w0vPqnNdjBPz+HKXJvYj8Q73j0EFQ3jQ== 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=C3AbTxtdfyzVTdgMrkt+8cguGreW/PZzveEPUyUGMKU=; b=fsJpk5C1CmRRrpj8hL5+lqCV5GjZ8FAocmzz7iRNyAYFm/Z2taMjKQtkUn3cf6eVo7jl3beSRLL5head7okLS8uH3hUXMigEn2uq7yL+TLh6BFIm/OWNk8y7FgCP0LC8LuwwOchRPnPaN3wx3ws0mRC4cU1MEO3HM1Hg9XXeQTGiRyWHE+g5DTm0O8RdpnT+vCiQ3bmgK77lCHDwOXrMIiqFhDp75djrCGt+kZwXXf6z6X622MOidWjhrWoGuCVtioqPnfxNy5+Kdued2foZcwsDkQ3NjSwhBL398errnklAJy+FtHdlxCMQZbENTompwzq9DE22VZdkq3EBEj3qHA== 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=C3AbTxtdfyzVTdgMrkt+8cguGreW/PZzveEPUyUGMKU=; b=Or8gIF6BWJXGllovJFlOXfbGrULvUiXHhAM4J57FeExclBIIgfw7p9BjnMNeR4VHoxt0KqvQYREaqP6fuPuB6ANj36ssTNo0fxO97mBxw0MRdN7ELHVF81dzF9503Zlhpe3WK7IFntHmeFPuPHjqZZv20/EPzENG2OTWrY05MNQ= 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:00 +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:00 +0000 From: "Liam R. Howlett" To: Andrew Morton Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Liam R. Howlett" Subject: [PATCH v3 04/35] maple_tree: Clean up mas_dfs_postorder() Date: Fri, 12 May 2023 14:20:05 -0400 Message-Id: <20230512182036.359030-5-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> X-ClientProxiedBy: YT4PR01CA0011.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:d1::24) 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: 53d44c8b-4fc0-468c-1083-08db5315a33c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kLjr/AxamIRgKFL5jHVTmPIJ2X/f6MCN0IPD3WKwGxGPiglsZDvcXHdoj8ehwoJQyn568Npl0XMnfKpukgpmn+OsfRbxT8LMXICkyspFD7bcQ3nwkHazCRsUXdu9aupbfxtHsaumQ2p7JEnyAJLu63CUNX/pVfZubzXgvbVZC3qQdVYRnTO9CTZZimQk8634cFUUGlfm5DeLovCf0hhvjUstHMpRjc5nqZpufYCVJTm+FwosZVz9WxwzWI3Mlnvl8xvEC+QEZuNxOrU+Qp4JUSaVJv3NKg49TGkGiVlCCsa/88l1vc5wxU1ZFBYjd3GSs9+EvLFProa8utQIlUmzJU/dWyo1XuFFBxZQVbP3tDrykxorIM8sl/p+pHSF26Ado8/o3U/Ig/hCczvXWtobDiWgJf7rRWhkblUdO78v4duWUr3P0W0gxNB5Zy6LGFZJJVbSA+/sdPqsxrD7tLR9Go+xHzqS/OFQQfzA+gVnvQSOPeSTjZIw6u/U79I26yBqS0NRypSz6vQuvdXqTGjT35SBB3lf7VOwCaSmuicD3VbfcFqOSoFTDvfBW98t3UZt 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)(4744005)(2906002)(6486002)(66946007)(41300700001)(316002)(66556008)(8676002)(5660300002)(36756003)(4326008)(8936002)(66476007)(6916009)(107886003)(1076003)(86362001)(26005)(6512007)(186003)(83380400001)(6506007)(2616005)(478600001)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: l8X6QelMcf1Lf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5GlS3amxROvs/RMJrqtkOf0TJod5Psqx5k/F3zuEzxsG4A1HbWRIubpnhC1+JVWpptUtOaN3xvF1djJmRCOvAMCn47fpPJB4wPUX+MH9IUvULd1dHeirW4/7FIPKL2yDGRxl5kt0hmesXZ63VDp9BaOLUM7aXtWA7ZcqS5c7DO+jaR21elXW9wP8IQwZbBS6VWl8tfKou3+joV+Tv9VgSVaAmVkE94HyKZLJmXSwoLGEKSR2EGplNEQ4Uc73W5fhb0R8Wz7Elu21sS8mNTgv1CakeKHEB2bck3e5C7OuBUbbWRGxTVpqgzuOc8tdo5scetHliexWf2gJW+nINLMd77VMDdQUzLqUFyJqITYTsZ9YKiIaTecY8zFEoB3fo0h0kP0+y3eedCiVQHkOOO1BgoXzXhwjkHP5o0/pjKuH6SA8HqA== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 53d44c8b-4fc0-468c-1083-08db5315a33c 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:00.2232 (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: BBG8Wqdk+CAC0C5O6w2epvuDhEbQ63esyoeiJptX/1g3uG8mfgZEesohwRdB85/IMuDFa48TBWmJl6/9vi2pYw== 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 mlxlogscore=999 adultscore=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305120153 X-Proofpoint-GUID: pdGR9WO-QTcOnBwEEPmPwXTzEYM6S1jA X-Proofpoint-ORIG-GUID: pdGR9WO-QTcOnBwEEPmPwXTzEYM6S1jA X-Rspamd-Queue-Id: B0EAC40008 X-Rspam-User: X-Rspamd-Server: rspam06 X-Stat-Signature: sneg1xjdia33d65898t6m8x9piosgq7o X-HE-Tag: 1683915665-203942 X-HE-Meta: U2FsdGVkX18tXJwl1eCFg99p2HbL9ncHwQp9ZqsBktWp2cKqkQ7k3ucEZDZlzNnUKlq5leG3YlM/5lwms7xhStWYeLtg9skhWlJokUIV4qbSARVS9lKa9J5zW8jNm8aZLZuYSjVr6B5FibtU0lycAhYh5w2x7ugO6Ld9IbyT+yIu7PQnYW7Ho5BYzgpHqu1TjWc0hKqFZnQGJCewRhp2DCpF9l8OzX+DPTUoZt95rwDIdaHAmB03EvauKNauvQ+IsedIG3FfUSG7GZNamE1nOvG5D7soKjTMxrivWWc4lt5/4y4xgt+HxW87JHT8hDdzCBW/RK0Me9xM9ITx2p0fsKC4nuqN68DmXaHo5ncwmlHvp4/duw/VF7n1dnLHjyO1SNjkv/xbSKzQgm9C5VilECiiCW6laEfrpkG8HMywcOaHrth8RcT73kFWpHabrsZdsH172FRzVAmuZTVo2XFCIdtOhDdC/rE6P1tR34O0cRTIOofkMBW/OVP8t6UGiLs1RtQUlpXCjSip69Ujc7P7xPyzYApStwWDdzJNEboKIJSwUlp8kupIMfjFfRLgZhtZJDk2ns7P5DyR5Yqnn+FzdQTTAIkq5S6RKq8gx8cBWoZdUXB67yTZDJI/0fm6OAviFj/MENrORnpu7pJ/SwGmOP4cVjfF/uLs6OZaL/l8mu5gQ+J9s6NgGRcU3vJCX65MU+s9txeZHzjSOUYzRljQ5HfXRWRrp1iVgTfYLDr9l0n1JC9v7WPBCty4ommNn7x++sDfM0e5IsU+ZFPlzC40Sm++d9y3Vh7PprLGqO+Us6VCxlWUV7YK8xJh4mR7y693pls8IzkHraaC9Mv1TL18nPwSHA4+vEZMgfp8ZZTASLRPmooQNw9LnouJfG6btBpou96i+0fO9dG6MHml+/1lmbQ06SDFv92YHK1M6EQI3zF5qGDqExltwB7CdO0KpUeylzAVAuOs1SH+TgB05AC BfXWJ0c4 iSjo3+T9Yw0ixIKOosAX6ZXTevJl87+vtefNYTvluKS8XppK4rwze0zhYF6tx+MqgqumBWRfQaPJVxqhCLxgHLGULcfXzgI40ihinpuHftgx9IZSlmqi+bNzCgebWMWNgNb50/yjlzIBihuhE4EKp5WaHTo5mX8iU6TX12x58AOCPseeFTCFfEQDDfpEXuO12rUpmYy3iW1OTAOV05tmLnba+Bo5msnq7PzkfPHLUfQ0s03Ah7CQJZGtEOjwM54Azy2w3rZ7cBKCfrH/9VPiYIZYVVumJgVPcWQcymyI9DSvl4hGT39wNXCdEz97E03D12T5UFTExnS2+ITa/ttTXnaLwaaO062slu1s8WqyXgwUFbXor7aRgYJs1DtUUlm6AnqxDTrmKacRcKB7ikmMd7ACMya/EECMcYPrObmjwiLDlaQYUg/WtR46WpiuwFxJBPfKu 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: Convert loop type to ensure all variables are set to make the compiler happy, and use the mas_is_none() function instead of explicitly checking the node in the maple state. Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 5b29d5a916f2c..1e7e7249a0cf2 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -6739,15 +6739,12 @@ static void mas_dfs_postorder(struct ma_state *mas, unsigned long max) mas->node = mn; mas_ascend(mas); - while (mas->node != MAS_NONE) { + do { p = mas->node; p_min = mas->min; p_max = mas->max; mas_prev_node(mas, 0); - } - - if (p == MAS_NONE) - return; + } while (!mas_is_none(mas)); mas->node = p; mas->max = p_max;