Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2506774ybb; Mon, 30 Mar 2020 07:30:21 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv6b/ubmHZhBOiHnEscmQkzvXSu60zKVMcKLDRF1K+LlY/acNuWmbZ9SSKb+EJB/iOhgpV4 X-Received: by 2002:a9d:2c01:: with SMTP id f1mr9477886otb.67.1585578620918; Mon, 30 Mar 2020 07:30:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585578620; cv=none; d=google.com; s=arc-20160816; b=HC3e1/dSsBgU1NFq3WDVmP32JTMLWgb4ccZLUwA7otv9uXGRVQsbcHmJiTIjYk9jxV edm5XC37e0EL2SQduKenNIaxme1iRWPtiIqahgYzmzJRMw+7a4ol2c6r8YUwXbRj3dXB xxQwESO1h7ycNwIT/vljS9O9pjfd/456ICkXU9jiIMs/xH4T9W3vSCdnqan214+mHRK/ gbZB0lAj10I8bp7Pd9+zLbEaaUk/boxjTvfea9DLSxzJM8Oufds/jvDcE7zL8Ls+aZaI 5MMgV7EXGZJsFi4maSYzaRyt+/d8oTL5Vq8qTspWU9ALH2xB7asELxQTjGBQQ5rKGo8N e2Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=pLHDX3j/vvd/aAE6wS/Omu7NEbcc1BJFJb8ATkuq0Ow=; b=SsOAqUK/Xv8AONAyc0MYfrHX355G9tG7rGudqsWFYr6E3c7NKen7bfxJgCdOWsq2pk JSjec9GBYqiWgOxWlV/VTFguIwN7/GgeOP8nQIgkZDemDlnLPxC82/SKN84ZjsjyS9z2 n1RnsHGzrI21HzXOC+CtqPrt2HXzzkVxMGFr8VxhQhWQ3YMmEX2gtiiuQ5RXDnR5qcti R0e0Kt4VlkWZNcN8/mcKxZ9E4eu1iC6SIwIIoPjfCoayKGRSTaAxgaVJg/g9EMRU18jq lyFL150kzt/zGUu+jkU/0pkAyl7axotniGp5rhAR60Mbw12py5gaETF9kZS/MWY3/bmN P5AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=H5ZxYxMY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11si5762091oib.235.2020.03.30.07.30.07; Mon, 30 Mar 2020 07:30:20 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=H5ZxYxMY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728091AbgC3O2W (ORCPT + 99 others); Mon, 30 Mar 2020 10:28:22 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:58498 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726085AbgC3O2V (ORCPT ); Mon, 30 Mar 2020 10:28:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=pLHDX3j/vvd/aAE6wS/Omu7NEbcc1BJFJb8ATkuq0Ow=; b=H5ZxYxMYQ6KS/4YYOQAIGKqodc KnucrkmhDRKY0CryqwaygOiu7j0rG+sBCakLO0oSRrD2tt64lhyTAdbGT1OjwuxCtV/Vdmd4IkgQu wlNovX8Jtq/pnu0yt+b+r1GBuB9eQDg5CHnNvHRAggXXISVJggFUP2IcAlgLYhF438uw/v0tAbBVg RiiQE4BK/PUExpbt5CbEqaF0JbZbaG6K1ocO05EqLGXUICCw95rzewItKvwlrZX0e1padg1ihX3q4 cC/WBaEfAZa99nRzv9BZkQkU/kD7rBnE+OG45rPsrFGI6RSIYSl2l+y7U2NPAqtPzfhbbKF87odBc ChjfCYlA==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jIvOn-0003vP-Ji; Mon, 30 Mar 2020 14:28:21 +0000 Date: Mon, 30 Mar 2020 07:28:21 -0700 From: Matthew Wilcox To: Wei Yang Cc: 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: <20200330142821.GD22483@bombadil.infradead.org> References: <20200330123643.17120-1-richard.weiyang@gmail.com> <20200330123643.17120-6-richard.weiyang@gmail.com> <20200330124842.GY22483@bombadil.infradead.org> <20200330141558.soeqhstone2liqud@master> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200330141558.soeqhstone2liqud@master> 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 02:15:58PM +0000, Wei Yang wrote: > 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? cd tools/testing/radix-tree/; make; ./main The IDR tests are the ones which are going to trigger on this.