Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3928859ybb; Tue, 31 Mar 2020 15:06:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvP5eZW1yjzYlUtdaEAK9nu1iLtNZ4puevpOsUbZWdZ9ptNTouRCqV59yauyACMRxN+kV4g X-Received: by 2002:a9d:24a4:: with SMTP id z33mr14917524ota.105.1585692415657; Tue, 31 Mar 2020 15:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585692415; cv=none; d=google.com; s=arc-20160816; b=WON/67uSF0h2tZ57sxXS51/qvMJ0H6j389lN6NO8iePwX/5C6+lz54Xb1VYWicLhij E5zcUtW+LaCj+IeXqtLOeb0BAe5BmhfS0UpJnS3OxPaA8WzhIhtCh78LtNIV9t8Hfsot BOOlNcl2274VcY19FPBysbPtWHldpiZWr+DecdoRf43Bj1tciHYLuDXehAvSI/gY3ja+ ZssZMjMUjTsmp0u4WLHGq8acE1HUH41om2KIRBES5pbgbdUvFt+bFxmq3bHEM5gPIHY7 GG98hJ0Grain9B42FWgGbdyprqte9igYH98kadv4lo0YIQjp9DBq3pMxF1zlfjigEJj2 f/uA== 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=K04d4E619JqJooDocmXBidoUR3eMnXv/Sjm/pn+vcqc=; b=R3rUZbyiQettm41GazascEjO6rfCWOynX2dXTv1iW/RbQL9xnqSztrwMcd+djlEtRo iHTtUHCWIiuiUQ9uITwicC2CkvAXBJcBwhPFHPESZyzY+8X8bDznI5J7c17plNCEalQ2 Qh7yMdMRXgPiCQ9ETeWP3I+L5TyYVrkN5O4SaPDQac3/xFYeYIIdkGJi9mWuKVU4DSGQ XC2LKdbC8uzGfN8yxv67lYW2K+PhSSgQYL8EfLdrr3v7WXpr+iQwn16UoSNBQ48+oSll OCcy8EvUJI1pUTeJi7vH+/f9F/Byfe+oruNBdVdbNy4EQQvSe8LtuRg1q7F7lrNwQMcp foLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="P/hQhjn1"; 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 h27si8134669ots.293.2020.03.31.15.06.43; Tue, 31 Mar 2020 15:06:55 -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="P/hQhjn1"; 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 S1731357AbgCaWEp (ORCPT + 99 others); Tue, 31 Mar 2020 18:04:45 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:44637 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728493AbgCaWEo (ORCPT ); Tue, 31 Mar 2020 18:04:44 -0400 Received: by mail-wr1-f65.google.com with SMTP id m17so28058079wrw.11; Tue, 31 Mar 2020 15:04:42 -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=K04d4E619JqJooDocmXBidoUR3eMnXv/Sjm/pn+vcqc=; b=P/hQhjn1cnbdOGryaLUrCZZRN/ePZIqY64iDBgsud7Go8Uf3j2zSAaUIYjGq89cAzF k8GsKu+tfPbeAVHD+FXCiuFkrHeL+RYrC747Y4TFO0jdVN2sBt5vUNSK6Xuag194imU5 cDoAjRkVH1KKJtU9OrBsGnm3yRSQ6+SvSNYt/yh91Yi0JxXU6G5oY5t05VaY9+/keaWZ q//AfMFQKrY2DCzi7M2KeWPAdBethaKmJZv7XFzYAOvEI1dZx+UyGagUjwN9yktpr7aX RJhH0lndhRlKQ/3a8nAHhqXn5aeN7xzvAYRhnkTBLH2po8ncuWdFkglSnJrDbV/Khlj2 fQcw== 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=K04d4E619JqJooDocmXBidoUR3eMnXv/Sjm/pn+vcqc=; b=UXqz8KsF5jeufvv83MF/VQxP6Lo4s1/35tS+Q/Vis/gLlr6u++a5JVnN+ltxrBfKfS yZetg2I+iBpzpEeUBahRkxUQo/bRDXu6lsG/jvuX3xdqr1oymecB1jcRZbWckzM9U6hx lsEQRwwj2Nx+k1qj7TffSSrzsdtZ/njBlA11gL3Q68nZupfEtjephCtFQqADefLtSM7d Bmsq8FMz3eLdoa15OW8GYuXxGZF/DCTvm8v6ArCuFQmqv7wOEu7HOXVAoiH4x9AOT9/V HJ+3uvo2gC2ClVcV9rZgE2YI9ynzMryNerolEmJA2zmZCagZCrhdQeM+ithmxHSpAGvd 71Pw== X-Gm-Message-State: ANhLgQ17yr8884QuubdyCEy1MO/Ve03NMlOgRhcDO2Gw5P/3nNqt5xB/ WnI6COTNXvjM19f0WpclLqQ= X-Received: by 2002:a05:6000:51:: with SMTP id k17mr19168527wrx.148.1585692282256; Tue, 31 Mar 2020 15:04:42 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id b187sm5918614wmc.14.2020.03.31.15.04.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 31 Mar 2020 15:04:41 -0700 (PDT) Date: Tue, 31 Mar 2020 22:04:40 +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: <20200331220440.roq4pv6wk7tq23gx@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> <20200330141558.soeqhstone2liqud@master> <20200330142821.GD22483@bombadil.infradead.org> <20200331134208.gfkyym6n3gpgk3x3@master> <20200331164212.GC21484@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200331164212.GC21484@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 Tue, Mar 31, 2020 at 09:42:12AM -0700, Matthew Wilcox wrote: >On Tue, Mar 31, 2020 at 01:42:08PM +0000, Wei Yang wrote: >> On Mon, Mar 30, 2020 at 07:28:21AM -0700, Matthew Wilcox wrote: >> >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 >> > >> >> Hmm... I did a make on top of 5.6-rc6, it failed. Would you mind taking a look >> into this? > >It works for me. I run it almost every day. What error did you see? The error message: cc -I. -I../../include -g -Og -Wall -D_LGPL_SOURCE -fsanitize=address -fsanitize=undefined -c -o main.o main.c In file included from ./linux/../../../../include/linux/radix-tree.h:15, from ./linux/radix-tree.h:5, from main.c:10: ./linux/rcupdate.h:5:10: fatal error: urcu.h: No such file or directory 5 | #include | ^~~~~~~~ compilation terminated. make: *** [: main.o] Error 1 I didn't touch any code in testing directory. -- Wei Yang Help you, Help me