From: Paul Menage <pmenage@ensim.com>
To: Hanna Linder <hannal@us.ibm.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC][PATCH 2.4.17] Your suggestions for fast path walk
Date: Thu, 14 Feb 2002 12:06:40 -0800 [thread overview]
Message-ID: <E16bS9Q-0000Bd-00@pmenage-dt.ensim.com> (raw)
In-Reply-To: <0C01A29FBAE24448A792F5C68F5EA47D2173A3@nasdaq.ms.ensim.com>
>I have also combined path_init and path_walk in places where
>they are always called together.
This is nice from a code simplification point of view, and is mostly
orthogonal to the fast path walking.
I'd be inclined to call this combined function something like
path_lookup(), rather than path_init_walk() - the callers don't need to
know that it's an init followed by a walk, they just need to know that
it does a lookup.
Also, to avoid code duplication, is there any reason why path_lookup()
can't be implemented (possibly inlined) just as:
static int path_lookup(const char *name, struct nameidata *nd, int flags)
{
if(!path_init(name, flags, nd))
return 0;
return path_walk(name, nd);
}
Paul
next parent reply other threads:[~2002-02-14 20:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <0C01A29FBAE24448A792F5C68F5EA47D2173A3@nasdaq.ms.ensim.com>
2002-02-14 20:06 ` Paul Menage [this message]
2002-02-15 2:13 ` Hanna Linder
2002-02-15 19:33 ` Paul Menage
2002-02-16 1:17 ` Hanna Linder
2002-02-14 1:01 Hanna Linder
2002-02-14 11:13 ` Roman Zippel
2002-02-14 22:39 ` Hanna Linder
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=E16bS9Q-0000Bd-00@pmenage-dt.ensim.com \
--to=pmenage@ensim.com \
--cc=hannal@us.ibm.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®