From: Al Viro <viro@www.linux.org.uk>
To: linux-kernel@vger.kernel.org
Cc: akpm@osdl.org
Subject: [CFR][PATCH] namei fixes (18/19)
Date: Thu, 19 May 2005 23:57:31 +0100 [thread overview]
Message-ID: <E1DYtxL-0007tl-MH@parcelfarce.linux.theplanet.co.uk> (raw)
(18/19)
Cosmetical cleanups - __follow_mount() calls in __link_path_walk() absorbed
into do_lookup().
Obviously equivalent transformation.
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
----
diff -urN RC12-rc4-17/fs/namei.c RC12-rc4-18/fs/namei.c
--- RC12-rc4-17/fs/namei.c 2005-05-19 16:39:46.911156004 -0400
+++ RC12-rc4-18/fs/namei.c 2005-05-19 16:39:48.010936857 -0400
@@ -682,6 +682,7 @@
done:
path->mnt = mnt;
path->dentry = dentry;
+ __follow_mount(path);
return 0;
need_lookup:
@@ -789,8 +790,6 @@
err = do_lookup(nd, &this, &next);
if (err)
break;
- /* Check mountpoints.. */
- __follow_mount(&next);
err = -ENOENT;
inode = next.dentry->d_inode;
@@ -850,7 +849,6 @@
err = do_lookup(nd, &this, &next);
if (err)
break;
- __follow_mount(&next);
inode = next.dentry->d_inode;
if ((lookup_flags & LOOKUP_FOLLOW)
&& inode && inode->i_op && inode->i_op->follow_link) {
reply other threads:[~2005-05-19 23:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=E1DYtxL-0007tl-MH@parcelfarce.linux.theplanet.co.uk \
--to=viro@www.linux.org.uk \
--cc=akpm@osdl.org \
--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®