Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7195795rwr; Tue, 25 Apr 2023 09:19:14 -0700 (PDT) X-Google-Smtp-Source: AKy350aIwcmmfHDG2vWL1k2rbErFheiNz5vwekqNOFMBDBlwbypPK5yV92v5pHIcIXottwdbDxVC X-Received: by 2002:a17:90a:bc97:b0:247:3fec:e732 with SMTP id x23-20020a17090abc9700b002473fece732mr16993811pjr.13.1682439553954; Tue, 25 Apr 2023 09:19:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682439553; cv=none; d=google.com; s=arc-20160816; b=0GWx/ddPsadrcxVrX8PiJpUMTtng+Cib9Jjj01wEJZxlpVkZMZ7kIjjcfyUZGe9S6k MxEsGN96htIFTysDjEF2e0c1AR9KalF04B/FHparKcIWAVe14WpfWhcnKp8NbEewm2yu p575F0Z8CUpSfrbpTILg2kO+mwK4FlSIRfIxyH0AdOZxNH1KwuZ69XOKJmfSjB9losZA BwGZk8w+1gOX8SsVqgmx8dxD//rLdtNuHQmNKuz0IDU2ggQmVx0aloQvRfNzW86DsDaL OG9SEIf/mT1djB2jowetceYfhGldnJlQYrp/pEQq3wDGBpKDGJHNz9SYoIXblk5YZeZQ RVpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=XhT3n3uvVNiweRdZg9pUZ8/lOKMThAVg4Q85EU6X5VE=; b=nOWaRAekTcwp5Kw4IX+qkRjTEbqShd3KDTR8hNpNhgCTrVeuoQSJgfKnIJvh8+lVxW 8LfpIkbwtUYXbZC0JBSg3DdT2zfw/hU1KL8dxWj6NSwEp4glPlacmKKSMYJXXAHpvkh+ uNAJxFH/860rhdlCXMjy6jafruFxO/H3znsPF8Y4AOm/unES946lwKbv63XwR8RBeKUn RQyUfdVF98jU31hmJ5q5P57cc6f7oihz8uY+FD70N47Amj0HIemRMPUOOTzFz8RhHx6f Ps2N+k31M88FUaMs74Q1QQvbopEtW1on5+lNMZq+N52hiAXLMqMn2E+lFOMAIIFPHtXS HQqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=WFfs6WxK; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c2-20020a17090a108200b0024799a3324dsi12291530pja.162.2023.04.25.09.18.56; Tue, 25 Apr 2023 09:19:13 -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=@gmail.com header.s=20221208 header.b=WFfs6WxK; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234274AbjDYQOD (ORCPT + 99 others); Tue, 25 Apr 2023 12:14:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234238AbjDYQOC (ORCPT ); Tue, 25 Apr 2023 12:14:02 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 038779022 for ; Tue, 25 Apr 2023 09:13:59 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-94f3df30043so945246066b.2 for ; Tue, 25 Apr 2023 09:13:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682439237; x=1685031237; h=user-agent:in-reply-to:content-disposition:mime-version:references :reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=XhT3n3uvVNiweRdZg9pUZ8/lOKMThAVg4Q85EU6X5VE=; b=WFfs6WxKY1IQFGgDPzf2iHSWqrenokOc5Gt4EFNBJCATVwkBuNSKk8RfPWXzsygHj3 a8Bg6AWXaz3GvPqyrnaaEv9N253Le/BkpCxcx5AAB7dWLjCFDeU0rOab3M2oi+yA+FSS 8cBYrzaoV1VWNbSniYDgsLLCg81zPXgDXtLVvHkkmEzgN7VpiqHboUotZuLVb2jfrWD8 U0+ipdpWSQTM55pjMR64xGo3RIT3h/kVw7vlqjXerAqL9e+c/iohxMmwUs4nDy7B59qH JrkwWwxtOArHeevA+K1jZquAY3eNOgFsbEJ530+NxU9ww6AkpJeZ7VdlvsXqKY8sEFvj vmoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682439237; x=1685031237; h=user-agent:in-reply-to:content-disposition:mime-version:references :reply-to:message-id:subject:cc:to:from:date:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=XhT3n3uvVNiweRdZg9pUZ8/lOKMThAVg4Q85EU6X5VE=; b=NcPH3uhSPllaApEb5v77lW9+NPgJJ0GPvekxi9YfWigLvSC8OS4rR2/6434DQ2zWPz jmPItwP0Ki+FCTx6WlOTEan7pJCe5ZQu1Qsnp9oHB+vATglcLqu1hGn0z0TbcCf+cfqb 79oN+TnVkZtwC1nWNOzVm0WSjwcpWS7tWBjyZj8CumERENNbe+4WZNCr8TBv/d9nOWHp zDy78672ABjI7QJ0ujtmtMJzIPDzPGTrGx3O+SUfwPsDHVx3CegZu8ch6Ze12fiUB1w4 3tjP0cr2sWxlwjw3rc9YtXQCnY0+asDDbNQO03uJnWSr4vPyaV1Hme1jBlRFDotCeJQw KHFQ== X-Gm-Message-State: AAQBX9e6NKTIpsqF1orjnqXQUZoTQd0/7hx6Eu3HyUlPeqKloHZKH0Ti C0PXAWOyEJd0BO68EFaj9Gw= X-Received: by 2002:a17:907:168d:b0:953:4775:baa7 with SMTP id hc13-20020a170907168d00b009534775baa7mr16049654ejc.52.1682439237379; Tue, 25 Apr 2023 09:13:57 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id s22-20020a170906169600b0094f3132cb86sm6897083ejd.40.2023.04.25.09.13.56 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Apr 2023 09:13:56 -0700 (PDT) Date: Tue, 25 Apr 2023 16:13:56 +0000 From: Wei Yang To: "Liam R. Howlett" Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, maple-tree@lists.infradead.org, Wei Yang Subject: Re: [PATCH 02/34] maple_tree: Clean up mas_parent_enum() Message-ID: <20230425161356.yfjhn2uoq32pbp6r@master> Reply-To: Wei Yang References: <20230425140955.3834476-1-Liam.Howlett@oracle.com> <20230425140955.3834476-3-Liam.Howlett@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230425140955.3834476-3-Liam.Howlett@oracle.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 On Tue, Apr 25, 2023 at 10:09:23AM -0400, Liam R. Howlett wrote: >From: "Liam R. Howlett" > >mas_parent_enum() is a simple wrapper for mte_parent_enum() which is >only called from that wrapper. Remove the wrapper and inline >mte_parent_enum() into mas_parent_enum(). > >At the same time, clean up the bit masking of the root pointer since it >cannot be set by the time the bit masking occurs. Change the check on >the root bit to a WARN_ON(), and fix the verification code to not >trigger the WARN_ON() before checking if the node is root. > >Reported-by: Wei Yang >Signed-off-by: Liam R. Howlett Reviewed-by: Wei Yang -- Wei Yang Help you, Help me