Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1503004rwr; Thu, 27 Apr 2023 19:55:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4P4K6jF/YTuP4/NOukzZJsc1JuGWJNO0/4ooHjHEwsXqu3WNP4IVmqu49bHL7/sl7Ungo8 X-Received: by 2002:a17:902:ed49:b0:1a1:cef2:accf with SMTP id y9-20020a170902ed4900b001a1cef2accfmr3667666plb.30.1682650533752; Thu, 27 Apr 2023 19:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682650533; cv=none; d=google.com; s=arc-20160816; b=TgwmCefbQYsBpZXGkcPuDv+QUQO5OLf6dyvyHBX6aJVfIMcCWwqA1DoxPgSP0s02iu 2FV+CguBQa+qqxIaXUwl9KfOHy74sj1c0NU2XSvMtm4bPxMrsFLlVen+83CU7nN3zMFC PaNWUUuZVwWmiPJ8lPSODvmpnH/Q3baS4usiizKM9ZvoRE8nJZKfLVghMtastKZRdWWQ xVW3eDFUN9HFCRMiFh4VDwgRBajaHrWstaPsJkBvJAXfMsirZnTLr1JWvoWCS8zOUzeY xO6jtGSUaIL10dAUhghSAGKuDq0AVAxBpxsDteR1Mv1XvtDZ3K26W/I0934mrzmuz293 k0oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=shkjoVKKITZ/5MAi+590OVZBJeowg3PtxdqAgmyjXno=; b=l69spspTbOvx5HY5UImHI6rk2AEvNdMQelZq1OUA7eI5Rr02zCQwWnQkxFXp7oXgbk ynhkn8mKtRbJRvEfa/d5dd8uMh0zV39dj6A6Y1dPPIQRFsfVVdKjvmuVR1dbRj3iiRbo 0VlEmruEnMDrtn5fh3/WmlwqyZnCETlpfJt20VHKfoZTlzFzxyrgHQ7q8h4ViiqoBz3t OeGGhkhW9VEcwLJpo05AiLvfhT5tZXL4BtfshAWR6Vbyz0nDldJTjnjszGHHQ/ZfSlTW g6Vq83rUCGzwtLUuJ3oJSe58qXph6HK48PG+QXEXJ0/5OftS5ipgSs+FavKZXhyRbDBP hdCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=VExamBjA; 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 jj13-20020a170903048d00b001a95aef4ffdsi14916999plb.115.2023.04.27.19.55.16; Thu, 27 Apr 2023 19:55:33 -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=VExamBjA; 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 S1344767AbjD1Cpo (ORCPT + 99 others); Thu, 27 Apr 2023 22:45:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344379AbjD1Cpn (ORCPT ); Thu, 27 Apr 2023 22:45:43 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C23122703 for ; Thu, 27 Apr 2023 19:45:41 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id 41be03b00d2f7-51fdc1a1270so6672498a12.1 for ; Thu, 27 Apr 2023 19:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682649941; x=1685241941; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=shkjoVKKITZ/5MAi+590OVZBJeowg3PtxdqAgmyjXno=; b=VExamBjAnyZ80vWcAl4/fkj+50jfIxFs01f7YACx4pUWweT2aOR13h5b/W1PYkE5ca TWUK6/bJ/CSrRqD5DtY4G+eeg/G7euJKNdYbHrh2X8T2R8qXFQmmDsE9dHGdzXZa3+ui SgdfBoBjQAhiOHkBwpQevSg9hkw+ZEEIp6JEXoK8nA+VWLswl+/M63aZ2buaDT0UVApf Tlq7h/F0M1Y9lkbgKYIvLugTaBGCQreNeKIdH2onO7GBSQsZzpfo6Fh3P5Sf24Hm4hb1 zxTwDCRxBDJTUI2NtK1iWyLIycJVhs9D7OS5rel3yKXYW9FbdPrXt+xg9icLPMlcED8y JkRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682649941; x=1685241941; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=shkjoVKKITZ/5MAi+590OVZBJeowg3PtxdqAgmyjXno=; b=alx/pvnQLklOLU2coZBX7Odq3jJwNRcEl5c71dMmNEMtGGn3FJVNASQsY9c3fkmW3d 84gM3drWQFHUK7i8Jj0CxI7z4NiNzecPeIzhA0t2JtRkRYtyjt3H1AS3jsEKUD0LAMHf tWJCjQsWqF0uMBkzfdjDwKZKh2HQKfiupudSabxB+dhU8De+H9sPdfIpCk77GwaiTDbF DKMQFUyOUxYIWQ0lq+uUGO/IuKce6MafZrTnYf6VD8RlNggKrtMgWjwpPuPpikYdtkcI P7EL6rku226YQW8m7Cm1VImn+tv4WWI6p3yg3jr0gJl1fXM34sNv27miAzH6rnTQhCt7 smyg== X-Gm-Message-State: AC+VfDzoeerMOSVFcQQQNha/FcbhhO5MIdPaNthlUVCoF+tsuU6NLrw2 Le6amxOJ3AmBsm3khGbyazVCjQz3ApPpl5u2 X-Received: by 2002:a05:6a20:8412:b0:f3:ac88:c048 with SMTP id c18-20020a056a20841200b000f3ac88c048mr4869137pzd.7.1682649941127; Thu, 27 Apr 2023 19:45:41 -0700 (PDT) Received: from [10.200.10.82] ([139.177.225.232]) by smtp.gmail.com with ESMTPSA id e27-20020a630f1b000000b00502e7115cbdsm3996427pgl.51.2023.04.27.19.45.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Apr 2023 19:45:40 -0700 (PDT) Message-ID: Date: Fri, 28 Apr 2023 10:45:35 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH 21/34] maple_tree: mas_start() reset depth on dead node To: "Liam R. Howlett" Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, maple-tree@lists.infradead.org, Andrew Morton References: <20230425140955.3834476-1-Liam.Howlett@oracle.com> <20230425140955.3834476-22-Liam.Howlett@oracle.com> From: Peng Zhang In-Reply-To: <20230425140955.3834476-22-Liam.Howlett@oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, 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 在 2023/4/25 22:09, Liam R. Howlett 写道: > When a dead node is detected, the depth has already been set to 1 so > reset it to 0. > > Signed-off-by: Liam R. Howlett Reviewed-by: Peng Zhang > --- > lib/maple_tree.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/maple_tree.c b/lib/maple_tree.c > index 35c6e12ca9482..1542274dc2b7f 100644 > --- a/lib/maple_tree.c > +++ b/lib/maple_tree.c > @@ -1397,9 +1397,9 @@ static inline struct maple_enode *mas_start(struct ma_state *mas) > > mas->min = 0; > mas->max = ULONG_MAX; > - mas->depth = 0; > > retry: > + mas->depth = 0; > root = mas_root(mas); > /* Tree with nodes */ > if (likely(xa_is_node(root))) {