Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2494888ybb; Mon, 30 Mar 2020 07:16:48 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt9VZlcxIMXddd6cme7KRb0Ad+Cw6aLlQmyZ1dCSyOxjRtTrfN12YJLbvYYr0+1jKp2fPBK X-Received: by 2002:a4a:a60a:: with SMTP id e10mr9851089oom.34.1585577807745; Mon, 30 Mar 2020 07:16:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585577807; cv=none; d=google.com; s=arc-20160816; b=a0bJj6b5EGK64eOyJMWSUmuJR9xiTlUiOQ80hVwY+6vKlapOmutKk71LqCCdnRC7b2 f6wZ2YgLfmk+8I1kbgnUkWzWvur2etIlBe6ZhvKbso35xNKeXtz/7i5fugXjWi2RJUGL dQNu9831/f76fTikb2Boe7FJHLaRkfn7YVbyXPhzO5Tx+dukWAF9b4vH32pp+j+grYww mOBH9mMBKN5JWvcHpnLerS4m2eJBKiKNbTyZm4aCBzFyGHbHia+icEMatfz9nFA5EsmD dzV4qHsNMEcNxVAgSfmM7iqvfyWTDrtefWRhWlnkFEsiRcpAbT/q2OeRaVFe5lijaPVb Q9tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=x+8Uj9b/3JpyVdRDH/R//D7u0C6UtUrAY1uSKsRQ9zE=; b=o0ZyzFyVRceBU2iEnNgoyDwQIKtbttgQa1WZOHZ7aNnYgk53/tBHrWrK4m0tJoC/0L lJYu0h+V6Jfkh5bMoW9pjcHHFirfCoAt5TTEOWPnc0SBm2RLa1atjXareRORXNV9l7Qj BuEURJwNEQFbR6Mjzkt8Kyq0u1NE7jrwPj+YS7z0/HDAdQfDDmKpDNEwGxy0Hx0XNsg8 GjmmFZXHc6tXHvxrplgULpQlRLRj2IbkHd2AYVcmqOC2U7MpEfgkXZ9a01SzONad+g/u ZG92WWtGWo/bzDGG3ZrOjNoLGCAt4kPRR54zPiWQXsVmfbO3VwelBoQhM9rtg5v8Lgod eRFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t54WtOGs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e24si5641416ooh.57.2020.03.30.07.16.34; Mon, 30 Mar 2020 07:16:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t54WtOGs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728511AbgC3OQC (ORCPT + 99 others); Mon, 30 Mar 2020 10:16:02 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:37871 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727359AbgC3OQC (ORCPT ); Mon, 30 Mar 2020 10:16:02 -0400 Received: by mail-wr1-f65.google.com with SMTP id w10so21900963wrm.4; Mon, 30 Mar 2020 07:16:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=x+8Uj9b/3JpyVdRDH/R//D7u0C6UtUrAY1uSKsRQ9zE=; b=t54WtOGsxkvO32SeerS0tBpmoyY/Gk0fOgAJ8Mwk/dXjs1jx+DdmU44Uxbp5yr5Jsl rl6SqjDk/Ww9PGwtsPd9ofND93okQcYp1bDHcnGiwvqsSIQXvDAdTg0AAwvJ8ewBgaah 6c3J5CZ9vrwIxihgErHrQodue0QsghAMe3Mh7/k+x55F18jAAkbpflKHaZHxVNBq6oGI cRWAb0/dMD4X/G8hU4jpxm8jGvXinAoOBQ5kT7m+Sp105pHnaKTkTQuB958fN4/9Oi6R 8NJWdFF2P9/Lfiw8Q2X8VvbKo0efBgnmcIRymtXw3FETi0CG5JVd4gcPoUeGpvXKUWLf 2zvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=x+8Uj9b/3JpyVdRDH/R//D7u0C6UtUrAY1uSKsRQ9zE=; b=LBIBI0ZA166Le5exHZJZi/sJSnj4Ec2CybBqC/SqOfxQuxHrrnHro37lxj5h13oUZc W34/FrghmSTrJTdCMDJo+nqb+5e++GYXnSBliLO/P5nGVGaNr0Fk13wkJfYV1DSQq6Qq o+Kj3cqVeppFLGkApLKVPQdCciewpzDovRjOk88mSM7E6FCfk0VcxR3fLyrQa+ehO600 H33XikwD6IFoUT0l6RWuJ/MyHGf3/e+5P2bnzAWqHP4Q5EGFVveD9L0dEviJNUPa1ByD gCDGxxIP4i4W3pzZ4Z39w9/AoHw++G77b7gx7bUOFcAtvHE3KOyga7y6jBLoS+ZQDScE m7FA== X-Gm-Message-State: ANhLgQ2f0raE0dLcM/hg/zjwRgRUufUuWK5zW7F56x9GRXTUjvg2E/5h aogqBXHWOpKgOxuhJTMC3GIR44/j X-Received: by 2002:a5d:6a43:: with SMTP id t3mr14531633wrw.87.1585577760852; Mon, 30 Mar 2020 07:16:00 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a73sm21067244wme.47.2020.03.30.07.15.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Mar 2020 07:15:58 -0700 (PDT) Date: Mon, 30 Mar 2020 14:15:58 +0000 From: Wei Yang To: Matthew Wilcox Cc: Wei Yang , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/9] XArray: entry in last level is not expected to be a node Message-ID: <20200330141558.soeqhstone2liqud@master> Reply-To: Wei Yang References: <20200330123643.17120-1-richard.weiyang@gmail.com> <20200330123643.17120-6-richard.weiyang@gmail.com> <20200330124842.GY22483@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200330124842.GY22483@bombadil.infradead.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 30, 2020 at 05:48:42AM -0700, Matthew Wilcox wrote: >On Mon, Mar 30, 2020 at 12:36:39PM +0000, Wei Yang wrote: >> If an entry is at the last level, whose parent's shift is 0, it is not >> expected to be a node. We can just leverage the xa_is_node() check to >> break the loop instead of check shift additionally. > >I know you didn't run the test suite after making this change. I did kernel build test, but not the test suite as you mentioned. Would you mind sharing some steps on using the test suite? And which case you think would trigger the problem? -- Wei Yang Help you, Help me