From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B53BC2D0E2 for ; Tue, 22 Sep 2020 12:28:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DD19520B1F for ; Tue, 22 Sep 2020 12:28:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="J8vJB8PG" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726563AbgIVM2g (ORCPT ); Tue, 22 Sep 2020 08:28:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726531AbgIVM2g (ORCPT ); Tue, 22 Sep 2020 08:28:36 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B479C061755; Tue, 22 Sep 2020 05:28:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=QOf2JTCyG7BLU81U37VjbgSKPGgWOzBrM3G1telCsN0=; b=J8vJB8PGDvNZr3pL6E5VUXs5mh 7fhLdUsaxmKF5Q9VJEZoijpH3ddlo7CWLkRQyXc1cLv2C71vR5gsRKL2y+6Iil1ZlrXoZtpcokWZV /sViwtrr/gn3EPRdVP6nrwsLDb4Tc3+Bw1MbQjXodXO2uI6uCmMvGItmnJ1PMckk2naxTYXBelE9m BMheLjIYQiDNYHDQXPLDCJjsG/BRqimL/XtZph1DC1ZOKp9PoNiWLuWglCamn3s2nsUiTjnkFP6HE ijBWNZGs3y0YPF32Hf/NaucqXzpCPa+DAMfw8XmcB+1xqcHmO5oxGSNupyWkbzyg4ooEVZnbICIsw SUOOZ2rg==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKhP9-0000rB-4w; Tue, 22 Sep 2020 12:28:19 +0000 Date: Tue, 22 Sep 2020 13:28:19 +0100 From: Matthew Wilcox To: Mikulas Patocka Cc: Dan Williams , Linus Torvalds , Alexander Viro , Andrew Morton , Vishal Verma , Dave Jiang , Ira Weiny , Jan Kara , Eric Sandeen , Dave Chinner , "Kani, Toshi" , "Norton, Scott J" , "Tadakamadla, Rajesh (DCIG/CDI/HPS Perf)" , Linux Kernel Mailing List , linux-fsdevel , linux-nvdimm Subject: Re: NVFS XFS metadata (was: [PATCH] pmem: export the symbols __copy_user_flushcache and __copy_from_user_flushcache) Message-ID: <20200922122819.GD32101@casper.infradead.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Mon, Sep 21, 2020 at 12:20:42PM -0400, Mikulas Patocka wrote: > The same for directories - NVFS hashes the file name and uses radix-tree > to locate a directory page where the directory entry is located. XFS > b+trees would result in much more accesses than the radix-tree. What? Radix trees behave _horribly_ badly when indexed by a hash. If you have a 64-bit hash and use 8 bits per level of the tree, you have to traverse 8 pointers to get to your destination. You might as well use a linked list!