Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2883500ybb; Mon, 30 Mar 2020 15:12:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsbNELn1n3B7Argy1X3Xzrj7uH/X4Hjfwf5ZthC+Wf+SmE+kh+HSZ9SYWvuuNBX0JqwBguM X-Received: by 2002:a05:6830:1ad0:: with SMTP id r16mr11045856otc.183.1585606329455; Mon, 30 Mar 2020 15:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585606329; cv=none; d=google.com; s=arc-20160816; b=g3hSABxYbrErflytHKyWMDrz2zVAr3Kla5ZjogmjEzAvwdVmwto6qskWBNm5VQ8aSR DcJFGs2j1tC6g3pTZ71i4NCwF8ridwcXA8YfYzAjMv+gzTnjfh80c0w18FNSUVo5sfR0 pfneFAz+wi/7FDV8LZZH5VnbroOF5Hj58dh4ZEURG8jTr1VgOmU4lqhS5YSKwfn7Sdlz jfSC511MX0TBt67w0I7rpFsJnJ4a3hbv/9Mx00PSiAeesk+XhQUQh9HEYM4sVqfAQu/I hEVwsEMSCsJxU+6U9Xsb58xpz9U8WDFJtY7tUgf0uNmEke71ExiXBwyqldBm7XJWsVXw 11gQ== 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=znoWPrzZPPeMBlwYAXU/ZXkwjJfA37xc5jbQZ/l+0OQ=; b=HAGaLQH4OiP++xB35O45VXv2sFTR5mV9nnQ2xBYgfFLPBc6RgpPzjIIklnhNssd2EO ppp7rrGsHLXWiDhTDi4Fd0zllsq6uRh+evjSHGV3t3fzB0Adfz69fLC/GoTKvFA/zl4g s5BGeVKOea1C3rcDGkPSTMz1TOhzpn0XK9kt11ewypnkUOnTzn7+OIrZD0CLDYytA3qq iVjpRUCwp8lquj1dcxMpBzvtFDooG9VQjhEo1Zbbq9U4LzWCxfbiRTtD69we+HV5utYe PQ+MQwb8PinTKM60VQgQW4E+lfEc2/gdnAJpLTeTmU+6OMcVPsbgDMqHfmcWhT9POwat wCBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=G35reuvY; 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 r71si6323116oie.265.2020.03.30.15.11.57; Mon, 30 Mar 2020 15:12:09 -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=G35reuvY; 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 S1730815AbgC3WKS (ORCPT + 99 others); Mon, 30 Mar 2020 18:10:18 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:41405 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729142AbgC3WKS (ORCPT ); Mon, 30 Mar 2020 18:10:18 -0400 Received: by mail-wr1-f66.google.com with SMTP id h9so23548674wrc.8; Mon, 30 Mar 2020 15:10:16 -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=znoWPrzZPPeMBlwYAXU/ZXkwjJfA37xc5jbQZ/l+0OQ=; b=G35reuvYKP/V2qYll9ynDb8qbZEFe0G7rvXJopY8cVCQgH8zHGhQXD3EWMq+YQNIVQ fV3heedl2t9PMktRv2XIBxkVfZFNr6h08UaS+DFbGInp3FZuYSkgyA7U6UsFruaCSL4E a61YJd3oc8EX308yNACgKiQKQaopWkTHMES8GzQSN0oSXLgW0wLXNvheTxGcKkprsuvX ze8Q1IPrhUz4acS69pzyx6FG7JjcjmS0aNnRpipaeF3BoDH3Z9/cQKs7IS+Rr5dEAboJ UmbShFnnPJ6l+B4tkur0PhxJ4DYFiqPOPbThqpcUOo3RQDPH/jJ6e9LLLfQOhh8vgJr0 KJLA== 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=znoWPrzZPPeMBlwYAXU/ZXkwjJfA37xc5jbQZ/l+0OQ=; b=harmS0AX27Nlfp4Ka6Y71g03Vn614I6Dq/TAZQJzp2mF0pxU7s5UIs1DSitGXEGPQy 9dDnB61MNb3hxNkLx6C2UdV9ok6T+UprIAt/lMX6YDW7jUgi8+k2ucVCx3sKIlgRsaev V5IP3XaFhZh/g7+H6Umw/dal9sTUqfKhVmt5/r9vzByhkUAqSP+0Cyize1c1lACHCkcp chYyCK5b/xVtwYlE8Efji7dBqxVWOmUhxw4Qc95rgC8pZJgTi32iY5FXfi0grDblgwqY FXQJv0A3p/NUIOnaRkuVegJDK9lLvfOI5iE+luYzO9Pg3JiHQl8LJERO16V9ytnaLo5o lImg== X-Gm-Message-State: ANhLgQ09QMvIO73OPcf38HvxrsMslkrr6I16eYoyhYGglEI24eyKnrgA pohTje1Yrfj3M+s0CAG20rI= X-Received: by 2002:adf:f791:: with SMTP id q17mr8654344wrp.166.1585606216219; Mon, 30 Mar 2020 15:10:16 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id h81sm1195302wme.42.2020.03.30.15.10.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Mar 2020 15:10:15 -0700 (PDT) Date: Mon, 30 Mar 2020 22:10:14 +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: <20200330221014.ppabot7qef2jhwx3@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200330142821.GD22483@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 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 > >The IDR tests are the ones which are going to trigger on this. Thanks, I will give it a shot. -- Wei Yang Help you, Help me