Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp141504pxb; Tue, 5 Apr 2022 02:51:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQwT1KwZgY/DyFzmE4iKxdmkOFxd8KX0BKSq+Ia6fSYPojCo7V/AkNGdArC9R88brUpGlY X-Received: by 2002:a17:902:ea04:b0:154:63ae:ab97 with SMTP id s4-20020a170902ea0400b0015463aeab97mr2626567plg.110.1649152318224; Tue, 05 Apr 2022 02:51:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649152318; cv=none; d=google.com; s=arc-20160816; b=uKzoWcFttAhe75Tx1JPWsaNykTwll0Swa7LFXxcmRc14bpRuNY1lrJObWTsRZ8OXCO tVQT3QR1siT9fvdWXMCqsRsJx4pa8ND0zeaEf8o91bBHg2FomAvq2Z7W3BGR17qOZKff 6QCRUkHlBXyGIelUXVgj31Vqej1eT7WPpL2RUGfVXPccZsoWhheFSwyFmuLiExBFJ0te iReWXdUjDAL1DsS2ZbcP7o6L25i14Ga3LtXRWmRUgVOelXd8haypoNlOc3Rb+zAurYCT 2krBCoCCphCsvOI3UuIFdz0PwwL/pW8q38/zxUlXbpN1b84GLWW/c7iDl89ZOlLqrhlz V5oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=OA96EYlrEuM9HMYUQvvD7gGRTCiBK+I5mNbGG06SgHQ=; b=OXH2cFlbsoboMrsgx5npuf/Bqw4bCRUzD/ujVNTsbQbmZxhMdMoN3bzLGq0k/aT7RQ q9MQmmuFKZl/LoBcqElWexlq55ivap7+J2ADprqEKThxFsRxJfkeGNqYBaX3UZf11BVh GV/Cl9C4J9Co49i/ijfAiiEZEru+Hxe0ct03xlyFaL3DVkmhBgPMePL9GCjxxs7flUxV vTIy9rLfA7stWVv37lqy9HLAN5oHBkJtoLcSYe0Re2OmMA8DIq4fFelvP1cx1JuJ8oK7 Dq42+Eoh5CcF4XRRuYI3zLhed+d8wGdWKxVuaxqVrCt5jAjJH4pyXsQPXoXOLVSkJQxQ 1S2g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 24-20020a631858000000b003823e1bfe39si12350827pgy.650.2022.04.05.02.50.55; Tue, 05 Apr 2022 02:51:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235801AbiDEJes (ORCPT + 99 others); Tue, 5 Apr 2022 05:34:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343845AbiDEJOl (ORCPT ); Tue, 5 Apr 2022 05:14:41 -0400 Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4558A433AC for ; Tue, 5 Apr 2022 02:00:46 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:38ab:c2b8:b3aa:7514]) by andre.telenet-ops.be with bizsmtp id Ex0j270041peDqJ01x0jAA; Tue, 05 Apr 2022 11:00:43 +0200 Received: from geert (helo=localhost) by ramsan.of.borg with local-esmtp (Exim 4.93) (envelope-from ) id 1nbf3K-008QxV-RE; Tue, 05 Apr 2022 11:00:42 +0200 Date: Tue, 5 Apr 2022 11:00:42 +0200 (CEST) From: Geert Uytterhoeven X-X-Sender: geert@ramsan.of.borg To: trondmy@kernel.org cc: linux-nfs@vger.kernel.org Subject: Re: [PATCH] NFS: Replace readdir's use of xxhash() with hash_64() In-Reply-To: <20220331033023.718688-1-trondmy@kernel.org> Message-ID: References: <20220331033023.718688-1-trondmy@kernel.org> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Trond, On Wed, 30 Mar 2022, trondmy@kernel.org wrote: > From: Trond Myklebust > > Both xxhash() and hash_64() appear to give similarly low collision > rates with a standard linearly increasing readdir offset. They both give > similarly higher collision rates when applied to ext4's offsets. > > So switch to using the standard hash_64(). > > Signed-off-by: Trond Myklebust Thanks for your patch! > --- a/fs/nfs/Kconfig > +++ b/fs/nfs/Kconfig > @@ -4,10 +4,6 @@ config NFS_FS > depends on INET && FILE_LOCKING && MULTIUSER > select LOCKD > select SUNRPC > - select CRYPTO I'm extremely grateful for this part! ;-) While updating shmobile_defconfig, I was wondering why I was suddenly asked about all those crypto drivers... > - select CRYPTO_HASH > - select XXHASH > - select CRYPTO_XXHASH > select NFS_ACL_SUPPORT if NFS_V3_ACL > help > Choose Y here if you want to access files residing on other Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds