From: "J. Bruce Fields" <bfields@fieldses.org>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH 13/14] NLM: Remove "create" argument from nsm_find()
Date: Wed, 29 Oct 2008 16:48:17 -0400 [thread overview]
Message-ID: <20081029204817.GD1406@fieldses.org> (raw)
In-Reply-To: <20081024181123.23810.65076.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
On Fri, Oct 24, 2008 at 02:11:23PM -0400, Chuck Lever wrote:
> Clean up: nsm_find() now has only one caller who always sets the
Clearer to say: "now only has one caller, and that caller always
sets...".
> "create" argument, so it is no longer needed. Since nsm_find() now
> has a more specific function, pick a more appropriate name for it.
...
> -struct nsm_handle *nsm_find(const struct sockaddr *sap, const size_t salen,
> - const char *hostname, const size_t hostname_len,
> - const int create)
> +struct nsm_handle *nsm_get_handle(const struct sockaddr *sap,
> + const size_t salen, const char *hostname,
> + const size_t hostname_len)
> {
Maybe "nsm_create_handle" would be even clearer? (It doesn't just
increment a reference counter.)
--b.
next prev parent reply other threads:[~2008-10-29 20:48 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-24 18:09 [PATCH 00/14] RFC: IPv6 support for kernel NSM Chuck Lever
[not found] ` <20081024180150.23810.9718.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-10-24 18:09 ` [PATCH 01/14] NLM: Beef up NLM address display function Chuck Lever
[not found] ` <20081024180954.23810.34150.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-10-29 19:25 ` J. Bruce Fields
2008-10-29 20:05 ` Chuck Lever
2008-10-24 18:10 ` [PATCH 02/14] NSM: Move nsm_find() to fs/lockd/mon.c Chuck Lever
2008-10-24 18:10 ` [PATCH 03/14] NSM: Support IPv6 version of mon_name Chuck Lever
[not found] ` <20081024181009.23810.56793.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-10-29 20:00 ` J. Bruce Fields
2008-10-29 20:22 ` Chuck Lever
2008-10-24 18:10 ` [PATCH 04/14] NSM: Move NSM-related function and variable declarations to lockd.h Chuck Lever
[not found] ` <20081024181016.23810.69413.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-10-29 20:02 ` J. Bruce Fields
2008-10-24 18:10 ` [PATCH 05/14] NSM: Move NSM-related XDR data structures to lockd's xdr.h Chuck Lever
2008-10-24 18:10 ` [PATCH 06/14] NSM: Move NSM program and procedure numbers to fs/lockd/mon.c Chuck Lever
2008-10-24 18:10 ` [PATCH 07/14] NSM: Generate "priv" argument when nsm_handle is created Chuck Lever
2008-10-24 18:10 ` [PATCH 08/14] NLM: Change nlm_host_rebooted() to take a single nlm_reboot argument Chuck Lever
2008-10-24 18:10 ` [PATCH 09/14] NLM: Decode "priv" argument of NLM_SM_NOTIFY as an opaque Chuck Lever
2008-10-24 18:11 ` [PATCH 10/14] NSM: Add nsm_lookup() function Chuck Lever
2008-10-24 18:11 ` [PATCH 11/14] NSM: Replace IP address as our nlm_reboot lookup key Chuck Lever
2008-10-24 18:11 ` [PATCH 12/14] NSM: Remove include/linux/lockd/sm_inter.h Chuck Lever
2008-10-24 18:11 ` [PATCH 13/14] NLM: Remove "create" argument from nsm_find() Chuck Lever
[not found] ` <20081024181123.23810.65076.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-10-29 20:48 ` J. Bruce Fields [this message]
2008-10-24 18:11 ` [PATCH 14/14] NSM: Use same helpers in nsm_get_handle() and nsm_lookup_rebooted() Chuck Lever
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081029204817.GD1406@fieldses.org \
--to=bfields@fieldses.org \
--cc=chuck.lever@oracle.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox