Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1511277rwi; Thu, 27 Oct 2022 17:14:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4AxhLZstcPZCwXWEr7/hmRhs1VzQ06/KGyN8gfkgzF3RA53wxVu+8G9qFAWhcUtFQx/zOS X-Received: by 2002:a17:906:7055:b0:78b:9148:6b41 with SMTP id r21-20020a170906705500b0078b91486b41mr43170423ejj.629.1666916069404; Thu, 27 Oct 2022 17:14:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666916069; cv=none; d=google.com; s=arc-20160816; b=J2gcFA0CHl2+tRGxiEYVCSw4dSFT7nArs+kS+HjMBpNtqi4BpcIegabVKUCXbI1xsH pVEXAn32b/8b2cKbS/gd2p7GCozbuXzRDeJQ90RDM0Vr8dapalT4nTNbUhh83uW/a14T PzmPYlAoQVoxvmtAuO+OJvXFvPwxzAqqhdG/elHrEOHzjM9GzYgonNhpsoxp+WfiY7JS yZGEHgOFWFyv0J51kXsG1dLBvam8ifljJrSSjeJBOnC3QP8iiVkcI24mf0iiyrxfbNEd g7hKYhV1LLJqpzc0pquv6lhtasczysJKoAlcUi3rue1Pwi5+fKHA8HJpBBJsORlslcuY EfDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=oNPTg2XmTNh7CXx4owbb65ljCWD6oEyJZ6sm6RSZCO4=; b=0uHIcKBp0IHqBbzpxQms47QUmJDyDS9wZv6J8OL7w+dSzSgaJx9Sw29Oq540x8B/hp MvjDanmunVHXlI4++LY0N1x7TRq0Rr5b9anjWEvAzxCMNtijvoJNdQV4qQ9Q3qiUojNn dTYERmfPuOA9gv4bvpXA/0M48iqUxo9oUDVqJmuWgLAXeJN6xUMkM3xiugXZXCban0yx STWTN/5pdfmKWUz75G0QRDQCtfzKCPmOKh/cRJZyccc3QNTMPVZEaH1+Gp3jjFq4m4J3 8Vct0FiDoeSqKYbJOzpBxWy3DGe1D+DuA2Ve8JmBCASv/CBzdSl/wjSvMG+U4ZVS90/9 id9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=begJEwMf; dkim=neutral (no key) header.i=@suse.de header.b=lDg4beuW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go43-20020a1709070dab00b0078e31b05896si3235231ejc.766.2022.10.27.17.14.00; Thu, 27 Oct 2022 17:14:29 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=begJEwMf; dkim=neutral (no key) header.i=@suse.de header.b=lDg4beuW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234137AbiJ1ANd (ORCPT + 99 others); Thu, 27 Oct 2022 20:13:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233946AbiJ1ANc (ORCPT ); Thu, 27 Oct 2022 20:13:32 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 998D7836DD for ; Thu, 27 Oct 2022 17:13:31 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 49A71219B4; Fri, 28 Oct 2022 00:13:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1666916010; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oNPTg2XmTNh7CXx4owbb65ljCWD6oEyJZ6sm6RSZCO4=; b=begJEwMfD1vVUZmLWtr2hoKlc7eGOydYzSHt7Ol6wyhRUnNAu2yrMVGGb2pAgbq+FG3DnU We80O7A+MwSx60YXjfMyaMECzplH+/0vQnYQgwnu8GhEoiDj7tQIEvsBk1nj66ZmBGYf4M CtMbhIzkP7yVL3lrIQdqNphB6B0rvbs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1666916010; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oNPTg2XmTNh7CXx4owbb65ljCWD6oEyJZ6sm6RSZCO4=; b=lDg4beuW85az0k/mqtHwAd580c5Ze3oav0TbrLFjqkh0LmoKaOXOwJb4hXZy7yzIWk/run //RPUSFcFT5P+qBw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 13C1313A37; Fri, 28 Oct 2022 00:13:28 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id HAinLqgeW2OjKAAAMHmgww (envelope-from ); Fri, 28 Oct 2022 00:13:28 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Chuck Lever III" Cc: "Linux NFS Mailing List" , "Jeff Layton" Subject: Re: [PATCH v6 09/14] NFSD: Clean up nfsd4_init_file() In-reply-to: <293CDB70-F274-425C-BB16-9276BCC48545@oracle.com> References: <166689625728.90991.15067635142973595248.stgit@klimt.1015granger.net>, <166689675530.90991.2630847343462195612.stgit@klimt.1015granger.net>, <166691293591.13915.198182531468244072@noble.neil.brown.name>, <293CDB70-F274-425C-BB16-9276BCC48545@oracle.com> Date: Fri, 28 Oct 2022 11:13:13 +1100 Message-id: <166691599396.13915.21309745977669653@noble.neil.brown.name> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 On Fri, 28 Oct 2022, Chuck Lever III wrote: > > > On Oct 27, 2022, at 7:22 PM, NeilBrown wrote: > > > > On Fri, 28 Oct 2022, Chuck Lever wrote: > >> Name nfs4_file-related helpers consistently. There are already > >> nfs4_file_yada functions, so let's go with the same convention used > >> by put_nfs4_file(): init_nfs4_file(). > > > > I don't understand. You say "consistently", then you say that as we > > have lots of "nfs4_file_yada" functions, this new one will NOT follow > > that pattern. > > Patch description is admittedly terse. > > I want a naming convention that sets apart the helpers that > deal with the nfs4_file hash table. Maybe nfs4_file_hash_yada > would be a better choice? > > But we already have put_nfs4_file()... OK, that makes more sense. Thanks, NeilBrown > > > > Surely "consistency" means renaming put_nfs4_file() to nfs4_file_put(), > > and introducing nfs4_file_init(). > > > > Not that I really care that much about the naming, but would like to be > > able to follow your logic. > > > > Thanks, > > NeilBrown > > -- > Chuck Lever > > > >