Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp75629rwd; Wed, 31 May 2023 19:18:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6uGr8DB8xLZ6gijA8JeATpSfoMB1facf6T5AWuMeCKgpdrQ/Q3nt60MvALeZMZghFEtcRJ X-Received: by 2002:a05:6871:6a97:b0:1a0:6c53:d6f3 with SMTP id zf23-20020a0568716a9700b001a06c53d6f3mr2850242oab.55.1685585921177; Wed, 31 May 2023 19:18:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685585921; cv=pass; d=google.com; s=arc-20160816; b=ev85excGxn6zK9mo8VUgI/N0mbaGEjmEw16Q5PJx8kosFVlYLS/9/bCuKw0gpVM5hw iWfFfU87XDA22Hzp/ziKBWVFgHJtaB3HE/KMzzrzSkm6l3cUScfrSUMct8XbjTSCev91 MuyWASgvz0Y1nAwjDrVPFp+A3uApChpKqSMp1oPLQmVAvMURuDo9pUrDA6VgLRPPlOoJ 57XDjlaVleafUbh3A612M7P8pQaHZVNjZrppS8xGBF4Nsc8m3YX/ZdNe2TwXsM6mZkex 6xfg5flkUN1DWyKSjK7879To2VA/lVIJMyCm1QmAZzsdBlKLrwEBYPS9mc1Ye/74Uf9E YkgQ== 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=4TFsZxvWPLZuKl+HYTGeXJqxloynMHdkzDhHBBsiyww=; b=hmvhjnFnq62evAAos0MVkBalupC3OK6vnMpy2z0tcg30HWchMZFAYkgMWNldQKPJzP mMl8vNWuPdJqTQCEzUgTuQGrORsAGCpn3gwEeKX8TLeL3rtAzeStK29DKk/4kF/qOTNE VhmYzf6BOJc7aXzBuFsd5v6zk6aUlWCF0/lV1vhyV1KGIgJhKFV1Rcc2/bfsWVcrMnQx 6TeLWorDGgsXKOprt8+nE4snxs4w8v0H9j8tlcesokHoPI69No4v978qnVNN0+L5oCmC G6jOqb0gPRpxZa794thENvR4NMghrS1jKNuRLKlDbsFMCLpsmB47LuklhJWKaNHrtM6N HSsQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=pM1A5Zxu; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=ATTp6Vlm; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z28-20020a63b91c000000b0051942a23eefsi2011939pge.533.2023.05.31.19.18.29; Wed, 31 May 2023 19:18:41 -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=pM1A5Zxu; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=ATTp6Vlm; 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 S230213AbjFACRg (ORCPT + 99 others); Wed, 31 May 2023 22:17:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230471AbjFACRN (ORCPT ); Wed, 31 May 2023 22:17:13 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F218185 for ; Wed, 31 May 2023 19:16:51 -0700 (PDT) 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 34VKIEjf032508; Thu, 1 Jun 2023 02:16: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=4TFsZxvWPLZuKl+HYTGeXJqxloynMHdkzDhHBBsiyww=; b=pM1A5ZxuvU7AaIqbTAMcAI0YUFgGI1A72gx/be9cuAQIui/y++G/OlvlqaClovGws4lu kaLtHrbMLpis1VUPukSVNYdwRzDI/DQPD5HYvvs2gR7AEXtHZfWXSDk1ZKMeByEP2JtL GhiAIZBhu23d9Ry3kuayfT1n60FpI9mnb0pjQAmdF17KShN0Cja4rOgk1r9829Jqq1DB bEBMYV0ItoteQX8s3VaSJtjOnouMYBX0IDo1IuI0fHFYkDf+WiI+2kHO1ZKo+2vu7I07 WnNLH5LLml0J3AHsLN+R8sJ/d8vWj5trglutzmu/dVykhmzoIMLMyUZhUGxRIU+vOsqw zA== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qvhb97hvh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 01 Jun 2023 02:16:48 +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 3510GXSa000395; Thu, 1 Jun 2023 02:16:46 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2046.outbound.protection.outlook.com [104.47.66.46]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3qu8qb17gj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 01 Jun 2023 02:16:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F3nAspeCc6KlGSdq1OS4jWcA/uRLUcE7Cj+fvGd7LAUGFlL65XQ03HKoEnzI6ua7JCUnVKKnf8zXKIixkZANeELszSYFg3Cc/j8c3JMYeFXcpF0xu7CaLbxKqIDenu39c52SGe+aem04yHlOUGXjxlPCbnECMdD/8xuVEru/sEnP2ht1MF7dKwEMOGRDqHqBvYKzBFx36DT69BP8AZY1XD9S0a3SwRxOChr4B2A3MqCqEyJ78qDDVkpaVbefTFQlze5w868WLshiqBExOf7UMb47X9ASKOfyLR2n3nKsexX4+MEePo/3XBUooBvZOawmVoSFS67pOJxYhWkW5wo12A== 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=4TFsZxvWPLZuKl+HYTGeXJqxloynMHdkzDhHBBsiyww=; b=W196DDG5GaQBirKQRwbjYgxGB4vWc73Shv03BloxujnKAU/6rXnIP2x5a3Stsy8c5gOPxLCPIESWRbcPNHiyOEo1Hvm2GsH6gcrBnpduiY0MmYXrJ01zXcbfekbJWXu5IPbEqmqHRWv/giKIgXqjiRvtEn9RWqSH6wBVPqeHVCotdaK/7fqOcHdufTZQ4M7LyogV3iS7g2x2J3AKR1Uh70kLIHe1rRO8bXnjBhDKOFYKCsz8d29Nic8I7Ss7lbP+4iUuy95pQJn/krPv/Mx95ih4u+cYleoewXL4XsgT64D3ex9oWr0i5T8r5tMhuoIylcj61ku7WAIATUjx513+0w== 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=4TFsZxvWPLZuKl+HYTGeXJqxloynMHdkzDhHBBsiyww=; b=ATTp6VlmuB8ZHPalWJ6wdlV5Bt5OkBmRAXs7USAMyL6PC9/olD8dd94i77o1AytEJAQs9bmO52S/zhugdmHwyMcdHhAlx4FoYij/Rx+mpRngJ3F1aR17suZnNPk0IaKgXJre7X6H6anM+JWl7KRPRrWUgFGrCD7Sf7gcroMUU04= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by SJ0PR10MB4687.namprd10.prod.outlook.com (2603:10b6:a03:2d8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.23; Thu, 1 Jun 2023 02:16:44 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::998f:d221:5fb6:c67d]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::998f:d221:5fb6:c67d%7]) with mapi id 15.20.6433.024; Thu, 1 Jun 2023 02:16:44 +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 11/14] maple_tree: Move mas_wr_end_piv() below mas_wr_extend_null() Date: Wed, 31 May 2023 22:16:02 -0400 Message-Id: <20230601021605.2823123-12-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230601021605.2823123-1-Liam.Howlett@oracle.com> References: <20230601021605.2823123-1-Liam.Howlett@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YT4PR01CA0350.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:fc::20) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|SJ0PR10MB4687:EE_ X-MS-Office365-Filtering-Correlation-Id: 0823f243-7bec-4265-3f17-08db62463ead X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wElmbrN/2vBN3FK8K0/CaezvffvIb9tQ9InzW2OZhlwjm3ip3GW3v9Lsk/pypEnjRxvrLyD9yvwN+5JI6rnq1We7lQtjpxc+T6vmUxZhgkYImv0MABS30dWIPgNz6Uxze69qDhIvLxKErSRF454CB4fh37LnQW1Kck/ezn51SziJf/kphoeVdcTB9RXWaOr4y3UCkAoQXoe5/gvIa1lotuALgRdmB7UnK6quDhdqfaNDRwYpPjEJ/tqeMPOgnRQ/ThRVZwEbOR3alr3MAstiWHxZxoWfegcrBYk9sjWx1fWd4Lq2QAYcsNsYXyaqq3kEc65cR1pciOIeOjHlyC1pmDbZewTxO5gC7BWoFYlLhnDJnb693lOgUvNTXWQjbv1VwqqMhN3R78YGQYxHD2+PYAf6eMZeC/BY4YXLuu0Hb3QOEpE16Hnd8qN9E2vJI6coqrJGuS95w+Hvaaq2Q8bMwlc0G3AlQUJxIcHgzfbDSpaOfHxrrpLYlgKZi7QqSTpya/efsxV3RtHZoT2cv/3Z6SmP/9VPTNIBw0mQEmn3TMY1YDVh7kmM1kkARn4IJpnL 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)(396003)(39860400002)(136003)(346002)(376002)(366004)(451199021)(36756003)(38100700002)(86362001)(8936002)(8676002)(41300700001)(107886003)(5660300002)(26005)(1076003)(6506007)(6512007)(2906002)(186003)(2616005)(83380400001)(6666004)(6486002)(66556008)(66476007)(66946007)(316002)(478600001)(6916009)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?XotL4NPDDPjRxuvXlsapMIYZ/LHMQ2osz6DER3HshBxgOAYKqbwCXNkrWeb5?= =?us-ascii?Q?+kfog6gLmMIOfnrVAx9tzgJA7s8TNc59Eytp6PEi2t7iG2q994kjLUkoc2bY?= =?us-ascii?Q?fSgZ0TNX4mpB1haQDqtq069JDuWEfX/9Gj3g2I/16xQ4v2QjmyQUtAVvsYy7?= =?us-ascii?Q?U/aDwsoaAMBkqVNhVsT4OqJsOWevb5nxS6xoGIR+V+urDnLb3IsrjevVBMUl?= =?us-ascii?Q?nAV6p3ArnTKksY+JMyED4GQWqY9un1gm9k6NWWG3JO3w3sAJ1hq7W8fudb46?= =?us-ascii?Q?8GvkJtZxvbcXubtxnpaD8GJhDHx2Qp8gT8ic9PI6j196Z9kHJTkklKFhwkKV?= =?us-ascii?Q?xWyRDa7MIpfisuSgEudmfZflQsnVNHfZOlZJ3BMaPGuxq2BihKQtVlUAEV2/?= =?us-ascii?Q?Dm0RxW2M7GRg5N/+UzPd4LMteMtrjDpNULidfFcHog8r/hURm0VQ37GB3qFj?= =?us-ascii?Q?6Bnjv+vOiG2flWXF33ZC1gS/8KI72cQJmKK+mPOI8fviB9JNjU0QGu+7xh9E?= =?us-ascii?Q?I3V4zZygnOZGeXsGXgwIQ/Ne0LdNVKzzTPkyXnCG0Lyd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HwtqOGd7FozaZgseuD3T0w2zFtVMXfZQNjCfaXzpSPQdQVmp3Bz0FqKxYvjua15q7h38s4BaaCUlRghNFq0i+SMeVS1Z7RDz8w2aKno1TZB51IheKoiEwtIoBd3b8bGwg4kCY+QQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0823f243-7bec-4265-3f17-08db62463ead X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2023 02:16:44.3309 (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: R6BJQ73z9Mrg8d5wP7VQgVXgbmbjWN9MzZ1B7nDjQN9MfAhh1fF5BGqNhweEkRe7h21F09NikHoIxJUpP1nkXg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB4687 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-31_18,2023-05-31_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxscore=0 mlxlogscore=999 suspectscore=0 malwarescore=0 adultscore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2306010016 X-Proofpoint-GUID: _2xj_LCbJZY3wadi2aao3ZIQYNZjATUN X-Proofpoint-ORIG-GUID: _2xj_LCbJZY3wadi2aao3ZIQYNZjATUN 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_H5,RCVD_IN_MSPIKE_WL,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: X-Mailing-List: linux-kernel@vger.kernel.org Relocate it and call mas_wr_extend_null() from within mas_wr_end_piv(). Extending the NULL may affect the end pivot value so call mas_wr_endtend_null() from within mas_wr_end_piv() to keep it all together. Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 34eccddb0b47..adf662bc413e 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -4197,18 +4197,6 @@ static inline bool mas_wr_slot_store(struct ma_wr_state *wr_mas) return true; } -static inline void mas_wr_end_piv(struct ma_wr_state *wr_mas) -{ - while ((wr_mas->offset_end < wr_mas->node_end) && - (wr_mas->mas->last > wr_mas->pivots[wr_mas->offset_end])) - wr_mas->offset_end++; - - if (wr_mas->offset_end < wr_mas->node_end) - wr_mas->end_piv = wr_mas->pivots[wr_mas->offset_end]; - else - wr_mas->end_piv = wr_mas->mas->max; -} - static inline void mas_wr_extend_null(struct ma_wr_state *wr_mas) { struct ma_state *mas = wr_mas->mas; @@ -4245,6 +4233,21 @@ static inline void mas_wr_extend_null(struct ma_wr_state *wr_mas) } } +static inline void mas_wr_end_piv(struct ma_wr_state *wr_mas) +{ + while ((wr_mas->offset_end < wr_mas->node_end) && + (wr_mas->mas->last > wr_mas->pivots[wr_mas->offset_end])) + wr_mas->offset_end++; + + if (wr_mas->offset_end < wr_mas->node_end) + wr_mas->end_piv = wr_mas->pivots[wr_mas->offset_end]; + else + wr_mas->end_piv = wr_mas->mas->max; + + if (!wr_mas->entry) + mas_wr_extend_null(wr_mas); +} + static inline unsigned char mas_wr_new_end(struct ma_wr_state *wr_mas) { struct ma_state *mas = wr_mas->mas; @@ -4377,10 +4380,6 @@ static inline void *mas_wr_store_entry(struct ma_wr_state *wr_mas) /* At this point, we are at the leaf node that needs to be altered. */ mas_wr_end_piv(wr_mas); - - if (!wr_mas->entry) - mas_wr_extend_null(wr_mas); - /* New root for a single pointer */ if (unlikely(!mas->index && mas->last == ULONG_MAX)) { mas_new_root(mas, wr_mas->entry); -- 2.39.2